diff --git a/.github/workflows/java-zulu.yml b/.github/workflows/java-zulu.yml new file mode 100644 index 0000000..850cf56 --- /dev/null +++ b/.github/workflows/java-zulu.yml @@ -0,0 +1,66 @@ +name: build java-zulu + +on: + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + schedule: + - cron: "0 0 * * 1" + push: + branches: + - main + paths: + - java/zulu/** + +env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + +jobs: + push: + name: "java:zulu_${{ matrix.tag }}" + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + tag: + - 8 + - 9 + - 10 + - 11 + - 12 + - 13 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 20 + - 21 + - 22 + - 23 + + steps: + - uses: actions/checkout@v4 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + 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.GITHUB_TOKEN }} + + - uses: docker/build-push-action@v6 + with: + context: ./java/zulu + file: ./java/zulu/${{ matrix.tag }}/Dockerfile + platforms: linux/amd64,linux/arm64 + push: true + tags: | + ghcr.io/goover/java:zulu_${{ matrix.tag }} diff --git a/java/dragonwell/entrypoint.sh b/java/dragonwell/entrypoint.sh index fb28093..57d8413 100644 --- a/java/dragonwell/entrypoint.sh +++ b/java/dragonwell/entrypoint.sh @@ -24,7 +24,8 @@ export INTERNAL_IP # system informations echo -e "${BLUE}---------------------------------------------------------------------${NC}" -echo -e "${RED}Java Corretto Image by gOOvER - https://discord.goover.dev${NC}" +echo -e "${RED}Java Dragonwell Image by gOOvER - https://discord.goover.dev${NC}" +echo -e "${RED}THIS IMAGE IS LICENSED UNDER AGPLv3${NC}" echo -e "${BLUE}---------------------------------------------------------------------${NC}" echo -e "${YELLOW}Linux Distribution: ${RED} $(. /etc/os-release ; echo $PRETTY_NAME)${NC}" echo -e "${YELLOW}Current timezone: ${RED} $(cat /etc/timezone)${NC}" diff --git a/java/zulu/10/Dockerfile b/java/zulu/10/Dockerfile new file mode 100644 index 0000000..faef96d --- /dev/null +++ b/java/zulu/10/Dockerfile @@ -0,0 +1,47 @@ +FROM --platform=$TARGETOS/$TARGETARCH azul/zulu-openjdk:10-latest + +LABEL org.opencontainers.image.authors="info@goover.de" +LABEL org.opencontainers.image.source="https://github.com/gOOvER/own-pterodactyl-images" +LABEL org.opencontainers.image.description="Docker image for Pelican Hosting Panel and Pterodactyl" +LABEL org.opencontainers.image.licenses=AGPL-3.0-or-later + + +RUN apt update -y \ + && apt -y upgrade + +RUN apt install -y \ + build-essential \ + ca-certificates \ + curl \ + font-manager \ + fontconfig \ + git \ + iproute2 \ + ipset \ + locales \ + lsof \ + openssl \ + sqlite3 \ + tar \ + tzdata \ + libfreetype6 \ + libstdc++6 + +RUN apt-get clean \ + && rm -rf /var/lib/apt/lists/* \ + +# Set the locale +RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \ + locale-gen +ENV LANG=en_US.UTF-8 +ENV LANGUAGE=en_US:en +ENV LC_ALL=en_US.UTF-8 + +## Setup user and working directory +RUN useradd -m -d /home/container -s /bin/bash container +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/11/Dockerfile b/java/zulu/11/Dockerfile new file mode 100644 index 0000000..e8b7469 --- /dev/null +++ b/java/zulu/11/Dockerfile @@ -0,0 +1,47 @@ +FROM --platform=$TARGETOS/$TARGETARCH azul/zulu-openjdk:11-latest + +LABEL org.opencontainers.image.authors="info@goover.de" +LABEL org.opencontainers.image.source="https://github.com/gOOvER/own-pterodactyl-images" +LABEL org.opencontainers.image.description="Docker image for Pelican Hosting Panel and Pterodactyl" +LABEL org.opencontainers.image.licenses=AGPL-3.0-or-later + + +RUN apt update -y \ + && apt -y upgrade + +RUN apt install -y \ + build-essential \ + ca-certificates \ + curl \ + font-manager \ + fontconfig \ + git \ + iproute2 \ + ipset \ + locales \ + lsof \ + openssl \ + sqlite3 \ + tar \ + tzdata \ + libfreetype6 \ + libstdc++6 + +RUN apt-get clean \ + && rm -rf /var/lib/apt/lists/* \ + +# Set the locale +RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \ + locale-gen +ENV LANG=en_US.UTF-8 +ENV LANGUAGE=en_US:en +ENV LC_ALL=en_US.UTF-8 + +## Setup user and working directory +RUN useradd -m -d /home/container -s /bin/bash container +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/12/Dockerfile b/java/zulu/12/Dockerfile new file mode 100644 index 0000000..471906c --- /dev/null +++ b/java/zulu/12/Dockerfile @@ -0,0 +1,47 @@ +FROM --platform=$TARGETOS/$TARGETARCH azul/zulu-openjdk:12-latest + +LABEL org.opencontainers.image.authors="info@goover.de" +LABEL org.opencontainers.image.source="https://github.com/gOOvER/own-pterodactyl-images" +LABEL org.opencontainers.image.description="Docker image for Pelican Hosting Panel and Pterodactyl" +LABEL org.opencontainers.image.licenses=AGPL-3.0-or-later + + +RUN apt update -y \ + && apt -y upgrade + +RUN apt install -y \ + build-essential \ + ca-certificates \ + curl \ + font-manager \ + fontconfig \ + git \ + iproute2 \ + ipset \ + locales \ + lsof \ + openssl \ + sqlite3 \ + tar \ + tzdata \ + libfreetype6 \ + libstdc++6 + +RUN apt-get clean \ + && rm -rf /var/lib/apt/lists/* \ + +# Set the locale +RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \ + locale-gen +ENV LANG=en_US.UTF-8 +ENV LANGUAGE=en_US:en +ENV LC_ALL=en_US.UTF-8 + +## Setup user and working directory +RUN useradd -m -d /home/container -s /bin/bash container +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/13/Dockerfile b/java/zulu/13/Dockerfile new file mode 100644 index 0000000..58c1ccd --- /dev/null +++ b/java/zulu/13/Dockerfile @@ -0,0 +1,47 @@ +FROM --platform=$TARGETOS/$TARGETARCH azul/zulu-openjdk:13-latest + +LABEL org.opencontainers.image.authors="info@goover.de" +LABEL org.opencontainers.image.source="https://github.com/gOOvER/own-pterodactyl-images" +LABEL org.opencontainers.image.description="Docker image for Pelican Hosting Panel and Pterodactyl" +LABEL org.opencontainers.image.licenses=AGPL-3.0-or-later + + +RUN apt update -y \ + && apt -y upgrade + +RUN apt install -y \ + build-essential \ + ca-certificates \ + curl \ + font-manager \ + fontconfig \ + git \ + iproute2 \ + ipset \ + locales \ + lsof \ + openssl \ + sqlite3 \ + tar \ + tzdata \ + libfreetype6 \ + libstdc++6 + +RUN apt-get clean \ + && rm -rf /var/lib/apt/lists/* \ + +# Set the locale +RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \ + locale-gen +ENV LANG=en_US.UTF-8 +ENV LANGUAGE=en_US:en +ENV LC_ALL=en_US.UTF-8 + +## Setup user and working directory +RUN useradd -m -d /home/container -s /bin/bash container +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/14/Dockerfile b/java/zulu/14/Dockerfile new file mode 100644 index 0000000..0735e8a --- /dev/null +++ b/java/zulu/14/Dockerfile @@ -0,0 +1,47 @@ +FROM --platform=$TARGETOS/$TARGETARCH azul/zulu-openjdk:14-latest + +LABEL org.opencontainers.image.authors="info@goover.de" +LABEL org.opencontainers.image.source="https://github.com/gOOvER/own-pterodactyl-images" +LABEL org.opencontainers.image.description="Docker image for Pelican Hosting Panel and Pterodactyl" +LABEL org.opencontainers.image.licenses=AGPL-3.0-or-later + + +RUN apt update -y \ + && apt -y upgrade + +RUN apt install -y \ + build-essential \ + ca-certificates \ + curl \ + font-manager \ + fontconfig \ + git \ + iproute2 \ + ipset \ + locales \ + lsof \ + openssl \ + sqlite3 \ + tar \ + tzdata \ + libfreetype6 \ + libstdc++6 + +RUN apt-get clean \ + && rm -rf /var/lib/apt/lists/* \ + +# Set the locale +RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \ + locale-gen +ENV LANG=en_US.UTF-8 +ENV LANGUAGE=en_US:en +ENV LC_ALL=en_US.UTF-8 + +## Setup user and working directory +RUN useradd -m -d /home/container -s /bin/bash container +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/15/Dockerfile b/java/zulu/15/Dockerfile new file mode 100644 index 0000000..31e23ba --- /dev/null +++ b/java/zulu/15/Dockerfile @@ -0,0 +1,47 @@ +FROM --platform=$TARGETOS/$TARGETARCH azul/zulu-openjdk:15-latest + +LABEL org.opencontainers.image.authors="info@goover.de" +LABEL org.opencontainers.image.source="https://github.com/gOOvER/own-pterodactyl-images" +LABEL org.opencontainers.image.description="Docker image for Pelican Hosting Panel and Pterodactyl" +LABEL org.opencontainers.image.licenses=AGPL-3.0-or-later + + +RUN apt update -y \ + && apt -y upgrade + +RUN apt install -y \ + build-essential \ + ca-certificates \ + curl \ + font-manager \ + fontconfig \ + git \ + iproute2 \ + ipset \ + locales \ + lsof \ + openssl \ + sqlite3 \ + tar \ + tzdata \ + libfreetype6 \ + libstdc++6 + +RUN apt-get clean \ + && rm -rf /var/lib/apt/lists/* \ + +# Set the locale +RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \ + locale-gen +ENV LANG=en_US.UTF-8 +ENV LANGUAGE=en_US:en +ENV LC_ALL=en_US.UTF-8 + +## Setup user and working directory +RUN useradd -m -d /home/container -s /bin/bash container +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/16/Dockerfile b/java/zulu/16/Dockerfile new file mode 100644 index 0000000..af680f3 --- /dev/null +++ b/java/zulu/16/Dockerfile @@ -0,0 +1,47 @@ +FROM --platform=$TARGETOS/$TARGETARCH azul/zulu-openjdk:16-latest + +LABEL org.opencontainers.image.authors="info@goover.de" +LABEL org.opencontainers.image.source="https://github.com/gOOvER/own-pterodactyl-images" +LABEL org.opencontainers.image.description="Docker image for Pelican Hosting Panel and Pterodactyl" +LABEL org.opencontainers.image.licenses=AGPL-3.0-or-later + + +RUN apt update -y \ + && apt -y upgrade + +RUN apt install -y \ + build-essential \ + ca-certificates \ + curl \ + font-manager \ + fontconfig \ + git \ + iproute2 \ + ipset \ + locales \ + lsof \ + openssl \ + sqlite3 \ + tar \ + tzdata \ + libfreetype6 \ + libstdc++6 + +RUN apt-get clean \ + && rm -rf /var/lib/apt/lists/* \ + +# Set the locale +RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \ + locale-gen +ENV LANG=en_US.UTF-8 +ENV LANGUAGE=en_US:en +ENV LC_ALL=en_US.UTF-8 + +## Setup user and working directory +RUN useradd -m -d /home/container -s /bin/bash container +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/17/Dockerfile b/java/zulu/17/Dockerfile new file mode 100644 index 0000000..d0e6c94 --- /dev/null +++ b/java/zulu/17/Dockerfile @@ -0,0 +1,47 @@ +FROM --platform=$TARGETOS/$TARGETARCH azul/zulu-openjdk:17-latest + +LABEL org.opencontainers.image.authors="info@goover.de" +LABEL org.opencontainers.image.source="https://github.com/gOOvER/own-pterodactyl-images" +LABEL org.opencontainers.image.description="Docker image for Pelican Hosting Panel and Pterodactyl" +LABEL org.opencontainers.image.licenses=AGPL-3.0-or-later + + +RUN apt update -y \ + && apt -y upgrade + +RUN apt install -y \ + build-essential \ + ca-certificates \ + curl \ + font-manager \ + fontconfig \ + git \ + iproute2 \ + ipset \ + locales \ + lsof \ + openssl \ + sqlite3 \ + tar \ + tzdata \ + libfreetype6 \ + libstdc++6 + +RUN apt-get clean \ + && rm -rf /var/lib/apt/lists/* \ + +# Set the locale +RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \ + locale-gen +ENV LANG=en_US.UTF-8 +ENV LANGUAGE=en_US:en +ENV LC_ALL=en_US.UTF-8 + +## Setup user and working directory +RUN useradd -m -d /home/container -s /bin/bash container +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/18/Dockerfile b/java/zulu/18/Dockerfile new file mode 100644 index 0000000..da12444 --- /dev/null +++ b/java/zulu/18/Dockerfile @@ -0,0 +1,47 @@ +FROM --platform=$TARGETOS/$TARGETARCH azul/zulu-openjdk:18-latest + +LABEL org.opencontainers.image.authors="info@goover.de" +LABEL org.opencontainers.image.source="https://github.com/gOOvER/own-pterodactyl-images" +LABEL org.opencontainers.image.description="Docker image for Pelican Hosting Panel and Pterodactyl" +LABEL org.opencontainers.image.licenses=AGPL-3.0-or-later + + +RUN apt update -y \ + && apt -y upgrade + +RUN apt install -y \ + build-essential \ + ca-certificates \ + curl \ + font-manager \ + fontconfig \ + git \ + iproute2 \ + ipset \ + locales \ + lsof \ + openssl \ + sqlite3 \ + tar \ + tzdata \ + libfreetype6 \ + libstdc++6 + +RUN apt-get clean \ + && rm -rf /var/lib/apt/lists/* \ + +# Set the locale +RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \ + locale-gen +ENV LANG=en_US.UTF-8 +ENV LANGUAGE=en_US:en +ENV LC_ALL=en_US.UTF-8 + +## Setup user and working directory +RUN useradd -m -d /home/container -s /bin/bash container +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/19/Dockerfile b/java/zulu/19/Dockerfile new file mode 100644 index 0000000..169ea79 --- /dev/null +++ b/java/zulu/19/Dockerfile @@ -0,0 +1,47 @@ +FROM --platform=$TARGETOS/$TARGETARCH azul/zulu-openjdk:19-latest + +LABEL org.opencontainers.image.authors="info@goover.de" +LABEL org.opencontainers.image.source="https://github.com/gOOvER/own-pterodactyl-images" +LABEL org.opencontainers.image.description="Docker image for Pelican Hosting Panel and Pterodactyl" +LABEL org.opencontainers.image.licenses=AGPL-3.0-or-later + + +RUN apt update -y \ + && apt -y upgrade + +RUN apt install -y \ + build-essential \ + ca-certificates \ + curl \ + font-manager \ + fontconfig \ + git \ + iproute2 \ + ipset \ + locales \ + lsof \ + openssl \ + sqlite3 \ + tar \ + tzdata \ + libfreetype6 \ + libstdc++6 + +RUN apt-get clean \ + && rm -rf /var/lib/apt/lists/* \ + +# Set the locale +RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \ + locale-gen +ENV LANG=en_US.UTF-8 +ENV LANGUAGE=en_US:en +ENV LC_ALL=en_US.UTF-8 + +## Setup user and working directory +RUN useradd -m -d /home/container -s /bin/bash container +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/20/Dockerfile b/java/zulu/20/Dockerfile new file mode 100644 index 0000000..988581f --- /dev/null +++ b/java/zulu/20/Dockerfile @@ -0,0 +1,47 @@ +FROM --platform=$TARGETOS/$TARGETARCH azul/zulu-openjdk:20-latest + +LABEL org.opencontainers.image.authors="info@goover.de" +LABEL org.opencontainers.image.source="https://github.com/gOOvER/own-pterodactyl-images" +LABEL org.opencontainers.image.description="Docker image for Pelican Hosting Panel and Pterodactyl" +LABEL org.opencontainers.image.licenses=AGPL-3.0-or-later + + +RUN apt update -y \ + && apt -y upgrade + +RUN apt install -y \ + build-essential \ + ca-certificates \ + curl \ + font-manager \ + fontconfig \ + git \ + iproute2 \ + ipset \ + locales \ + lsof \ + openssl \ + sqlite3 \ + tar \ + tzdata \ + libfreetype6 \ + libstdc++6 + +RUN apt-get clean \ + && rm -rf /var/lib/apt/lists/* \ + +# Set the locale +RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \ + locale-gen +ENV LANG=en_US.UTF-8 +ENV LANGUAGE=en_US:en +ENV LC_ALL=en_US.UTF-8 + +## Setup user and working directory +RUN useradd -m -d /home/container -s /bin/bash container +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/21/Dockerfile b/java/zulu/21/Dockerfile new file mode 100644 index 0000000..d9acfcc --- /dev/null +++ b/java/zulu/21/Dockerfile @@ -0,0 +1,47 @@ +FROM --platform=$TARGETOS/$TARGETARCH azul/zulu-openjdk:21-latest + +LABEL org.opencontainers.image.authors="info@goover.de" +LABEL org.opencontainers.image.source="https://github.com/gOOvER/own-pterodactyl-images" +LABEL org.opencontainers.image.description="Docker image for Pelican Hosting Panel and Pterodactyl" +LABEL org.opencontainers.image.licenses=AGPL-3.0-or-later + + +RUN apt update -y \ + && apt -y upgrade + +RUN apt install -y \ + build-essential \ + ca-certificates \ + curl \ + font-manager \ + fontconfig \ + git \ + iproute2 \ + ipset \ + locales \ + lsof \ + openssl \ + sqlite3 \ + tar \ + tzdata \ + libfreetype6 \ + libstdc++6 + +RUN apt-get clean \ + && rm -rf /var/lib/apt/lists/* \ + +# Set the locale +RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \ + locale-gen +ENV LANG=en_US.UTF-8 +ENV LANGUAGE=en_US:en +ENV LC_ALL=en_US.UTF-8 + +## Setup user and working directory +RUN useradd -m -d /home/container -s /bin/bash container +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/22/Dockerfile b/java/zulu/22/Dockerfile new file mode 100644 index 0000000..370d1cd --- /dev/null +++ b/java/zulu/22/Dockerfile @@ -0,0 +1,47 @@ +FROM --platform=$TARGETOS/$TARGETARCH azul/zulu-openjdk:22-latest + +LABEL org.opencontainers.image.authors="info@goover.de" +LABEL org.opencontainers.image.source="https://github.com/gOOvER/own-pterodactyl-images" +LABEL org.opencontainers.image.description="Docker image for Pelican Hosting Panel and Pterodactyl" +LABEL org.opencontainers.image.licenses=AGPL-3.0-or-later + + +RUN apt update -y \ + && apt -y upgrade + +RUN apt install -y \ + build-essential \ + ca-certificates \ + curl \ + font-manager \ + fontconfig \ + git \ + iproute2 \ + ipset \ + locales \ + lsof \ + openssl \ + sqlite3 \ + tar \ + tzdata \ + libfreetype6 \ + libstdc++6 + +RUN apt-get clean \ + && rm -rf /var/lib/apt/lists/* \ + +# Set the locale +RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \ + locale-gen +ENV LANG=en_US.UTF-8 +ENV LANGUAGE=en_US:en +ENV LC_ALL=en_US.UTF-8 + +## Setup user and working directory +RUN useradd -m -d /home/container -s /bin/bash container +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/23/Dockerfile b/java/zulu/23/Dockerfile new file mode 100644 index 0000000..3846022 --- /dev/null +++ b/java/zulu/23/Dockerfile @@ -0,0 +1,47 @@ +FROM --platform=$TARGETOS/$TARGETARCH azul/zulu-openjdk:23-latest + +LABEL org.opencontainers.image.authors="info@goover.de" +LABEL org.opencontainers.image.source="https://github.com/gOOvER/own-pterodactyl-images" +LABEL org.opencontainers.image.description="Docker image for Pelican Hosting Panel and Pterodactyl" +LABEL org.opencontainers.image.licenses=AGPL-3.0-or-later + + +RUN apt update -y \ + && apt -y upgrade + +RUN apt install -y \ + build-essential \ + ca-certificates \ + curl \ + font-manager \ + fontconfig \ + git \ + iproute2 \ + ipset \ + locales \ + lsof \ + openssl \ + sqlite3 \ + tar \ + tzdata \ + libfreetype6 \ + libstdc++6 + +RUN apt-get clean \ + && rm -rf /var/lib/apt/lists/* \ + +# Set the locale +RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \ + locale-gen +ENV LANG=en_US.UTF-8 +ENV LANGUAGE=en_US:en +ENV LC_ALL=en_US.UTF-8 + +## Setup user and working directory +RUN useradd -m -d /home/container -s /bin/bash container +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/8/Dockerfile b/java/zulu/8/Dockerfile new file mode 100644 index 0000000..71faf34 --- /dev/null +++ b/java/zulu/8/Dockerfile @@ -0,0 +1,47 @@ +FROM --platform=$TARGETOS/$TARGETARCH azul/zulu-openjdk:8-latest + +LABEL org.opencontainers.image.authors="info@goover.de" +LABEL org.opencontainers.image.source="https://github.com/gOOvER/own-pterodactyl-images" +LABEL org.opencontainers.image.description="Docker image for Pelican Hosting Panel and Pterodactyl" +LABEL org.opencontainers.image.licenses=AGPL-3.0-or-later + + +RUN apt update -y \ + && apt -y upgrade + +RUN apt install -y \ + build-essential \ + ca-certificates \ + curl \ + font-manager \ + fontconfig \ + git \ + iproute2 \ + ipset \ + locales \ + lsof \ + openssl \ + sqlite3 \ + tar \ + tzdata \ + libfreetype6 \ + libstdc++6 + +RUN apt-get clean \ + && rm -rf /var/lib/apt/lists/* \ + +# Set the locale +RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \ + locale-gen +ENV LANG=en_US.UTF-8 +ENV LANGUAGE=en_US:en +ENV LC_ALL=en_US.UTF-8 + +## Setup user and working directory +RUN useradd -m -d /home/container -s /bin/bash container +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/9/Dockerfile b/java/zulu/9/Dockerfile new file mode 100644 index 0000000..7c1b577 --- /dev/null +++ b/java/zulu/9/Dockerfile @@ -0,0 +1,47 @@ +FROM --platform=$TARGETOS/$TARGETARCH azul/zulu-openjdk:9-latest + +LABEL org.opencontainers.image.authors="info@goover.de" +LABEL org.opencontainers.image.source="https://github.com/gOOvER/own-pterodactyl-images" +LABEL org.opencontainers.image.description="Docker image for Pelican Hosting Panel and Pterodactyl" +LABEL org.opencontainers.image.licenses=AGPL-3.0-or-later + + +RUN apt update -y \ + && apt -y upgrade + +RUN apt install -y \ + build-essential \ + ca-certificates \ + curl \ + font-manager \ + fontconfig \ + git \ + iproute2 \ + ipset \ + locales \ + lsof \ + openssl \ + sqlite3 \ + tar \ + tzdata \ + libfreetype6 \ + libstdc++6 + +RUN apt-get clean \ + && rm -rf /var/lib/apt/lists/* \ + +# Set the locale +RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \ + locale-gen +ENV LANG=en_US.UTF-8 +ENV LANGUAGE=en_US:en +ENV LC_ALL=en_US.UTF-8 + +## Setup user and working directory +RUN useradd -m -d /home/container -s /bin/bash container +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/entrypoint.sh b/java/zulu/entrypoint.sh new file mode 100644 index 0000000..bbf7d6e --- /dev/null +++ b/java/zulu/entrypoint.sh @@ -0,0 +1,44 @@ +#!/bin/bash + +#System variables +clear +RED='\033[0;31m' +GREEN='\033[0;32m' +YELLOW='\033[1;33m' +BLUE='\033[0;34m' +NC='\033[0m' + +# Switch to the container's working directory +cd /home/container || exit 1 + +# Wait for the container to fully initialize +sleep 1 + +# Default the TZ environment variable to UTC. +TZ=${TZ:-UTC} +export TZ + +# Set environment variable that holds the Internal Docker IP +INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}') +export INTERNAL_IP + +# system informations +echo -e "${BLUE}---------------------------------------------------------------------${NC}" +echo -e "${RED}Java Zulu Image by gOOvER - https://discord.goover.dev${NC}" +echo -e "${RED}THIS IMAGE IS LICENSED UNDER AGPLv3${NC}" +echo -e "${BLUE}---------------------------------------------------------------------${NC}" +echo -e "${YELLOW}Linux Distribution: ${RED} $(. /etc/os-release ; echo $PRETTY_NAME)${NC}" +echo -e "${YELLOW}Current timezone: ${RED} $(cat /etc/timezone)${NC}" +echo -e "${YELLOW}Java Version: ${RED} $(java -version) ${NC}" +echo -e "${BLUE}---------------------------------------------------------------------${NC}" + +# Convert all of the "{{VARIABLE}}" parts of the command into the expected shell +# variable format of "${VARIABLE}" before evaluating the string and automatically +# replacing the values. +PARSED=$(echo "${STARTUP}" | sed -e 's/{{/${/g' -e 's/}}/}/g' | eval echo "$(cat -)") + +# Display the command we're running in the output, and then execute it with the env +# from the container itself. +printf "\033[1m\033[33mcontainer@gameservertech~ \033[0m%s\n" "$PARSED" +# shellcheck disable=SC2086 +exec env ${PARSED}