Skip to content

Commit

Permalink
Merge pull request #3995 from twz123/containerd-custom-runc
Browse files Browse the repository at this point in the history
[release-1.28] Build containerd using runc v1.1.12
  • Loading branch information
twz123 authored Feb 1, 2024
2 parents b189177 + eb90ee9 commit 710040e
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions embedded-bins/containerd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,17 @@ ARG TARGET_OS \
CONTAINERD_BINS

RUN go version
RUN make \
CGO_ENABLED=${BUILD_GO_CGO_ENABLED} \
SHIM_CGO_ENABLED=${BUILD_SHIM_GO_CGO_ENABLED} \
GO_TAGS="-tags=${BUILD_GO_TAGS}" \
COMMANDS="${CONTAINERD_BINS}" \
GO_BUILD_FLAGS="${BUILD_GO_FLAGS}" \
EXTRA_LDFLAGS="${BUILD_GO_LDFLAGS_EXTRA}" \
GOOS="${TARGET_OS}"
RUN set -ex \
&& go get github.com/opencontainers/[email protected] \
&& make \
CGO_ENABLED=${BUILD_GO_CGO_ENABLED} \
SHIM_CGO_ENABLED=${BUILD_SHIM_GO_CGO_ENABLED} \
GO_TAGS="-tags=${BUILD_GO_TAGS}" \
COMMANDS="${CONTAINERD_BINS}" \
GO_BUILD_FLAGS="${BUILD_GO_FLAGS}" \
EXTRA_LDFLAGS="${BUILD_GO_LDFLAGS_EXTRA}" \
GOOS="${TARGET_OS}" \
vendor all

FROM scratch
COPY --from=build /go/src/github.com/containerd/containerd/bin/* /bin/

0 comments on commit 710040e

Please sign in to comment.