From 4c4cdcd4e297647a0dfa487f60a66ae4abe4ad3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?BENEDEK=20L=C3=A1szl=C3=B3?= Date: Sat, 5 Oct 2024 11:43:43 +0200 Subject: [PATCH] init --- .gitignore | 2 ++ java-base.build.yml | 27 +++++++++++++++++++++++++++ java-base/Dockerfile | 9 +++++++++ jmusicbot.build.yml | 27 +++++++++++++++++++++++++++ jmusicbot/Dockerfile | 9 +++++++++ papermc.build.yml | 35 +++++++++++++++++++++++++++++++++++ papermc/Dockerfile | 19 +++++++++++++++++++ 7 files changed, 128 insertions(+) create mode 100644 .gitignore create mode 100644 java-base.build.yml create mode 100644 java-base/Dockerfile create mode 100644 jmusicbot.build.yml create mode 100644 jmusicbot/Dockerfile create mode 100644 papermc.build.yml create mode 100644 papermc/Dockerfile diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5e9f49f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +build.py +buildx-manager \ No newline at end of file diff --git a/java-base.build.yml b/java-base.build.yml new file mode 100644 index 0000000..5fdae3e --- /dev/null +++ b/java-base.build.yml @@ -0,0 +1,27 @@ +registries: + - registry.tek.govt.hu +repos: + - name: java-base + library: dowerx + path: java-base + args: + - key: VERSION + value: "${VERSION}" + tags: + - name: latest + tags: + - amd64 + - arm64 + - name: "${VERSION}" + tags: + - "${VERSION}-amd64" + - "${VERSION}-arm64" + builds: + - arch: amd64 + tags: + - amd64 + - "${VERSION}-amd64" + - arch: arm64 + tags: + - arm64 + - "${VERSION}-arm64" \ No newline at end of file diff --git a/java-base/Dockerfile b/java-base/Dockerfile new file mode 100644 index 0000000..bcc94e8 --- /dev/null +++ b/java-base/Dockerfile @@ -0,0 +1,9 @@ +# registry.tek.govt.hu/dowerx/java-base + +FROM alpine:edge + +ARG VERSION + +RUN apk --no-cache add openjdk${VERSION} + +ENTRYPOINT [ "java" ] \ No newline at end of file diff --git a/jmusicbot.build.yml b/jmusicbot.build.yml new file mode 100644 index 0000000..829f213 --- /dev/null +++ b/jmusicbot.build.yml @@ -0,0 +1,27 @@ +registries: + - registry.tek.govt.hu +repos: + - name: jmusicbot + library: dowerx + path: jmusicbot + args: + - key: VERSION + value: "${VERSION}" + tags: + - name: latest + tags: + - amd64 + - arm64 + - name: "${VERSION}" + tags: + - "${VERSION}-amd64" + - "${VERSION}-arm64" + builds: + - arch: amd64 + tags: + - amd64 + - "${VERSION}-amd64" + - arch: arm64 + tags: + - arm64 + - "${VERSION}-arm64" \ No newline at end of file diff --git a/jmusicbot/Dockerfile b/jmusicbot/Dockerfile new file mode 100644 index 0000000..1c16002 --- /dev/null +++ b/jmusicbot/Dockerfile @@ -0,0 +1,9 @@ +# registry.tek.govt.hu/dowerx/jmusicbot + +FROM registry.tek.govt.hu/dowerx/java-base:21-jre + +ARG VERSION + +RUN wget -O /jmusicbot.jar https://github.com/jagrosh/MusicBot/releases/download/${VERSION}/JMusicBot-${VERSION}.jar + +ENTRYPOINT [ "java", "-jar", "/jmusicbot.jar" ] \ No newline at end of file diff --git a/papermc.build.yml b/papermc.build.yml new file mode 100644 index 0000000..956a058 --- /dev/null +++ b/papermc.build.yml @@ -0,0 +1,35 @@ +registries: + - registry.tek.govt.hu +repos: + - name: papermc + library: dowerx + path: papermc + args: + - key: VERSION + value: "${VERSION}" + - key: BUILD + value: "${BUILD}" + tags: + - name: latest + tags: + - amd64 + - arm64 + - name: "${VERSION}" + tags: + - "${VERSION}-amd64" + - "${VERSION}-arm64" + - name: "${VERSION}-${BUILD}" + tags: + - "${VERSION}-${BUILD}-amd64" + - "${VERSION}-${BUILD}-arm64" + builds: + - arch: amd64 + tags: + - amd64 + - "${VERSION}-amd64" + - "${VERSION}-${BUILD}-amd64" + - arch: arm64 + tags: + - arm64 + - "${VERSION}-arm64" + - "${VERSION}-${BUILD}-arm64" diff --git a/papermc/Dockerfile b/papermc/Dockerfile new file mode 100644 index 0000000..680ebc0 --- /dev/null +++ b/papermc/Dockerfile @@ -0,0 +1,19 @@ +# registry.tek.govt.hu/dowerx/papermc + +FROM registry.tek.govt.hu/dowerx/java-base:21-jre + +ARG VERSION +ARG BUILD + +RUN \ + mkdir -p /minecraft/workdir && \ + wget -O /minecraft/server.jar "https://api.papermc.io/v2/projects/paper/versions/${VERSION}/builds/${BUILD}/downloads/paper-${VERSION}-${BUILD}.jar" + +ENV JAVA_FLAGS=-Xmx2G + +EXPOSE 25565 +EXPOSE 25575 + +WORKDIR /minecraft/workdir + +ENTRYPOINT java ${JAVA_FLAGS} -jar /minecraft/server.jar nogui