Skip to content

Commit 62bda5c

Browse files
authored
Merge pull request #5389 from crazy-max/revert-dockerfile-pin
Revert "dockerfile: pin dockerfile frontend image"
2 parents 04dcfaa + 6cb3aaf commit 62bda5c

File tree

9 files changed

+24
-22
lines changed

9 files changed

+24
-22
lines changed

Dockerfile

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# syntax=docker/dockerfile-upstream:master@sha256:df54e73548d586209f6fc6d34d61edf8277e1b9d2704aff8fe75294a17c6a29b
1+
# syntax=docker/dockerfile-upstream:master
22

33
ARG RUNC_VERSION=v1.1.14
44
ARG CONTAINERD_VERSION=v1.7.22
5-
# containerd v1.6 for integration tests
5+
# CONTAINERD_ALT_VERSION_16 defines fallback containerd version for integration tests
66
ARG CONTAINERD_ALT_VERSION_16=v1.6.36
77
ARG REGISTRY_VERSION=v2.8.3
88
ARG ROOTLESSKIT_VERSION=v2.0.2
@@ -29,22 +29,22 @@ FROM minio/mc:${MINIO_MC_VERSION} AS minio-mc
2929
# xx is a helper for cross-compilation
3030
FROM --platform=$BUILDPLATFORM tonistiigi/xx:${XX_VERSION} AS xx
3131

32-
# go base image
32+
# golatest is alias for Go base image
3333
FROM --platform=$BUILDPLATFORM golang:${GO_VERSION}-alpine${ALPINE_VERSION} AS golatest
3434

35-
# gobuild is base stage for compiling go/cgo
35+
# gobuild-base is base stage for compiling go/cgo
3636
FROM golatest AS gobuild-base
3737
RUN apk add --no-cache file bash clang lld musl-dev pkgconfig git make
3838
COPY --link --from=xx / /
3939

40-
# delve for debug variant
40+
# dlv builds delve for debug variant images
4141
FROM gobuild-base AS dlv
4242
ARG DELVE_VERSION
4343
RUN --mount=target=/root/.cache,type=cache \
4444
--mount=target=/go/pkg/mod,type=cache \
4545
GOBIN=/usr/bin go install github.com/go-delve/delve/cmd/dlv@${DELVE_VERSION}
4646

47-
# build runc binary
47+
# runc builds runc binary
4848
FROM gobuild-base AS runc
4949
WORKDIR $GOPATH/src/github.com/opencontainers/runc
5050
ARG RUNC_VERSION
@@ -65,7 +65,7 @@ FROM gobuild-base AS buildkit-base
6565
WORKDIR /src
6666
ENV GOFLAGS=-mod=vendor
6767

68-
# scan the version/revision info
68+
# buildkit-version builds stage with version/revision info
6969
FROM buildkit-base AS buildkit-version
7070
# TODO: PKG should be inferred from go modules
7171
RUN --mount=target=. <<'EOT'
@@ -79,7 +79,7 @@ RUN --mount=target=. <<'EOT'
7979
echo -n "${VERSION}" > /tmp/.version;
8080
EOT
8181

82-
# build buildctl binary
82+
# buildctl builds test cli binary
8383
FROM buildkit-base AS buildctl
8484
ENV CGO_ENABLED=0
8585
ARG TARGETPLATFORM
@@ -93,7 +93,7 @@ RUN --mount=target=. --mount=target=/root/.cache,type=cache \
9393
if [ "$(xx-info os)" = "linux" ]; then /usr/bin/buildctl --version; fi
9494
EOT
9595

96-
# build buildkitd binary
96+
# buildkitd builds daemon binary
9797
FROM buildkit-base AS buildkitd
9898
# BUILDKITD_TAGS defines additional Go build tags for compiling buildkitd
9999
ARG BUILDKITD_TAGS
@@ -135,7 +135,7 @@ RUN --mount=target=. --mount=target=/root/.cache,type=cache \
135135
fi
136136
EOT
137137

138-
# build dnsname CNI plugin for testing
138+
# dnsname builds dnsname CNI plugin for testing
139139
FROM gobuild-base AS dnsname
140140
WORKDIR /go/src/github.com/containers/dnsname
141141
ARG DNSNAME_VERSION
@@ -186,7 +186,7 @@ COPY --link --from=buildkitd /usr/bin/buildkitd /
186186
COPY --link --from=buildctl /usr/bin/buildctl /
187187

188188
FROM binaries-$TARGETOS AS binaries
189-
# enable scanning for this stage
189+
# BUILDKIT_SBOM_SCAN_STAGE enables SBOM scanning for this stage
190190
ARG BUILDKIT_SBOM_SCAN_STAGE=true
191191

192192
FROM --platform=$BUILDPLATFORM alpine:${ALPINE_VERSION} AS releaser
@@ -230,7 +230,7 @@ RUN --mount=target=/root/.cache,type=cache <<EOT
230230
fi
231231
EOT
232232

233-
# containerd v1.6 for integration tests
233+
# containerd-alt-16 builds containerd v1.6 for integration tests
234234
FROM gobuild-base AS containerd-alt-16
235235
WORKDIR /go/src/github.com/containerd/containerd
236236
ARG CONTAINERD_ALT_VERSION_16
@@ -418,7 +418,7 @@ ENV BUILDKIT_RUN_NETWORK_INTEGRATION_TESTS=1 BUILDKIT_CNI_INIT_LOCK_PATH=/run/bu
418418
FROM integration-tests AS dev-env
419419
VOLUME /var/lib/buildkit
420420

421-
# Rootless mode.
421+
# rootless builds a rootless variant of buildkitd image
422422
FROM alpine:${ALPINE_VERSION} AS rootless
423423
RUN apk add --no-cache fuse3 fuse-overlayfs git openssh pigz shadow-uidmap xz
424424
RUN adduser -D -u 1000 user \

frontend/dockerfile/cmd/dockerfile-frontend/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# syntax=docker/dockerfile-upstream:master@sha256:df54e73548d586209f6fc6d34d61edf8277e1b9d2704aff8fe75294a17c6a29b
1+
# syntax=docker/dockerfile-upstream:master
22

33
ARG GO_VERSION=1.22
44
ARG ALPINE_VERSION=3.20

hack/dockerfiles/archutil.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# syntax=docker/dockerfile-upstream:master@sha256:df54e73548d586209f6fc6d34d61edf8277e1b9d2704aff8fe75294a17c6a29b
1+
# syntax=docker/dockerfile-upstream:master
22
# check=error=true
33

44
ARG GO_VERSION=1.22

hack/dockerfiles/authors.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# syntax=docker/dockerfile-upstream:master@sha256:df54e73548d586209f6fc6d34d61edf8277e1b9d2704aff8fe75294a17c6a29b
1+
# syntax=docker/dockerfile-upstream:master
22

33
ARG ALPINE_VERSION=3.20
44

hack/dockerfiles/doctoc.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# syntax=docker/dockerfile-upstream:master@sha256:df54e73548d586209f6fc6d34d61edf8277e1b9d2704aff8fe75294a17c6a29b
1+
# syntax=docker/dockerfile-upstream:master
22

33
ARG NODE_VERSION=19
44

hack/dockerfiles/generated-files.Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
# syntax=docker/dockerfile-upstream:master@sha256:df54e73548d586209f6fc6d34d61edf8277e1b9d2704aff8fe75294a17c6a29b
1+
# syntax=docker/dockerfile-upstream:master
22

33
ARG GO_VERSION=1.22
44
ARG DEBIAN_VERSION=bookworm
55
ARG PROTOC_VERSION=3.11.4
66
ARG PROTOC_GOOGLEAPIS_VERSION=2af421884dd468d565137215c946ebe4e245ae26
77

88
# protoc is dynamically linked to glibc so can't use alpine base
9+
10+
# base defines common stage with Go tools
911
FROM golang:${GO_VERSION}-${DEBIAN_VERSION} AS base
1012
RUN apt-get update && apt-get --no-install-recommends install -y git unzip
1113

hack/dockerfiles/lint.Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# syntax=docker/dockerfile-upstream:master@sha256:df54e73548d586209f6fc6d34d61edf8277e1b9d2704aff8fe75294a17c6a29b
1+
# syntax=docker/dockerfile-upstream:master
22

33
ARG GO_VERSION=1.22
44
ARG ALPINE_VERSION=3.20
55
ARG XX_VERSION=1.4.0
66
ARG PROTOLINT_VERSION=0.45.0
77
ARG GOLANGCI_LINT_VERSION=1.61.0
88
ARG GOPLS_VERSION=v0.20.0
9-
# disabled: deprecated unusedvariable simplifyrange
9+
# GOPLS_ANALYZERS defines gopls analyzers to be run. disabled by default: deprecated unusedvariable simplifyrange
1010
ARG GOPLS_ANALYZERS="embeddirective fillreturns infertypeargs nonewvars noresultvalues simplifycompositelit simplifyslice stubmethods undeclaredname unusedparams useany"
1111

1212
FROM --platform=$BUILDPLATFORM golang:${GO_VERSION}-alpine${ALPINE_VERSION} AS golang-base

hack/dockerfiles/shfmt.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# syntax=docker/dockerfile-upstream:master@sha256:df54e73548d586209f6fc6d34d61edf8277e1b9d2704aff8fe75294a17c6a29b
1+
# syntax=docker/dockerfile-upstream:master
22

33
FROM mvdan/shfmt:v3.1.2-alpine AS shfmt
44
WORKDIR /src

hack/dockerfiles/vendor.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# syntax=docker/dockerfile-upstream:master@sha256:df54e73548d586209f6fc6d34d61edf8277e1b9d2704aff8fe75294a17c6a29b
1+
# syntax=docker/dockerfile-upstream:master
22

33
ARG GO_VERSION=1.22
44
ARG ALPINE_VERSION=3.20

0 commit comments

Comments
 (0)