-
Notifications
You must be signed in to change notification settings - Fork 381
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3995 from twz123/containerd-custom-runc
[release-1.28] Build containerd using runc v1.1.12
- Loading branch information
Showing
1 changed file
with
11 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/ |