mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-11-10 06:14:14 +00:00
Use parallel downloads for AUTO_CURSEFORGE (#1899)
This commit is contained in:
parent
df0c57d111
commit
8017379723
3 changed files with 11 additions and 1 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}} \
|
||||
--from https://github.com/itzg/{{.app}}/releases/download/{{.version}}/{{.app}}_{{.version}}_{{.os}}_{{.arch}}.tar.gz
|
||||
|
||||
ARG MC_HELPER_VERSION=1.24.5
|
||||
ARG MC_HELPER_VERSION=1.24.7
|
||||
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 \
|
||||
| tar -C /usr/share -zxf - \
|
||||
|
|
|
@ -652,6 +652,10 @@ The following two examples both refer to version 1.0.7 of ATM8:
|
|||
|
||||
If there are mods that need to be excluded, such as ones that did not properly declare as a client mod via the file's game versions, then they can be excluded by passing a comma or space delimited list of project IDs via `CF_EXLUDE_MODS`
|
||||
|
||||
Other configuration available:
|
||||
- `CF_PARALLEL_DOWNLOADS` (default is 4): specify how many parallel mod downloads to perform
|
||||
- `CF_FORCE_SYNCHRONIZE`: set to "true" to force the inputs and exclusions to be re-evaluated
|
||||
|
||||
### Old approach
|
||||
|
||||
Enable this server mode by adding `-e TYPE=CURSEFORGE` to your command-line,
|
||||
|
|
|
@ -8,6 +8,8 @@ set -eu
|
|||
: "${CF_SLUG:=}"
|
||||
: "${CF_FILE_ID:=}"
|
||||
: "${CF_FILENAME_MATCHER:=}"
|
||||
: "${CF_PARALLEL_DOWNLOADS:=4}"
|
||||
: "${CF_FORCE_SYNCHRONIZE:=false}"
|
||||
|
||||
resultsFile=/data/.install-curseforge.env
|
||||
|
||||
|
@ -28,6 +30,10 @@ fi
|
|||
if [[ $CF_FILENAME_MATCHER ]]; then
|
||||
args+=(--filename-matcher="$CF_FILENAME_MATCHER")
|
||||
fi
|
||||
args+=(
|
||||
--parallel-downloads="$CF_PARALLEL_DOWNLOADS"
|
||||
--force-synchronize="$CF_FORCE_SYNCHRONIZE"
|
||||
)
|
||||
|
||||
defaultModExcludes=(
|
||||
363363 # extreme-sound-muffler
|
||||
|
|
Loading…
Reference in a new issue