From 8b48ab031cf58203cdf1ae52cc3317bd74475d9e Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Mon, 27 May 2024 13:51:18 +0200 Subject: [PATCH] dockerfile: bump alpine to 3.20 Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- Dockerfile | 17 +++-------------- .../cmd/dockerfile-frontend/Dockerfile | 2 +- hack/dockerfiles/archutil.Dockerfile | 2 +- hack/dockerfiles/authors.Dockerfile | 2 +- hack/dockerfiles/docs.Dockerfile | 2 +- hack/dockerfiles/lint.Dockerfile | 2 +- hack/dockerfiles/vendor.Dockerfile | 2 +- 7 files changed, 9 insertions(+), 20 deletions(-) diff --git a/Dockerfile b/Dockerfile index f8f3c41c25b1..c38910fc4b21 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,25 +18,14 @@ ARG GOTESTSUM_VERSION=v1.9.0 ARG DELVE_VERSION=v1.21.0 ARG GO_VERSION=1.21 -ARG ALPINE_VERSION=3.19 +ARG ALPINE_VERSION=3.20 ARG XX_VERSION=1.4.0 ARG BUILDKIT_DEBUG -ARG ALPINE_ARCH=${TARGETARCH#riscv64} -ARG ALPINE_ARCH=${ALPINE_ARCH:+"default"} -ARG ALPINE_ARCH=${ALPINE_ARCH:-$TARGETARCH} - # minio for s3 integration tests FROM minio/minio:${MINIO_VERSION} AS minio FROM minio/mc:${MINIO_MC_VERSION} AS minio-mc -# alpine base for buildkit image -# TODO: remove this when alpine image supports riscv64 -FROM alpine:${ALPINE_VERSION} AS alpine-default -FROM alpine:edge@sha256:2d01a16bab53a8405876cec4c27235d47455a7b72b75334c614f2fb0968b3f90 AS alpine-riscv64 -FROM alpine-${ALPINE_ARCH} AS alpinebase - - # xx is a helper for cross-compilation FROM --platform=$BUILDPLATFORM tonistiigi/xx:${XX_VERSION} AS xx @@ -220,7 +209,7 @@ RUN --mount=from=binaries \ FROM scratch AS release COPY --link --from=releaser /out/ / -FROM alpinebase AS buildkit-export +FROM alpine:${ALPINE_VERSION} AS buildkit-export RUN apk add --no-cache fuse3 git openssh pigz xz iptables ip6tables \ && ln -s fusermount3 /usr/bin/fusermount COPY --link examples/buildctl-daemonless/buildctl-daemonless.sh /usr/bin/ @@ -430,7 +419,7 @@ FROM integration-tests AS dev-env VOLUME /var/lib/buildkit # Rootless mode. -FROM alpinebase AS rootless +FROM alpine:${ALPINE_VERSION} AS rootless RUN apk add --no-cache fuse3 fuse-overlayfs git openssh pigz shadow-uidmap xz RUN adduser -D -u 1000 user \ && mkdir -p /run/user/1000 /home/user/.local/tmp /home/user/.local/share/buildkit \ diff --git a/frontend/dockerfile/cmd/dockerfile-frontend/Dockerfile b/frontend/dockerfile/cmd/dockerfile-frontend/Dockerfile index 29f61eeacd6a..72fa95462a17 100644 --- a/frontend/dockerfile/cmd/dockerfile-frontend/Dockerfile +++ b/frontend/dockerfile/cmd/dockerfile-frontend/Dockerfile @@ -1,7 +1,7 @@ # syntax=docker/dockerfile-upstream:master ARG GO_VERSION=1.21 -ARG ALPINE_VERSION=3.19 +ARG ALPINE_VERSION=3.20 ARG XX_VERSION=1.4.0 # xx is a helper for cross-compilation diff --git a/hack/dockerfiles/archutil.Dockerfile b/hack/dockerfiles/archutil.Dockerfile index 3b6a875c0cea..4a31628833dc 100644 --- a/hack/dockerfiles/archutil.Dockerfile +++ b/hack/dockerfiles/archutil.Dockerfile @@ -1,7 +1,7 @@ # syntax=docker/dockerfile-upstream:master ARG GO_VERSION=1.21 -ARG ALPINE_VERSION=3.19 +ARG ALPINE_VERSION=3.20 ARG DEBIAN_VERSION=trixie FROM debian:${DEBIAN_VERSION}-slim AS base diff --git a/hack/dockerfiles/authors.Dockerfile b/hack/dockerfiles/authors.Dockerfile index dd677ad610b4..86ec5d18a037 100644 --- a/hack/dockerfiles/authors.Dockerfile +++ b/hack/dockerfiles/authors.Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile-upstream:master -ARG ALPINE_VERSION=3.19 +ARG ALPINE_VERSION=3.20 FROM alpine:${ALPINE_VERSION} AS gen RUN apk add --no-cache git diff --git a/hack/dockerfiles/docs.Dockerfile b/hack/dockerfiles/docs.Dockerfile index 61c00c2a434b..c80906f63998 100644 --- a/hack/dockerfiles/docs.Dockerfile +++ b/hack/dockerfiles/docs.Dockerfile @@ -1,7 +1,7 @@ # syntax=docker/dockerfile:1 ARG GO_VERSION=1.21 -ARG ALPINE_VERSION=3.19 +ARG ALPINE_VERSION=3.20 FROM golang:${GO_VERSION}-alpine${ALPINE_VERSION} AS golatest diff --git a/hack/dockerfiles/lint.Dockerfile b/hack/dockerfiles/lint.Dockerfile index 08ebc4cc60ed..6144a8d8b712 100644 --- a/hack/dockerfiles/lint.Dockerfile +++ b/hack/dockerfiles/lint.Dockerfile @@ -1,7 +1,7 @@ # syntax=docker/dockerfile-upstream:master ARG GO_VERSION=1.21 -ARG ALPINE_VERSION=3.19 +ARG ALPINE_VERSION=3.20 ARG XX_VERSION=1.4.0 ARG PROTOLINT_VERSION=0.45.0 ARG GOLANGCI_LINT_VERSION=1.57.1 diff --git a/hack/dockerfiles/vendor.Dockerfile b/hack/dockerfiles/vendor.Dockerfile index 2989a7833a5f..46b7e7c07838 100644 --- a/hack/dockerfiles/vendor.Dockerfile +++ b/hack/dockerfiles/vendor.Dockerfile @@ -1,7 +1,7 @@ # syntax=docker/dockerfile-upstream:master ARG GO_VERSION=1.21 -ARG ALPINE_VERSION=3.19 +ARG ALPINE_VERSION=3.20 ARG MODOUTDATED_VERSION=v0.9.0 FROM golang:${GO_VERSION}-alpine${ALPINE_VERSION} AS base