mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-09-11 16:37:57 +00:00
Compare commits
27
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
03dd3d03ac | ||
|
|
f613228619 | ||
|
|
453230e5b4 | ||
|
|
4e0a1c8764 | ||
|
|
9affd5e446 | ||
|
|
fbca7982c5 | ||
|
|
ce6ce0adbc | ||
|
|
5e0e7999a9 | ||
|
|
34e661267d | ||
|
|
55a539860e | ||
|
|
26b5647ca2 | ||
|
|
bfdb5c075b | ||
|
|
bd4a184ad7 | ||
|
|
156786dacf | ||
|
|
92186c9c8e | ||
|
|
74ee8a621c | ||
|
|
64345b0d82 | ||
|
|
5b45c4ea4e | ||
|
|
a15e608421 | ||
|
|
f4561b7a3b | ||
|
|
c6f0042686 | ||
|
|
79aabf82ff | ||
|
|
89b60c7706 | ||
|
|
4b4cbdfce1 | ||
|
|
a424346d0c | ||
|
|
fad48505d7 | ||
|
|
a535fb7873 |
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
FROM openjdk:8u212-jre-alpine
|
FROM adoptopenjdk/openjdk11:alpine-jre
|
||||||
|
|
||||||
LABEL org.opencontainers.image.authors="Geoff Bourne <itzgeoff@gmail.com>"
|
LABEL org.opencontainers.image.authors="Geoff Bourne <itzgeoff@gmail.com>"
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,17 @@
|
|||||||
set -o pipefail
|
set -o pipefail
|
||||||
isDebugging && set -x
|
isDebugging && set -x
|
||||||
|
|
||||||
|
if [[ $PAPER_DOWNLOAD_URL ]]; then
|
||||||
|
export SERVER=$(getFilenameFromUrl "${PAPER_DOWNLOAD_URL}")
|
||||||
|
|
||||||
|
if [ -f "$SERVER" ]; then
|
||||||
|
zarg=(-z "$SERVER")
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Preparing custom PaperMC jar from $PAPER_DOWNLOAD_URL"
|
||||||
|
|
||||||
|
curl -fsSL -o "$SERVER" "${zarg[@]}" "${PAPER_DOWNLOAD_URL}"
|
||||||
|
else
|
||||||
# PaperMC API v2 docs : https://papermc.io/api/docs/swagger-ui/index.html?configUrl=/api/openapi/swagger-config
|
# PaperMC API v2 docs : https://papermc.io/api/docs/swagger-ui/index.html?configUrl=/api/openapi/swagger-config
|
||||||
|
|
||||||
build=$(curl -fsSL "https://papermc.io/api/v2/projects/paper/versions/${VANILLA_VERSION}" -H "accept: application/json" \
|
build=$(curl -fsSL "https://papermc.io/api/v2/projects/paper/versions/${VANILLA_VERSION}" -H "accept: application/json" \
|
||||||
@@ -53,6 +64,7 @@ if [ $? != 0 ]; then
|
|||||||
echo "ERROR: failed to download PaperMC from version=${VANILLA_VERSION} build=${build} download=${SERVER}"
|
echo "ERROR: failed to download PaperMC from version=${VANILLA_VERSION} build=${build} download=${SERVER}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# Normalize on Spigot for downstream operations
|
# Normalize on Spigot for downstream operations
|
||||||
export TYPE=SPIGOT
|
export TYPE=SPIGOT
|
||||||
|
|||||||
Reference in New Issue
Block a user