Skip to content

Commit

Permalink
Merge pull request #5 from magicalyak/bedrock
Browse files Browse the repository at this point in the history
hardcoded URL
  • Loading branch information
magicalyak authored Feb 3, 2019
2 parents 1c12f41 + 53c6258 commit 3b5c74c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
This is an implementation of the [Pocketmine] (https://www.pocketmine.net) LAN server for allowing [Minecraft-PE Kindle and IOS clients] to play. This is running the latest version of pocketmine to support the 2.0.0 API to the client protocol that Minecraft-PE uses.
This was original under nmarus/docker-pocketmine but his version does not work on kids kindles which is what this is for. Also substituted phusion/baseimage for ubuntu and moved commands to the enterypoint.sh bash script (look there for modifying items if you fork). I happy to share this work with others, just contact me and let me know if you're using this and like it. It should work with all the new Minecraft Pocket Edition clients (most other github repos don't).

You need to add the BEDROCK_DOWNLOAD_ZIP env to the docker create or run for this to work. Currently that is https://minecraft.azureedge.net/bin-linux/bedrock-server-1.8.1.2.zip

### To run pocketmine as a docker container:

docker run -d -p 19132:19132/udp -e BEDROCK_DOWNLOAD_ZIP=https://minecraft.azureedge.net/bin-linux/bedrock-server-1.8.1.2.zip --name pocketmine magicalyak/pocketmine
docker run -d -p 19132:19132/udp --name pocketmine magicalyak/pocketmine

This creates a new container from the repository, names the container "pocketmine", downloads the latest development build of pocketmine, and maps the ports for client access to the local host. This is not recommend as you will lose your configuration file when th container stops and starts.

Expand All @@ -17,7 +15,7 @@ The *recommended* way is to utilize a local directory that is external to the co

Then run the container with these added option:

docker run -d -p 19132:19132/udp -v /srv/pocketmine:/data -e BEDROCK_DOWNLOAD_ZIP=https://minecraft.azureedge.net/bin-linux/bedrock-server-1.8.1.2.zip --name pocketmine magicalyak/pocketmine
docker run -d -p 19132:19132/udp -v /srv/pocketmine:/data --name pocketmine magicalyak/pocketmine

### To start the container:
If the container is stoped (run "docker ps -a" to verify), and you wish to start it, run:
Expand Down Expand Up @@ -52,3 +50,7 @@ Simply stop the pocketmine container and then start it. the latest version of po

docker stop pocketmine
docker start pocketmine

###Changelog

* **03.02.19:** - version 1.8.1.2 bedrock server.
3 changes: 2 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ if ! [ -e server.properties ]; then
fi

echo "[INFO] Updating to the latest API release."

#Get ZIP File (note the hardcode URL)
if ! [ -f bedrock-server.zip ]; then
echo >&2 "Downloading bedrock server files"
wget $BEDROCK_DOWNLOAD_ZIP -O /data/bedrock-server.zip && unzip -n /data/bedrock-server.zip && chown -R bedrock:bedrock /data
wget https://minecraft.azureedge.net/bin-linux/bedrock-server-1.8.1.2.zip -O /data/bedrock-server.zip && unzip -n /data/bedrock-server.zip && chown -R bedrock:bedrock /data
fi

if [ -f "bedrock_server" ]; then
Expand Down

0 comments on commit 3b5c74c

Please sign in to comment.