File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,11 +19,11 @@ jobs:
1919 runs-on : ubuntu-latest
2020 steps :
2121 - uses : actions/checkout@v5
22- - name : Set up JDK 21
22+ - name : Set up JDK 25
2323 uses : actions/setup-java@v5
2424 with :
2525 distribution : temurin
26- java-version : 21
26+ java-version : 25
2727 - name : Set current version
2828 run : mvn -B versions:set -DnewVersion=${GITHUB_REF##*/} -DprocessAllModules -DgenerateBackupPoms=false
2929 - name : Build with Maven
@@ -37,11 +37,11 @@ jobs:
3737 runs-on : ubuntu-latest
3838 steps :
3939 - uses : actions/checkout@v5
40- - name : Set up JDK 21
40+ - name : Set up JDK 25
4141 uses : actions/setup-java@v5
4242 with :
4343 distribution : temurin
44- java-version : 21
44+ java-version : 25
4545 - name : Check Spotless CodingStyle
4646 run : mvn spotless:check
4747 docker :
Original file line number Diff line number Diff line change 1- 21 .0
1+ 25 .0
Original file line number Diff line number Diff line change 11FROM eclipse-temurin:25-jre AS extract
22ARG JAR_FILE=target/*.jar
33COPY ${JAR_FILE} application.jar
4- RUN java -Djarmode=layertools -jar application.jar extract
4+ RUN java -Djarmode=tools -jar application.jar extract --layers --launcher --destination output
55
66FROM eclipse-temurin:25-jre
77WORKDIR /app
88# Install helm
99COPY install-helm.sh install-helm.sh
10- RUN ./install-helm.sh
10+ RUN bash ./install-helm.sh
1111RUN rm install-helm.sh
1212# Create onyxia group and user
1313RUN groupadd --gid 101 --system onyxia && \
@@ -16,10 +16,10 @@ RUN groupadd --gid 101 --system onyxia && \
1616ENV CACERTS_DIR="/usr/local/share/ca-certificates"
1717RUN chown onyxia $JAVA_HOME/lib/security/cacerts
1818# copy build extraction
19- COPY --from=extract dependencies/ ./
20- COPY --from=extract snapshot-dependencies/ ./
21- COPY --from=extract spring-boot-loader/ ./
22- COPY --from=extract application/ ./
19+ COPY --from=extract output/ dependencies/ ./
20+ COPY --from=extract output/ snapshot-dependencies/ ./
21+ COPY --from=extract output/ spring-boot-loader/ ./
22+ COPY --from=extract output/ application/ ./
2323COPY entrypoint.sh entrypoint.sh
2424# Equivalent to 'USER onyxia', see: https://github.com/InseeFrLab/onyxia-api/pull/116
2525USER 101
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ initArch() {
2929initOS
3030initArch
3131HELM_DIST=" helm-${HELM_VERSION} -${OS} -${ARCH} .tar.gz"
32+ apt update && apt install -y wget tar
3233wget https://get.helm.sh/${HELM_DIST}
3334tar -zxvf ${HELM_DIST}
3435mv ${OS} -${ARCH} /helm /usr/local/bin/helm
Original file line number Diff line number Diff line change 2121 </distributionManagement >
2222 <properties >
2323 <fabric8io .version>7.4.0</fabric8io .version>
24- <maven .compiler.release>21 </maven .compiler.release>
25- <java .version>21 </java .version>
24+ <maven .compiler.release>25 </maven .compiler.release>
25+ <java .version>25 </java .version>
2626 </properties >
2727
2828 <dependencyManagement >
7070 <configuration >
7171 <java >
7272 <googleJavaFormat >
73- <version >1.18.1</version >
7473 <style >AOSP</style >
7574 </googleJavaFormat >
7675 </java >
You can’t perform that action at this time.
0 commit comments