Compare commits

..

3 Commits

Author SHA1 Message Date
Geoff Bourne
642d442fd3 Auto-merging via docker-versions-create 2022-01-23 22:24:55 -06:00
Geoff Bourne
9ce901d77d Merge latest from master 2022-01-23 11:36:19 -06:00
Geoff Bourne
466e99594e Added java17-openj9 variant
#1209
2022-01-01 11:45:05 -06:00
5 changed files with 13 additions and 36 deletions

View File

@@ -80,7 +80,8 @@ jobs:
uses: docker/build-push-action@v2.7.0 uses: docker/build-push-action@v2.7.0
with: with:
context: . context: .
platforms: linux/amd64,linux/arm/v7,linux/arm64 # No arm64/armv7 support: https://hub.docker.com/_/ibm-semeru-runtimes?tab=tags&page=1&name=open-17-jdk
platforms: linux/amd64
push: true push: true
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
# ensure latest base image is used # ensure latest base image is used

View File

@@ -1,4 +1,4 @@
FROM eclipse-temurin:17-jdk FROM ibm-semeru-runtimes:open-17-jdk
LABEL org.opencontainers.image.authors="Geoff Bourne <itzgeoff@gmail.com>" LABEL org.opencontainers.image.authors="Geoff Bourne <itzgeoff@gmail.com>"

View File

@@ -899,12 +899,6 @@ Example of expected Vanillatweaks file format:
"coordinates hud" "coordinates hud"
], ],
"items": ["armored elytra"] "items": ["armored elytra"]
},
"craftingtweaks": {
"quality of life": [
"rotten flesh to leather",
"back to blocks"
]
} }
} }
``` ```

View File

@@ -33,7 +33,7 @@ if [[ "$VANILLATWEAKS_SHARECODE" ]]; then
fi fi
fi fi
# Use vanillatweaks file to specify VT and datapacks and crafting tweaks # Use vanillatweaks file to specify VT and datapacks
if [[ "$VANILLATWEAKS_FILE" ]]; then if [[ "$VANILLATWEAKS_FILE" ]]; then
if [ ! -f "$VANILLATWEAKS_FILE" ]; then if [ ! -f "$VANILLATWEAKS_FILE" ]; then
log "ERROR: given VANILLATWEAKS_FILE file does not exist" log "ERROR: given VANILLATWEAKS_FILE file does not exist"
@@ -41,10 +41,8 @@ if [[ "$VANILLATWEAKS_FILE" ]]; then
fi fi
PACKS=$(jq -jc '.packs' $VANILLATWEAKS_FILE) PACKS=$(jq -jc '.packs' $VANILLATWEAKS_FILE)
CRAFTING_TWEAKS=$(jq -jc '.craftingtweaks' $VANILLATWEAKS_FILE) if [ ! "$PACKS" ]; then
log "ERROR: unable to retrieve packs from $VANILLATWEAKS_FILE"
if [ ! "$PACKS" ] && [ ! "$CRAFTING_TWEAKS" ]; then
log "ERROR: unable to retrieve packs or crafting tweaks from $VANILLATWEAKS_FILE"
exit 2 exit 2
fi fi
@@ -60,19 +58,19 @@ if [[ "$PACKS" ]] && [[ "$VT_VERSION" ]]; then
VT_ZIPDATA_URL=https://vanillatweaks.net/assets/server/zipdatapacks.php VT_ZIPDATA_URL=https://vanillatweaks.net/assets/server/zipdatapacks.php
DOWNLOAD_URL=$(curl -X POST -F "packs=${PACKS}" -F "version=${VT_VERSION}" $VT_ZIPDATA_URL | jq -r '.link') DOWNLOAD_URL=$(curl -X POST -F "packs=${PACKS}" -F "version=${VT_VERSION}" $VT_ZIPDATA_URL | jq -r '.link')
if [ ! "$DOWNLOAD_URL" ]; then if [ ! "$DOWNLOAD_URL" ]; then
log "ERROR: unable to retrieve datapack DOWNLOAD_URL from vanillatweaks.net!" log "ERROR: unable to retrieve DOWNLOAD_URL from vanillatweaks.net!"
exit 2 exit 2
fi fi
TEMPZIP=/tmp/vanillatweaks.zip TEMPZIP=/tmp/vanillatweaks.zip
if ! get -o $TEMPZIP "https://vanillatweaks.net${DOWNLOAD_URL}"; then if ! get -o $TEMPZIP "https://vanillatweaks.net${DOWNLOAD_URL}"; then
log "ERROR: failed to download datapacks from ${DOWNLOAD_URL}" log "ERROR: failed to download from ${DOWNLOAD_URL}"
exit 2 exit 2
fi fi
mkdir -p "$out_dir" mkdir -p "$out_dir"
if ! unzip -o -d "$out_dir" $TEMPZIP; then if ! unzip -o -d "$out_dir" $TEMPZIP; then
log "ERROR: failed to unzip the datapacks ${PACKS} from ${$TEMPZIP}" log "ERROR: failed to unzip the ${PACKS} from ${$TEMPZIP}"
fi fi
# clean up files time! # clean up files time!
@@ -83,20 +81,4 @@ if [[ "$PACKS" ]] && [[ "$VT_VERSION" ]]; then
fi fi
fi fi
# Download and move crafting tweaks
if [[ "$CRAFTING_TWEAKS" ]] && [[ "$VT_VERSION" ]]; then
VT_ZIPDATA_URL=https://vanillatweaks.net/assets/server/zipcraftingtweaks.php
DOWNLOAD_URL=$(curl -X POST -F "packs=${CRAFTING_TWEAKS}" -F "version=${VT_VERSION}" $VT_ZIPDATA_URL | jq -r '.link')
if [ ! "$DOWNLOAD_URL" ]; then
log "ERROR: unable to retrieve crafting tweak DOWNLOAD_URL from vanillatweaks.net!"
exit 2
fi
mkdir -p "$out_dir"
if ! get -o $out_dir/crafting_tweaks.zip "https://vanillatweaks.net${DOWNLOAD_URL}"; then
log "ERROR: failed to download crafting tweaks from ${DOWNLOAD_URL}"
exit 2
fi
fi
exec "${SCRIPTS:-/}start-setupDatapack" "$@" exec "${SCRIPTS:-/}start-setupDatapack" "$@"

View File

@@ -11,8 +11,8 @@ setupOnlyMinecraftTest(){
cd "$folder" cd "$folder"
result=0 result=0
if ! logs=$(docker-compose run mc 2>&1); then if ! logs=$(docker compose run --quiet-pull mc 2>&1); then
echo "${folder} test scenario FAILED" echo "${folder} setup FAILED"
echo ":::::::::::: LOGS :::::::::::::::: echo ":::::::::::: LOGS ::::::::::::::::
$logs $logs
:::::::::::::::::::::::::::::::::: ::::::::::::::::::::::::::::::::::
@@ -29,7 +29,7 @@ $logs
echo "${folder} PASS" echo "${folder} PASS"
fi fi
docker-compose down -v --remove-orphans docker compose down -v --remove-orphans
cd .. cd ..
return $result return $result