Skip to content

Commit

Permalink
add Java Zulu as requested
Browse files Browse the repository at this point in the history
  • Loading branch information
gOOvER committed Jan 12, 2025
1 parent 9a239a6 commit 93c776f
Show file tree
Hide file tree
Showing 19 changed files with 864 additions and 1 deletion.
66 changes: 66 additions & 0 deletions .github/workflows/java-zulu.yml
Original file line number Diff line number Diff line change
@@ -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 }}
3 changes: 2 additions & 1 deletion java/dragonwell/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
47 changes: 47 additions & 0 deletions java/zulu/10/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
FROM --platform=$TARGETOS/$TARGETARCH azul/zulu-openjdk:10-latest

LABEL org.opencontainers.image.authors="[email protected]"
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" ]
47 changes: 47 additions & 0 deletions java/zulu/11/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
FROM --platform=$TARGETOS/$TARGETARCH azul/zulu-openjdk:11-latest

LABEL org.opencontainers.image.authors="[email protected]"
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" ]
47 changes: 47 additions & 0 deletions java/zulu/12/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
FROM --platform=$TARGETOS/$TARGETARCH azul/zulu-openjdk:12-latest

LABEL org.opencontainers.image.authors="[email protected]"
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" ]
47 changes: 47 additions & 0 deletions java/zulu/13/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
FROM --platform=$TARGETOS/$TARGETARCH azul/zulu-openjdk:13-latest

LABEL org.opencontainers.image.authors="[email protected]"
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" ]
47 changes: 47 additions & 0 deletions java/zulu/14/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
FROM --platform=$TARGETOS/$TARGETARCH azul/zulu-openjdk:14-latest

LABEL org.opencontainers.image.authors="[email protected]"
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" ]
47 changes: 47 additions & 0 deletions java/zulu/15/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
FROM --platform=$TARGETOS/$TARGETARCH azul/zulu-openjdk:15-latest

LABEL org.opencontainers.image.authors="[email protected]"
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" ]
Loading

0 comments on commit 93c776f

Please sign in to comment.