-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
83 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Temurin 23 | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '21 21 * * *' | ||
push: | ||
branches: | ||
- 'main' | ||
|
||
jobs: | ||
build-and-push-jre: | ||
uses: ./.github/workflows/workflow-docker-build.yml | ||
with: | ||
jvm-type: jre | ||
docker-context: temurin/23 | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
build-and-push-jdk: | ||
uses: ./.github/workflows/workflow-docker-build.yml | ||
with: | ||
jvm-type: jdk | ||
docker-context: temurin/23 | ||
permissions: | ||
contents: read | ||
packages: write |
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
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 @@ | ||
JAVA_VERSION=23_37 |
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,30 @@ | ||
ARG JVM_TYPE=jre | ||
ARG JAVA_VERSION=23_37 | ||
ARG TEMURIN_VERSION=${JAVA_VERSION}-${JVM_TYPE}-noble | ||
FROM eclipse-temurin:${TEMURIN_VERSION} | ||
|
||
RUN userdel -r ubuntu | ||
|
||
RUN apt-get update && \ | ||
apt-get upgrade -y && \ | ||
apt-get install -y --no-install-recommends \ | ||
ca-certificates \ | ||
curl \ | ||
wget \ | ||
coreutils \ | ||
fontconfig \ | ||
fonts-dejavu && \ | ||
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \ | ||
groupadd -g 1000 formcentric && \ | ||
useradd -u 1000 -d /formcentric -g formcentric formcentric | ||
|
||
USER formcentric:formcentric | ||
|
||
WORKDIR /formcentric | ||
|
||
COPY --chown=formcentric:formcentric run.sh . | ||
RUN chmod +x run.sh | ||
|
||
COPY --chown=formcentric:formcentric app.jar app.jar | ||
|
||
ENTRYPOINT ["./run.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
if [ -n "${EXTRA_JAVA_OPTS}" ]; then | ||
JAVA_OPTS="$JAVA_OPTS $EXTRA_JAVA_OPTS" | ||
fi | ||
|
||
JAVA_CMD_ARGS="-XX:-UsePerfData \ | ||
${JAVA_OPTS} \ | ||
-XX:+UseContainerSupport \ | ||
-Djava.security.egd=file:/dev/./urandom" | ||
|
||
if [ -f jib-classpath-file -a -f jib-main-class-file ]; then | ||
exec java $JAVA_CMD_ARGS -cp @jib-classpath-file @jib-main-class-file ${@} | ||
elif [ -f BOOT-INF/layers.idx ]; then | ||
exec java $JAVA_CMD_ARGS ${SPRING_BOOT_EXPLODED_MAINCLASS:-org.springframework.boot.loader.launch.JarLauncher} ${@} | ||
else | ||
exec java $JAVA_CMD_ARGS -jar app.jar ${@} | ||
fi |