Skip to content

Commit b8eb5b1

Browse files
committed
Add Temurin 23 Images
1 parent 12a055d commit b8eb5b1

5 files changed

Lines changed: 83 additions & 0 deletions

File tree

‎.github/workflows/temurin-23.yml‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Temurin 23
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '21 21 * * *'
7+
push:
8+
branches:
9+
- 'main'
10+
11+
jobs:
12+
build-and-push-jre:
13+
uses: ./.github/workflows/workflow-docker-build.yml
14+
with:
15+
jvm-type: jre
16+
docker-context: temurin/23
17+
permissions:
18+
contents: read
19+
packages: write
20+
21+
build-and-push-jdk:
22+
uses: ./.github/workflows/workflow-docker-build.yml
23+
with:
24+
jvm-type: jdk
25+
docker-context: temurin/23
26+
permissions:
27+
contents: read
28+
packages: write

‎README.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ COPY --chown=formcentric:formcentric my-application.jar /formcentric/app.jar
6969
Formcentric base images build upon the official [Adoptium](https://adoptium.net) images of the Eclipse Temurin
7070
distribution (OpenJDK) and come in the following flavors:
7171

72+
### Java 23 (Until 18 Mar 2025)
73+
74+
- `ghcr.io/formcentric/java-base:23-jre`
75+
- `ghcr.io/formcentric/java-base:23-jdk`
76+
7277
### Java 21
7378

7479
- `ghcr.io/formcentric/java-base:21-jre`

‎temurin/23/.env‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
JAVA_VERSION=23_37

‎temurin/23/Dockerfile‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
ARG JVM_TYPE=jre
2+
ARG JAVA_VERSION=23_37
3+
ARG TEMURIN_VERSION=${JAVA_VERSION}-${JVM_TYPE}-noble
4+
FROM eclipse-temurin:${TEMURIN_VERSION}
5+
6+
RUN userdel -r ubuntu
7+
8+
RUN apt-get update && \
9+
apt-get upgrade -y && \
10+
apt-get install -y --no-install-recommends \
11+
ca-certificates \
12+
curl \
13+
wget \
14+
coreutils \
15+
fontconfig \
16+
fonts-dejavu && \
17+
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
18+
groupadd -g 1000 formcentric && \
19+
useradd -u 1000 -d /formcentric -g formcentric formcentric
20+
21+
USER formcentric:formcentric
22+
23+
WORKDIR /formcentric
24+
25+
COPY --chown=formcentric:formcentric run.sh .
26+
RUN chmod +x run.sh
27+
28+
COPY --chown=formcentric:formcentric app.jar app.jar
29+
30+
ENTRYPOINT ["./run.sh"]

‎temurin/23/run.sh‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/sh
2+
set -e
3+
4+
if [ -n "${EXTRA_JAVA_OPTS}" ]; then
5+
JAVA_OPTS="$JAVA_OPTS $EXTRA_JAVA_OPTS"
6+
fi
7+
8+
JAVA_CMD_ARGS="-XX:-UsePerfData \
9+
${JAVA_OPTS} \
10+
-XX:+UseContainerSupport \
11+
-Djava.security.egd=file:/dev/./urandom"
12+
13+
if [ -f jib-classpath-file -a -f jib-main-class-file ]; then
14+
exec java $JAVA_CMD_ARGS -cp @jib-classpath-file @jib-main-class-file ${@}
15+
elif [ -f BOOT-INF/layers.idx ]; then
16+
exec java $JAVA_CMD_ARGS ${SPRING_BOOT_EXPLODED_MAINCLASS:-org.springframework.boot.loader.launch.JarLauncher} ${@}
17+
else
18+
exec java $JAVA_CMD_ARGS -jar app.jar ${@}
19+
fi

0 commit comments

Comments
 (0)