Skip to content

Commit

Permalink
Added zulu prime 21
Browse files Browse the repository at this point in the history
  • Loading branch information
zGumeloBr committed Jul 7, 2024
1 parent 58c8fb5 commit ccca16f
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/java-zulu-prime-dev.yml
Original file line number Diff line number Diff line change
@@ -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
26 changes: 26 additions & 0 deletions java/zulu-prime/21/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM azul/prime:21

LABEL author="zGumeloBr" maintainer="[email protected]"

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" ]
10 changes: 10 additions & 0 deletions java/zulu-prime/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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}

0 comments on commit ccca16f

Please sign in to comment.