-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for JDK 23 and fix JDK 21 (#9)
* Fix 22-JDK from using 21 * Add 23-JDK * Add 23-JDK to README
- Loading branch information
Showing
4 changed files
with
60 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ jobs: | |
- 20-JDK | ||
- 21-JDK | ||
- 22-JDK | ||
- 23-JDK | ||
- 11-EE | ||
- 17-EE | ||
steps: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,8 @@ | |
FROM ubuntu:22.04 | ||
|
||
ARG TARGETPLATFORM | ||
ARG GRAAL_VERSION=21.0.0 | ||
ARG JAVA_VERSION=21 | ||
ARG GRAAL_VERSION=22.0.2 | ||
ARG JAVA_VERSION=22 | ||
|
||
MAINTAINER RikoDEV, <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# ---------------------------------- | ||
# Pterodactyl Core Dockerfile | ||
# Environment: Java | ||
# Minimum Panel Version: 1.7.0 | ||
# ---------------------------------- | ||
FROM ubuntu:22.04 | ||
|
||
ARG TARGETPLATFORM | ||
ARG GRAAL_VERSION=23.0.0 | ||
ARG JAVA_VERSION=23 | ||
|
||
MAINTAINER RikoDEV, <[email protected]> | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
# Default to UTF-8 file.encoding | ||
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8' | ||
|
||
RUN apt-get update -y \ | ||
&& apt-get install -y curl ca-certificates openssl git tar sqlite3 fontconfig tzdata locales iproute2 \ | ||
&& echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen \ | ||
&& locale-gen en_US.UTF-8 \ | ||
&& case ${TARGETPLATFORM} in \ | ||
"linux/amd64") ARCH=x64 ;; \ | ||
"linux/arm64") ARCH=aarch64 ;; \ | ||
esac \ | ||
&& curl --retry 3 -Lfso /tmp/graalvm.tar.gz https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-${GRAAL_VERSION}/graalvm-community-jdk-${GRAAL_VERSION}_linux-${ARCH}_bin.tar.gz \ | ||
&& mkdir -p /opt/java/graalvm \ | ||
&& cd /opt/java/graalvm \ | ||
&& tar -xf /tmp/graalvm.tar.gz --strip-components=1 \ | ||
&& export PATH="/opt/java/graalvm/bin:$PATH" \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& rm -rf /tmp/graalvm.tar.gz | ||
|
||
ENV JAVA_HOME=/opt/java/graalvm \ | ||
PATH="/opt/java/graalvm/bin:$PATH" | ||
|
||
# Step 2 - add pterodactyl stuff | ||
RUN useradd -d /home/container -m container | ||
|
||
USER container | ||
ENV USER=container HOME=/home/container | ||
|
||
WORKDIR /home/container | ||
|
||
COPY ./../entrypoint.sh /entrypoint.sh | ||
|
||
CMD ["/bin/bash", "/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters