From e9386f54d4ba841020384a12e2cdbcf0e778be56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?BENEDEK=20L=C3=A1szl=C3=B3?= Date: Mon, 23 Dec 2024 15:47:41 +0100 Subject: [PATCH] forge --- minecraft-forge.build.yml | 35 +++++++++++++++++++++++++++++++++++ minecraft-forge/Dockerfile | 17 +++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 minecraft-forge.build.yml create mode 100644 minecraft-forge/Dockerfile diff --git a/minecraft-forge.build.yml b/minecraft-forge.build.yml new file mode 100644 index 0000000..ba2a4cf --- /dev/null +++ b/minecraft-forge.build.yml @@ -0,0 +1,35 @@ +registries: + - registry.tek.govt.hu +repos: + - name: minecraft-forge + library: dowerx + path: minecraft-forge + args: + - key: MINECRAFT_VERSION + value: "${MINECRAFT_VERSION}" + - key: FORGE_VERSION + value: "${FORGE_VERSION}" + tags: + - name: latest + tags: + - amd64 + - arm64 + - name: "${MINECRAFT_VERSION}" + tags: + - "${MINECRAFT_VERSION}-amd64" + - "${MINECRAFT_VERSION}-arm64" + - name: "${MINECRAFT_VERSION}-${FORGE_VERSION}" + tags: + - "${MINECRAFT_VERSION}-${FORGE_VERSION}-amd64" + - "${MINECRAFT_VERSION}-${FORGE_VERSION}-arm64" + builds: + - arch: amd64 + tags: + - amd64 + - "${MINECRAFT_VERSION}-amd64" + - "${MINECRAFT_VERSION}-${FORGE_VERSION}-amd64" + - arch: arm64 + tags: + - arm64 + - "${MINECRAFT_VERSION}-arm64" + - "${MINECRAFT_VERSION}-${FORGE_VERSION}-arm64" \ No newline at end of file diff --git a/minecraft-forge/Dockerfile b/minecraft-forge/Dockerfile new file mode 100644 index 0000000..e2f85d2 --- /dev/null +++ b/minecraft-forge/Dockerfile @@ -0,0 +1,17 @@ +# registry.tek.govt.hu/dowerx/minecraft-forge + +FROM registry.tek.govt.hu/dowerx/java-base:21-jre + +ARG MINECRAFT_VERSION="1.20.1" +ARG FORGE_VERSION="47.3.0" + +ADD https://maven.minecraftforge.net/net/minecraftforge/forge/${MINECRAFT_VERSION}-${FORGE_VERSION}/forge-${MINECRAFT_VERSION}-${FORGE_VERSION}-installer.jar /forge-installer.jar + +RUN java -jar /forge-installer.jar --installServer /minecraft + +WORKDIR /minecraft + +EXPOSE 25565 +EXPOSE 25575 + +ENTRYPOINT [ "/minecraft/run.sh", "-nogui" ] \ No newline at end of file