Improved naming of FORGE_FORCE_REINSTALL and FORGE_VERSION (#1788)

This commit is contained in:
Geoff Bourne
2022-10-16 17:49:25 -05:00
committed by GitHub
parent 2e69966a6a
commit c1d8dc9bb0
7 changed files with 16 additions and 14 deletions
+4 -2
View File
@@ -326,11 +326,11 @@ To troubleshoot any issues with memory allocation reported by the JVM, set the e
Enable [Forge server](http://www.minecraftforge.net/) mode by adding a `-e TYPE=FORGE` to your command-line. Enable [Forge server](http://www.minecraftforge.net/) mode by adding a `-e TYPE=FORGE` to your command-line.
The overall version is specified by `VERSION`, [as described in the section above](#versions) and will run the recommended Forge version by default. You can also choose to run a specific Forge version with `FORGEVERSION`, such as `-e FORGEVERSION=14.23.5.2854`. The overall version is specified by `VERSION`, [as described in the section above](#versions) and will run the recommended Forge version by default. You can also choose to run a specific Forge version with `FORGE_VERSION`, such as `-e FORGE_VERSION=14.23.5.2854`.
docker run -d -v /path/on/host:/data \ docker run -d -v /path/on/host:/data \
-e TYPE=FORGE \ -e TYPE=FORGE \
-e VERSION=1.12.2 -e FORGEVERSION=14.23.5.2854 \ -e VERSION=1.12.2 -e FORGE_VERSION=14.23.5.2854 \
-p 25565:25565 -e EULA=TRUE --name mc itzg/minecraft-server -p 25565:25565 -e EULA=TRUE --name mc itzg/minecraft-server
To use a pre-downloaded Forge installer, place it in the attached `/data` directory and To use a pre-downloaded Forge installer, place it in the attached `/data` directory and
@@ -347,6 +347,8 @@ the URL with `FORGE_INSTALLER_URL`, such as:
In both of the cases above, there is no need for the `VERSION` or `FORGEVERSION` variables. In both of the cases above, there is no need for the `VERSION` or `FORGEVERSION` variables.
> If an error occurred while installing Forge, it might be possible to resolve by temporarily setting `FORGE_FORCE_REINSTALL` to "true". Be sure to remove that variable after successfully starting the server.
### Running a Fabric Server ### Running a Fabric Server
Enable [Fabric server](https://fabricmc.net/) mode by adding a `-e TYPE=FABRIC` to your command-line. Enable [Fabric server](https://fabricmc.net/) mode by adding a `-e TYPE=FABRIC` to your command-line.
+2 -2
View File
@@ -98,7 +98,7 @@ services:
# # # #
# VERSION: Defines the version of MC the modpack is based on. # # VERSION: Defines the version of MC the modpack is based on. #
# # # #
# FORGEVERSION: Defines the version of FORGE the modpack uses. # # FORGE_VERSION: Defines the version of FORGE the modpack uses. #
# This can usually be found in the modpack.zip as # # This can usually be found in the modpack.zip as #
# installer.jar # # installer.jar #
# # # #
@@ -109,7 +109,7 @@ services:
#################################################################### ####################################################################
TYPE: FORGE TYPE: FORGE
VERSION: 1.16.5 VERSION: 1.16.5
FORGEVERSION: 36.2.39 FORGE_VERSION: 36.2.39
GENERIC_PACK: /modpacks/Better+MC+Server+Pack+PLUS+1.16.5+v40+HF.zip GENERIC_PACK: /modpacks/Better+MC+Server+Pack+PLUS+1.16.5+v40+HF.zip
#################################################################### ####################################################################
@@ -97,7 +97,7 @@ services:
# # # #
# VERSION: Defines the version of MC the modpack is based on. # # VERSION: Defines the version of MC the modpack is based on. #
# # # #
# FORGEVERSION: Defines the version of FORGE the modpack uses. # # FORGE_VERSION: Defines the version of FORGE the modpack uses. #
# This can usually be found in the modpack.zip as # # This can usually be found in the modpack.zip as #
# installer.jar # # installer.jar #
# # # #
@@ -108,7 +108,7 @@ services:
#################################################################### ####################################################################
TYPE: FORGE TYPE: FORGE
VERSION: 1.18.2 VERSION: 1.18.2
FORGEVERSION: 40.1.73 FORGE_VERSION: 40.1.73
GENERIC_PACK: /modpacks/tnp5.zip GENERIC_PACK: /modpacks/tnp5.zip
#################################################################### ####################################################################
@@ -144,7 +144,6 @@ services:
VIEW_DISTANCE: "6" VIEW_DISTANCE: "6"
ALLOW_FLIGHT: "true" ALLOW_FLIGHT: "true"
OPS: "" OPS: ""
VIEW_DISTANCE: 10
MAX_PLAYERS: 10 MAX_PLAYERS: 10
PVP: "false" PVP: "false"
LEVEL_TYPE: "biomesoplenty" LEVEL_TYPE: "biomesoplenty"
+1 -1
View File
@@ -11,7 +11,7 @@ services:
TYPE: FORGE TYPE: FORGE
DEBUG: "${DEBUG:-false}" DEBUG: "${DEBUG:-false}"
VERSION: ${VERSION:-1.17.1} VERSION: ${VERSION:-1.17.1}
FORGEVERSION: ${FORGEVERSION:-37.0.90} FORGE_VERSION: ${FORGE_VERSION:-37.0.90}
GENERIC_PACK: /modpacks/${MODPACK:-Server-Files-0.0.21.zip} GENERIC_PACK: /modpacks/${MODPACK:-Server-Files-0.0.21.zip}
REMOVE_OLD_MODS: "${REMOVE_OLD_MODS:-false}" REMOVE_OLD_MODS: "${REMOVE_OLD_MODS:-false}"
ports: ports:
+1 -1
View File
@@ -10,7 +10,7 @@ services:
EULA: "true" EULA: "true"
TYPE: "FORGE" TYPE: "FORGE"
VERSION: "1.12.2" VERSION: "1.12.2"
FORGEVERSION: "14.23.5.2860" FORGE_VERSION: "14.23.5.2860"
OVERRIDE_SERVER_PROPERTIES: "true" OVERRIDE_SERVER_PROPERTIES: "true"
DIFFICULTY: "hard" DIFFICULTY: "hard"
MAX_TICK_TIME: "-1" MAX_TICK_TIME: "-1"
+2 -2
View File
@@ -14,8 +14,8 @@ services:
EULA: "TRUE" EULA: "TRUE"
#VERSION: "1.12.2" (Ensure this is compatbile with the version of SpongeForge you are using!) #VERSION: "1.12.2" (Ensure this is compatbile with the version of SpongeForge you are using!)
TYPE: "FORGE" TYPE: "FORGE"
FORGEVERSION: "RECOMMENDED" FORGE_VERSION: "RECOMMENDED"
#FORGEVERSION: "14.23.5.2807" #FORGE_VERSION: "14.23.5.2807"
CONSOLE: "false" CONSOLE: "false"
ENABLE_RCON: "true" ENABLE_RCON: "true"
RCON_PASSWORD: "testing" RCON_PASSWORD: "testing"
+4 -3
View File
@@ -1,6 +1,7 @@
#!/bin/bash #!/bin/bash
: "${FORGEVERSION:=RECOMMENDED}" : "${FORGE_VERSION:=${FORGEVERSION:-RECOMMENDED}}"
: "${FORGE_FORCE_REINSTALL:=false}}"
# shellcheck source=start-utils # shellcheck source=start-utils
. "${SCRIPTS:-$(dirname "$0")}/start-utils" . "${SCRIPTS:-$(dirname "$0")}/start-utils"
@@ -10,8 +11,8 @@ if ! mc-image-helper install-forge \
--output-directory=/data \ --output-directory=/data \
--results-file=/data/.run-forge.env \ --results-file=/data/.run-forge.env \
--minecraft-version="${VANILLA_VERSION}" \ --minecraft-version="${VANILLA_VERSION}" \
--forge-version="${FORGEVERSION}" \ --forge-version="${FORGE_VERSION}" \
--force-reinstall="${FORCE_REINSTALL:-false}"; then --force-reinstall="${FORGE_FORCE_REINSTALL}"; then
log "ERROR failed to install forge" log "ERROR failed to install forge"
exit 1 exit 1
fi fi