mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-11-10 14:24:28 +00:00
Handle installation of older Fabric versions (#1945)
This commit is contained in:
parent
5624faebe7
commit
184d5b50d2
3 changed files with 7 additions and 7 deletions
|
@ -46,7 +46,7 @@ RUN easy-add --var os=${TARGETOS} --var arch=${TARGETARCH}${TARGETVARIANT} \
|
||||||
--var version=0.1.1 --var app=maven-metadata-release --file {{.app}} \
|
--var version=0.1.1 --var app=maven-metadata-release --file {{.app}} \
|
||||||
--from https://github.com/itzg/{{.app}}/releases/download/{{.version}}/{{.app}}_{{.version}}_{{.os}}_{{.arch}}.tar.gz
|
--from https://github.com/itzg/{{.app}}/releases/download/{{.version}}/{{.app}}_{{.version}}_{{.os}}_{{.arch}}.tar.gz
|
||||||
|
|
||||||
ARG MC_HELPER_VERSION=1.24.20
|
ARG MC_HELPER_VERSION=1.24.21
|
||||||
ARG MC_HELPER_BASE_URL=https://github.com/itzg/mc-image-helper/releases/download/${MC_HELPER_VERSION}
|
ARG MC_HELPER_BASE_URL=https://github.com/itzg/mc-image-helper/releases/download/${MC_HELPER_VERSION}
|
||||||
RUN curl -fsSL ${MC_HELPER_BASE_URL}/mc-image-helper-${MC_HELPER_VERSION}.tgz \
|
RUN curl -fsSL ${MC_HELPER_BASE_URL}/mc-image-helper-${MC_HELPER_VERSION}.tgz \
|
||||||
| tar -C /usr/share -zxf - \
|
| tar -C /usr/share -zxf - \
|
||||||
|
|
|
@ -6,7 +6,7 @@ services:
|
||||||
tty: true
|
tty: true
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
ports:
|
ports:
|
||||||
- 25565:25565
|
- "25565:25565"
|
||||||
environment:
|
environment:
|
||||||
EULA: "TRUE"
|
EULA: "TRUE"
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
@ -14,11 +14,11 @@
|
||||||
set -e
|
set -e
|
||||||
isDebugging && set -x
|
isDebugging && set -x
|
||||||
|
|
||||||
if isTrue ${SYNC_SKIP_NEWER_IN_DESTINATION}; then
|
if isTrue "${SYNC_SKIP_NEWER_IN_DESTINATION}"; then
|
||||||
updateArg="--skip-newer-in-destination"
|
updateArg="--skip-newer-in-destination"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if isTrue ${REPLACE_ENV_DURING_SYNC}; then
|
if isTrue "${REPLACE_ENV_DURING_SYNC}"; then
|
||||||
subcommand=sync-and-interpolate
|
subcommand=sync-and-interpolate
|
||||||
else
|
else
|
||||||
subcommand=sync
|
subcommand=sync
|
||||||
|
@ -34,7 +34,7 @@ if [ -d /plugins ]; then
|
||||||
--replace-env-file-suffixes="${REPLACE_ENV_SUFFIXES}" \
|
--replace-env-file-suffixes="${REPLACE_ENV_SUFFIXES}" \
|
||||||
--replace-env-excludes="${REPLACE_ENV_VARIABLES_EXCLUDES}" \
|
--replace-env-excludes="${REPLACE_ENV_VARIABLES_EXCLUDES}" \
|
||||||
--replace-env-exclude-paths="${REPLACE_ENV_VARIABLES_EXCLUDE_PATHS}" \
|
--replace-env-exclude-paths="${REPLACE_ENV_VARIABLES_EXCLUDE_PATHS}" \
|
||||||
--replace-env-prefix=${REPLACE_ENV_VARIABLE_PREFIX} \
|
--replace-env-prefix="${REPLACE_ENV_VARIABLE_PREFIX}" \
|
||||||
/plugins /data/plugins
|
/plugins /data/plugins
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -50,7 +50,7 @@ if [ -d /mods ]; then
|
||||||
--replace-env-file-suffixes="${REPLACE_ENV_SUFFIXES}" \
|
--replace-env-file-suffixes="${REPLACE_ENV_SUFFIXES}" \
|
||||||
--replace-env-excludes="${REPLACE_ENV_VARIABLES_EXCLUDES}" \
|
--replace-env-excludes="${REPLACE_ENV_VARIABLES_EXCLUDES}" \
|
||||||
--replace-env-exclude-paths="${REPLACE_ENV_VARIABLES_EXCLUDE_PATHS}" \
|
--replace-env-exclude-paths="${REPLACE_ENV_VARIABLES_EXCLUDE_PATHS}" \
|
||||||
--replace-env-prefix=${REPLACE_ENV_VARIABLE_PREFIX} \
|
--replace-env-prefix="${REPLACE_ENV_VARIABLE_PREFIX}" \
|
||||||
/mods "${COPY_MODS_DEST}"
|
/mods "${COPY_MODS_DEST}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ if [ -d /config ]; then
|
||||||
--replace-env-file-suffixes="${REPLACE_ENV_SUFFIXES}" \
|
--replace-env-file-suffixes="${REPLACE_ENV_SUFFIXES}" \
|
||||||
--replace-env-excludes="${REPLACE_ENV_VARIABLES_EXCLUDES}" \
|
--replace-env-excludes="${REPLACE_ENV_VARIABLES_EXCLUDES}" \
|
||||||
--replace-env-exclude-paths="${REPLACE_ENV_VARIABLES_EXCLUDE_PATHS}" \
|
--replace-env-exclude-paths="${REPLACE_ENV_VARIABLES_EXCLUDE_PATHS}" \
|
||||||
--replace-env-prefix=${REPLACE_ENV_VARIABLE_PREFIX} \
|
--replace-env-prefix="${REPLACE_ENV_VARIABLE_PREFIX}" \
|
||||||
/config "${COPY_CONFIG_DEST}"
|
/config "${COPY_CONFIG_DEST}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue