mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-02-17 15:13:55 +00:00
Compare commits
39 Commits
test/with-
...
java17
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aeae29046c | ||
|
|
726c77537c | ||
|
|
854ac86bed | ||
|
|
79345d69c2 | ||
|
|
7516b53e84 | ||
|
|
eafdf26d94 | ||
|
|
984c969da2 | ||
|
|
aff65b74ff | ||
|
|
2ed5de68f9 | ||
|
|
a4b6ee6d3b | ||
|
|
6729ba462e | ||
|
|
4b28d5e472 | ||
|
|
3a31ce757d | ||
|
|
be2ef20fc1 | ||
|
|
3f2022da40 | ||
|
|
0f7464403c | ||
|
|
6020400d3b | ||
|
|
ae96adaeec | ||
|
|
d34be9f20e | ||
|
|
64a02d28bc | ||
|
|
c446cb11da | ||
|
|
7aea5b593e | ||
|
|
91adfaa1d9 | ||
|
|
e7b223f1c6 | ||
|
|
45eff98011 | ||
|
|
b4111f0428 | ||
|
|
288bdf3804 | ||
|
|
5bc1ac672e | ||
|
|
a503ad2ec2 | ||
|
|
3042aa4909 | ||
|
|
8882ae5f89 | ||
|
|
4149db7f11 | ||
|
|
666f538ad5 | ||
|
|
145403ea54 | ||
|
|
5392801ecd | ||
|
|
3dfd70d068 | ||
|
|
e5bc9b939f | ||
|
|
1b620d2d6d | ||
|
|
28d77853cb |
@@ -286,7 +286,7 @@ When using the image `itzg:/minecraft-server` without a tag, the `latest` image
|
||||
|
||||
| Tag name | Java version | Linux | JVM Type | Architecture |
|
||||
| -------------- | -------------|--------|----------|-------------------|
|
||||
| latest | 17 | Debian | Hotspot | amd64,arm64,armv7 |
|
||||
| latest | 16 | Debian | Hotspot | amd64,arm64,armv7 |
|
||||
| java8 | 8 | Alpine | Hotspot | amd64 |
|
||||
| java8-multiarch | 8 | Debian | Hotspot | amd64,arm64,armv7 |
|
||||
| java8-openj9 | 8 | Debian | OpenJ9 | amd64 |
|
||||
@@ -899,12 +899,6 @@ Example of expected Vanillatweaks file format:
|
||||
"coordinates hud"
|
||||
],
|
||||
"items": ["armored elytra"]
|
||||
},
|
||||
"craftingtweaks": {
|
||||
"quality of life": [
|
||||
"rotten flesh to leather",
|
||||
"back to blocks"
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
@@ -33,7 +33,7 @@ if [[ "$VANILLATWEAKS_SHARECODE" ]]; then
|
||||
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 [ ! -f "$VANILLATWEAKS_FILE" ]; then
|
||||
log "ERROR: given VANILLATWEAKS_FILE file does not exist"
|
||||
@@ -41,10 +41,8 @@ if [[ "$VANILLATWEAKS_FILE" ]]; then
|
||||
fi
|
||||
|
||||
PACKS=$(jq -jc '.packs' $VANILLATWEAKS_FILE)
|
||||
CRAFTING_TWEAKS=$(jq -jc '.craftingtweaks' $VANILLATWEAKS_FILE)
|
||||
|
||||
if [ ! "$PACKS" ] && [ ! "$CRAFTING_TWEAKS" ]; then
|
||||
log "ERROR: unable to retrieve packs or crafting tweaks from $VANILLATWEAKS_FILE"
|
||||
if [ ! "$PACKS" ]; then
|
||||
log "ERROR: unable to retrieve packs from $VANILLATWEAKS_FILE"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
@@ -60,19 +58,19 @@ if [[ "$PACKS" ]] && [[ "$VT_VERSION" ]]; then
|
||||
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')
|
||||
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
|
||||
fi
|
||||
|
||||
TEMPZIP=/tmp/vanillatweaks.zip
|
||||
if ! get -o $TEMPZIP "https://vanillatweaks.net${DOWNLOAD_URL}"; then
|
||||
log "ERROR: failed to download datapacks from ${DOWNLOAD_URL}"
|
||||
if ! get -o $TEMPZIP "https://vanillatweaks.net${DOWNLOAD_URL}"; then
|
||||
log "ERROR: failed to download from ${DOWNLOAD_URL}"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
mkdir -p "$out_dir"
|
||||
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
|
||||
|
||||
# clean up files time!
|
||||
@@ -83,20 +81,4 @@ if [[ "$PACKS" ]] && [[ "$VT_VERSION" ]]; then
|
||||
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" "$@"
|
||||
|
||||
@@ -11,8 +11,8 @@ setupOnlyMinecraftTest(){
|
||||
cd "$folder"
|
||||
result=0
|
||||
|
||||
if ! logs=$(docker-compose run mc 2>&1); then
|
||||
echo "${folder} test scenario FAILED"
|
||||
if ! logs=$(docker compose run --quiet-pull mc 2>&1); then
|
||||
echo "${folder} setup FAILED"
|
||||
echo ":::::::::::: LOGS ::::::::::::::::
|
||||
$logs
|
||||
::::::::::::::::::::::::::::::::::
|
||||
@@ -29,7 +29,7 @@ $logs
|
||||
echo "${folder} PASS"
|
||||
fi
|
||||
|
||||
docker-compose down -v --remove-orphans
|
||||
docker compose down -v --remove-orphans
|
||||
cd ..
|
||||
|
||||
return $result
|
||||
|
||||
Reference in New Issue
Block a user