From ccca16fe41521b2204afdfa1024819a7c59263df Mon Sep 17 00:00:00 2001 From: zGumeloBr Date: Sun, 7 Jul 2024 18:45:56 -0300 Subject: [PATCH] Added zulu prime 21 --- .github/workflows/java-zulu-prime-dev.yml | 44 +++++++++++++++++++++++ java/zulu-prime/21/Dockerfile | 26 ++++++++++++++ java/zulu-prime/entrypoint.sh | 10 ++++++ 3 files changed, 80 insertions(+) create mode 100644 .github/workflows/java-zulu-prime-dev.yml create mode 100644 java/zulu-prime/21/Dockerfile create mode 100644 java/zulu-prime/entrypoint.sh diff --git a/.github/workflows/java-zulu-prime-dev.yml b/.github/workflows/java-zulu-prime-dev.yml new file mode 100644 index 0000000..e86435c --- /dev/null +++ b/.github/workflows/java-zulu-prime-dev.yml @@ -0,0 +1,44 @@ +name: build java-zulu-prime-dev + +on: + workflow_dispatch: + schedule: + - cron: "0 0 * * 1" + push: + branches: + - dev + paths: + - java/zulu-prime/** + +jobs: + push: + name: "pterodactyl:java_prime_${{ matrix.tag }}_dev" + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + tag: + - 8 + - 11 + - 15 + - 16 + - 17 + - 21 + steps: + - uses: actions/checkout@v4 + - uses: docker/setup-buildx-action@v3 + with: + buildkitd-flags: --debug + - uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.REGISTRY_TOKEN }} + - uses: docker/build-push-action@v2 + with: + context: ./java/zulu-prime + file: ./java/zulu-prime/${{ matrix.tag }}/Dockerfile + platforms: linux/amd64 + push: true + tags: | + ghcr.io/zgumelobr/pterodactyl:java_prime_${{ matrix.tag }}_dev diff --git a/java/zulu-prime/21/Dockerfile b/java/zulu-prime/21/Dockerfile new file mode 100644 index 0000000..2c3ff0c --- /dev/null +++ b/java/zulu-prime/21/Dockerfile @@ -0,0 +1,26 @@ +FROM azul/prime:21 + +LABEL author="zGumeloBr" maintainer="yan.mf@outlook.com" + +LABEL org.opencontainers.image.source="https://github.com/zGumeloBr/pterodactyl-images" +LABEL org.opencontainers.image.licenses=MIT + +ENV DEBIAN_FRONTEND noninteractive + +RUN apt-get update \ + && apt-get -y install --no-install-recommends curl ffmpeg iproute2 git sqlite3 python3 tzdata ca-certificates dnsutils fontconfig libfreetype6 libstdc++6 lsof build-essential locales \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* \ + && useradd -m -d /home/container container \ + && locale-gen en_US.UTF-8 + +ENV LC_ALL=en_US.UTF-8 +ENV LANG=en_US.UTF-8 +ENV LANGUAGE=en_US.UTF-8 + +USER container +ENV USER=container HOME=/home/container +WORKDIR /home/container + +COPY ./entrypoint.sh /entrypoint.sh +CMD [ "/bin/bash", "/entrypoint.sh" ] diff --git a/java/zulu-prime/entrypoint.sh b/java/zulu-prime/entrypoint.sh new file mode 100644 index 0000000..a054adc --- /dev/null +++ b/java/zulu-prime/entrypoint.sh @@ -0,0 +1,10 @@ +#!/bin/bash +cd /home/container + +export INTERNAL_IP=`ip route get 1 | awk '{print $NF;exit}'` + +java -version +MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')` +echo -e "\036[0;32mSTARTUP: ${MODIFIED_STARTUP}\033[0m" + +eval ${MODIFIED_STARTUP}