From b446d4cc3feef6bb5780762073374c65b4737abf Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Sun, 18 Jul 2021 16:19:57 -0500 Subject: [PATCH 1/4] docs: added recommendation of management layer --- README.md | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 31aa7ecf..72d67250 100644 --- a/README.md +++ b/README.md @@ -13,30 +13,11 @@ To simply use the latest stable version, run docker run -d -it -p 25565:25565 -e EULA=TRUE itzg/minecraft-server -where the standard server port, 25565, will be exposed on your host machine. +where, in this case, the standard server port 25565, will be exposed on your host machine. -If you want to serve up multiple Minecraft servers or just use an alternate port, -change the host-side port mapping such as +> If you plan on running a server for a longer amount of time it is highly recommended using a management layer such as [Docker Compose](#using-docker-compose) or [Kubernetes](#deployment-templates-and-examples) to allow for incremental reconfiguration and image upgrades. - ... -p 25566:25565 ... - -will serve your Minecraft server on your host's port 25566 since the `-p` syntax is -`host-port`:`container-port`. - -Speaking of multiple servers, it's handy to give your containers explicit names using `--name`, such as naming this one "mc" - - ... --name mc itzg/minecraft-server - -With that you can easily view the logs, stop, or re-start the container: - - docker logs -f mc - ( Ctrl-C to exit logs action ) - - docker stop mc - - docker start mc - -> Be sure to always include `-e EULA=TRUE` in your commands, as Mojang/Microsoft requires EULA acceptance. +> Be sure to always include `-e EULA=TRUE` in your commands and container definitions, as Mojang/Microsoft requires EULA acceptance. By default, the container will download the latest version of the "vanilla" [Minecraft: Java Edition server](https://www.minecraft.net/en-us/download/server) provided by Mojang. The [`VERSION`](#versions) and the [`TYPE`](#server-types) can be configured to create many variations of desired Minecraft server. From 6353488db796e6e3044c3537cbd098eb88ef6814 Mon Sep 17 00:00:00 2001 From: itzg Date: Sun, 18 Jul 2021 21:20:49 +0000 Subject: [PATCH 2/4] docs: Auto update markdown TOC --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 72d67250..35155422 100644 --- a/README.md +++ b/README.md @@ -126,7 +126,7 @@ By default, the container will download the latest version of the "vanilla" [Min * [Enabling Autopause](#enabling-autopause) * [Running on RaspberryPi](#running-on-raspberrypi) - + From 4168821ec40463e33ff4b3d5ffbda95213bb0917 Mon Sep 17 00:00:00 2001 From: Jawa_Juice <67296752+Jawa-Juice@users.noreply.github.com> Date: Wed, 21 Jul 2021 11:16:05 -0400 Subject: [PATCH 3/4] Reflect different jar names for airplane/airplanepurpur (#985) --- start-deployAirplane | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/start-deployAirplane b/start-deployAirplane index 8b40169a..4feb298b 100644 --- a/start-deployAirplane +++ b/start-deployAirplane @@ -11,6 +11,7 @@ if [ "${VERSION}" != "LATEST" ] && [ "${VERSION}" != "1.16" ] && [ "${VERSION}" fi : ${AIRPLANE_BUILD:=lastSuccessfulBuild} +: ${AIRPLANE_TYPE:=airplane} if [ "${VERSION}" = "LATEST" ] || [ "${VERSION}" = "1.17" ]; then AIRPLANE_BRANCH="1.17" @@ -22,10 +23,12 @@ fi if [ "${VERSION}" = "PURPUR" ]; then AIRPLANE_BRANCH="Purpur-1.17" + AIRPLANE_TYPE="airplanepurpur" fi if [ "${VERSION}" = "PURPUR-1.16" ]; then AIRPLANE_BRANCH="Purpur-1.16" + AIRPLANE_TYPE="airplanepurpur" fi log "Using Airplane-${AIRPLANE_BRANCH} branch" @@ -33,7 +36,7 @@ log "Using Airplane-${AIRPLANE_BRANCH} branch" export SERVER=airplane-${AIRPLANE_BRANCH}-${AIRPLANE_BUILD}.jar if [ ! -f "$SERVER" ] || isTrue "${FORCE_REDOWNLOAD:-false}"; then - downloadUrl="https://ci.tivy.ca/job/Airplane-${AIRPLANE_BRANCH}/${AIRPLANE_BUILD}/artifact/launcher-airplane.jar" + downloadUrl="https://ci.tivy.ca/job/Airplane-${AIRPLANE_BRANCH}/${AIRPLANE_BUILD}/artifact/launcher-${AIRPLANE_TYPE}.jar" log "Downloading Airplane from $downloadUrl ..." curl -fsSL -o "$SERVER" "$downloadUrl" if [ ! -f "$SERVER" ]; then From 2b0fd2e5c0ab1374241f8a7601806d7e7111f41f Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Fri, 23 Jul 2021 21:16:51 -0500 Subject: [PATCH 4/4] Added support for Forge 1.17's run.sh mechanism #986 --- start-minecraftFinalSetup | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/start-minecraftFinalSetup b/start-minecraftFinalSetup index a2015775..cf83c815 100644 --- a/start-minecraftFinalSetup +++ b/start-minecraftFinalSetup @@ -225,6 +225,10 @@ EOF else exec mc-server-runner ${mcServerRunnerArgs} "${finalArgs[@]}" fi +elif [[ -x run.sh ]]; then + log "Using Forge supplied run.sh script..." + echo $JVM_XX_OPTS $JVM_OPTS $expandedDOpts > user_jvm_args.txt + exec mc-server-runner ${mcServerRunnerArgs} --shell bash run.sh else # If we have a bootstrap.txt file... feed that in to the server stdin if [ -f /data/bootstrap.txt ]; then