diff --git a/README.md b/README.md index 84b520b..70d4a64 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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: @@ -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. diff --git a/entrypoint.sh b/entrypoint.sh index 37150b9..9be2e7d 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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