@@ -17,7 +17,7 @@ ARG AZURITE_VERSION=3.18.0
17
17
ARG GOTESTSUM_VERSION=v1.9.0
18
18
19
19
ARG GO_VERSION=1.20
20
- ARG ALPINE_VERSION=3.17
20
+ ARG ALPINE_VERSION=3.18
21
21
22
22
# minio for s3 integration tests
23
23
FROM minio/minio:${MINIO_VERSION} AS minio
@@ -30,7 +30,7 @@ FROM alpine:${ALPINE_VERSION} AS alpine-arm
30
30
FROM alpine:${ALPINE_VERSION} AS alpine-arm64
31
31
FROM alpine:${ALPINE_VERSION} AS alpine-s390x
32
32
FROM alpine:${ALPINE_VERSION} AS alpine-ppc64le
33
- FROM alpine:edge@sha256:c223f84e05c23c0571ce8decefef818864869187e1a3ea47719412e205c8c64e AS alpine-riscv64
33
+ FROM alpine:edge@sha256:2d01a16bab53a8405876cec4c27235d47455a7b72b75334c614f2fb0968b3f90 AS alpine-riscv64
34
34
FROM alpine-$TARGETARCH AS alpinebase
35
35
36
36
# xx is a helper for cross-compilation
@@ -45,7 +45,7 @@ RUN apk add --no-cache git
45
45
46
46
# gobuild is base stage for compiling go/cgo
47
47
FROM golatest AS gobuild-base
48
- RUN apk add --no-cache file bash clang lld pkgconfig git make
48
+ RUN apk add --no-cache file bash clang lld musl-dev pkgconfig git make
49
49
COPY --link --from=xx / /
50
50
51
51
# runc source
@@ -67,15 +67,6 @@ RUN --mount=from=runc-src,src=/usr/src/runc,target=. --mount=target=/root/.cache
67
67
CGO_ENABLED=1 xx-go build -mod=vendor -ldflags '-extldflags -static' -tags 'apparmor seccomp netgo cgo static_build osusergo' -o /usr/bin/runc ./ && \
68
68
xx-verify --static /usr/bin/runc
69
69
70
- # dnsname CNI plugin for testing
71
- FROM gobuild-base AS dnsname
72
- ARG DNSNAME_VERSION
73
- WORKDIR /go/dnsname
74
- RUN git clone https://github.com/containers/dnsname.git . \
75
- && git checkout -q "$DNSNAME_VERSION"
76
- RUN --mount=target=/root/.cache,type=cache \
77
- set -e; make binaries; mv bin/dnsname /usr/bin/dnsname
78
-
79
70
FROM gobuild-base AS buildkit-base
80
71
WORKDIR /src
81
72
ENV GOFLAGS=-mod=vendor
@@ -225,6 +216,22 @@ FROM binaries AS buildkit-windows
225
216
# this is not in binaries-windows because it is not intended for release yet, just CI
226
217
COPY --link --from=buildkitd /usr/bin/buildkitd /buildkitd.exe
227
218
219
+ # dnsname source
220
+ FROM git AS dnsname-src
221
+ ARG DNSNAME_VERSION
222
+ WORKDIR /usr/src
223
+ RUN git clone https://github.com/containers/dnsname.git dnsname \
224
+ && cd dnsname && git checkout -q "$DNSNAME_VERSION"
225
+
226
+ # build dnsname CNI plugin for testing
227
+ FROM gobuild-base AS dnsname
228
+ WORKDIR /go/src/github.com/containers/dnsname
229
+ ARG TARGETPLATFORM
230
+ RUN --mount=from=dnsname-src,src=/usr/src/dnsname,target=.,rw \
231
+ --mount=target=/root/.cache,type=cache \
232
+ CGO_ENABLED=0 xx-go build -o /usr/bin/dnsname ./plugins/meta/dnsname && \
233
+ xx-verify --static /usr/bin/dnsname
234
+
228
235
FROM --platform=$BUILDPLATFORM alpine:${ALPINE_VERSION} AS cni-plugins
229
236
RUN apk add --no-cache curl
230
237
ARG CNI_VERSION
0 commit comments