@@ -5,20 +5,20 @@ ARG JDK_VERSION='17'
55# Set by the micronaut BOM, see pom.xml
66ARG GRAAL_VERSION='22.3.0'
77
8- FROM alpine:3 as alpine
8+ FROM alpine:3 AS alpine
99
1010# Keep in sync with the version in pom.xml
1111FROM ghcr.io/graalvm/graalvm-ce:ol8-java${JDK_VERSION}-${GRAAL_VERSION} AS graal
1212
13- FROM graal as maven-cache
13+ FROM graal AS maven-cache
1414ENV MAVEN_OPTS='-Dmaven.repo.local=/mvn'
1515WORKDIR /app
1616COPY .mvn/ /app/.mvn/
1717COPY mvnw /app/
1818COPY pom.xml /app/
1919RUN ./mvnw dependency:resolve-plugins dependency:go-offline -B
2020
21- FROM graal as maven-build
21+ FROM graal AS maven-build
2222ENV MAVEN_OPTS='-Dmaven.repo.local=/mvn'
2323COPY --from=maven-cache /mvn/ /mvn/
2424COPY --from=maven-cache /app/ /app
@@ -38,15 +38,15 @@ RUN ./mvnw package -DskipTests
3838RUN mv $(ls -S target/*.jar | head -n 1) /app/gitops-playground.jar
3939
4040
41- FROM alpine as downloader
41+ FROM alpine AS downloader
4242RUN apk add curl grep
4343# When updating,
4444# * also update the checksum found at https://dl.k8s.io/release/v${K8S_VERSION}/bin/linux/amd64/kubectl.sha256
4545# * also update in init-cluster.sh. vars.tf, ApplicationConfigurator.groovy and apply.sh
4646# When upgrading to 1.26 we can verify the kubectl signature with cosign!
4747# https://kubernetes.io/blog/2022/12/12/kubernetes-release-artifact-signing/
48- ARG K8S_VERSION=1.29.1
49- ARG KUBECTL_CHECKSUM=69ab3a931e826bf7ac14d38ba7ca637d66a6fcb1ca0e3333a2cafdf15482af9f
48+ ARG K8S_VERSION=1.29.8
49+ ARG KUBECTL_CHECKSUM=038454e0d79748aab41668f44ca6e4ac8affd1895a94f592b9739a0ae2a5f06a
5050# When updating, also upgrade helm image in ApplicationConfigurator
5151ARG HELM_VERSION=3.15.4
5252# bash curl unzip required for Jenkins downloader
@@ -131,7 +131,7 @@ RUN touch /dist/root/.config/jgit/config
131131RUN chmod +r /dist/root/ && chmod g+rw /dist/root/.config/jgit/
132132
133133# This stage builds a static binary using graal VM. For details see docs/developers.md#GraalVM
134- FROM graal as native-image
134+ FROM graal AS native-image
135135ENV MAVEN_OPTS='-Dmaven.repo.local=/mvn'
136136RUN gu install native-image
137137RUN microdnf install gnupg
@@ -207,13 +207,13 @@ RUN native-image -Dgroovy.grape.enable=false \
207207
208208
209209
210- FROM alpine as prod
210+ FROM alpine AS prod
211211# copy groovy cli binary from native-image stage
212212COPY --from=native-image /app/apply-ng app/apply-ng
213213ENTRYPOINT ["/app/apply-ng" ]
214214
215215
216- FROM eclipse-temurin:${JDK_VERSION}-jre-alpine as dev
216+ FROM eclipse-temurin:${JDK_VERSION}-jre-alpine AS dev
217217
218218# apply-ng.sh is part of the dev image and allows trying changing groovy code inside the image for debugging
219219# Allow changing code in dev mode, less secure, but the intention of the dev image
0 commit comments