Auto-merging via docker-versions-create

This commit is contained in:
Geoff Bourne 2021-07-26 19:36:01 -05:00
commit c4fa657c61
2 changed files with 10 additions and 3 deletions

View file

@ -470,7 +470,9 @@ A [Magma](https://magmafoundation.org/) server, which is a combination of Forge
-e TYPE=MAGMA
> **NOTE** there are limited base versions supported, so you will also need to set `VERSION`, such as "1.12.2"
By default, the "stable" channel is used, but you can set `MAGMA_CHANNEL` to "dev" to access dev channel versions.
> **NOTE** there are limited base versions supported, so you will also need to set `VERSION`, such as "1.12.2", ""
### Running a Mohist server

View file

@ -2,12 +2,17 @@
. ${SCRIPTS:-/}start-utils
isDebugging && set -x
# stable, dev
: ${MAGMA_CHANNEL:=stable}
export SERVER="/data/magma-server-${VANILLA_VERSION}.jar"
# Always download since new updates of each base version are published frequently
if ! curl -o /data/magma-server-${VANILLA_VERSION}.jar -fsSL \
https://api.magmafoundation.org/api/resources/Magma/${VANILLA_VERSION}/stable/latest/download; then
log "ERROR unable to download version ${VANILLA_VERSION} of Magma"
https://api.magmafoundation.org/api/resources/Magma/${VANILLA_VERSION}/${MAGMA_CHANNEL}/latest/download; then
log "ERROR unable to download version ${VANILLA_VERSION} of Magma in ${MAGMA_CHANNEL} channel"
log " Check https://magmafoundation.org/ for available versions"
exit 1
fi