-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document container creation steps (#12)
- Loading branch information
Showing
3 changed files
with
63 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,23 @@ | ||
ARG JDK_NAME=zulu22.30.13-ca-crac-jdk22.0.1-linux_x64 | ||
|
||
FROM ubuntu:24.04 as builder | ||
ARG JDK_NAME | ||
|
||
RUN apt-get update && apt-get install -y wget | ||
RUN wget -O crac-jdk.tar.gz https://cdn.azul.com/zulu/bin/$JDK_NAME.tar.gz | ||
RUN tar zxf ./crac-jdk.tar.gz -C /usr/share | ||
|
||
# End of builder | ||
|
||
FROM ubuntu:24.04 | ||
ARG JDK_NAME | ||
ARG FAT_JAR= | ||
|
||
ENV JDK_NAME=$JDK_NAME | ||
ENV JAVA_HOME=/usr/share/$JDK_NAME | ||
|
||
COPY --from=builder /usr/share/${JDK_NAME} /usr/share/${JDK_NAME} | ||
RUN ln -s $JAVA_HOME/bin/java /bin/ && ln -s $JAVA_HOME/bin/jcmd /bin/ | ||
ADD target/example-spring-boot*.jar /example-spring-boot.jar | ||
ENTRYPOINT [ "java", "-XX:CPUFeatures=generic", "-XX:CRaCCheckpointTo=/cr", "-jar", "/example-spring-boot.jar" ] | ||
|
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,5 @@ | ||
FROM example-spring-boot-checkpoint | ||
ADD target/cr /cr | ||
ENTRYPOINT [ "java", "-XX:CRaCRestoreFrom=/cr" ] | ||
|
||
|
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