@@ -5,20 +5,20 @@ ARG JDK_VERSION='17'
5
5
# Set by the micronaut BOM, see pom.xml
6
6
ARG GRAAL_VERSION='22.3.0'
7
7
8
- FROM alpine:3 as alpine
8
+ FROM alpine:3 AS alpine
9
9
10
10
# Keep in sync with the version in pom.xml
11
11
FROM ghcr.io/graalvm/graalvm-ce:ol8-java${JDK_VERSION}-${GRAAL_VERSION} AS graal
12
12
13
- FROM graal as maven-cache
13
+ FROM graal AS maven-cache
14
14
ENV MAVEN_OPTS='-Dmaven.repo.local=/mvn'
15
15
WORKDIR /app
16
16
COPY .mvn/ /app/.mvn/
17
17
COPY mvnw /app/
18
18
COPY pom.xml /app/
19
19
RUN ./mvnw dependency:resolve-plugins dependency:go-offline -B
20
20
21
- FROM graal as maven-build
21
+ FROM graal AS maven-build
22
22
ENV MAVEN_OPTS='-Dmaven.repo.local=/mvn'
23
23
COPY --from=maven-cache /mvn/ /mvn/
24
24
COPY --from=maven-cache /app/ /app
@@ -38,15 +38,15 @@ RUN ./mvnw package -DskipTests
38
38
RUN mv $(ls -S target/*.jar | head -n 1) /app/gitops-playground.jar
39
39
40
40
41
- FROM alpine as downloader
41
+ FROM alpine AS downloader
42
42
RUN apk add curl grep
43
43
# When updating,
44
44
# * also update the checksum found at https://dl.k8s.io/release/v${K8S_VERSION}/bin/linux/amd64/kubectl.sha256
45
45
# * also update in init-cluster.sh. vars.tf, ApplicationConfigurator.groovy and apply.sh
46
46
# When upgrading to 1.26 we can verify the kubectl signature with cosign!
47
47
# 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
50
50
# When updating, also upgrade helm image in ApplicationConfigurator
51
51
ARG HELM_VERSION=3.15.4
52
52
# bash curl unzip required for Jenkins downloader
@@ -131,7 +131,7 @@ RUN touch /dist/root/.config/jgit/config
131
131
RUN chmod +r /dist/root/ && chmod g+rw /dist/root/.config/jgit/
132
132
133
133
# 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
135
135
ENV MAVEN_OPTS='-Dmaven.repo.local=/mvn'
136
136
RUN gu install native-image
137
137
RUN microdnf install gnupg
@@ -207,13 +207,13 @@ RUN native-image -Dgroovy.grape.enable=false \
207
207
208
208
209
209
210
- FROM alpine as prod
210
+ FROM alpine AS prod
211
211
# copy groovy cli binary from native-image stage
212
212
COPY --from=native-image /app/apply-ng app/apply-ng
213
213
ENTRYPOINT ["/app/apply-ng" ]
214
214
215
215
216
- FROM eclipse-temurin:${JDK_VERSION}-jre-alpine as dev
216
+ FROM eclipse-temurin:${JDK_VERSION}-jre-alpine AS dev
217
217
218
218
# apply-ng.sh is part of the dev image and allows trying changing groovy code inside the image for debugging
219
219
# Allow changing code in dev mode, less secure, but the intention of the dev image
0 commit comments