mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-01 15:08:33 +00:00
containerd 20 (#4100)
* bump containerd-dev to 2.0.2 Signed-off-by: Avi Deitcher <avi@deitcher.net> * update pkg/init libs to containerd-20 Signed-off-by: Avi Deitcher <avi@deitcher.net> * bump linuxkit CLI containerd deps to 20 Signed-off-by: Avi Deitcher <avi@deitcher.net> * update test/pkg/containerd to work with containerd v2.x tests Signed-off-by: Avi Deitcher <avi@deitcher.net> * update containerd-dev deps Signed-off-by: Avi Deitcher <avi@deitcher.net> * update pkg/init and pkg/containerd dependencies Signed-off-by: Avi Deitcher <avi@deitcher.net> * update test/pkg/containerd deps Signed-off-by: Avi Deitcher <avi@deitcher.net> --------- Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
@@ -6,7 +6,9 @@ FROM linuxkit/alpine:35b33c6b03c40e51046c3b053dd131a68a26c37a as builder
|
||||
# `test/pkg/containerd/Dockerfile` when changing this.
|
||||
ENV CONTAINERD_REPO=https://github.com/containerd/containerd.git
|
||||
|
||||
ENV CONTAINERD_COMMIT=v1.7.20
|
||||
# this is a commit post-v2.0.2 that contains a fix necesary for tests to pass.
|
||||
# it should be released with v2.0.3, which can be used once that release is available.
|
||||
ENV CONTAINERD_COMMIT=3904a5761fadbb999d3fc1a7f7ab7cc6f6d7d850
|
||||
ENV GOPATH=/go
|
||||
RUN apk add go git
|
||||
RUN mkdir -p $GOPATH/src/github.com/containerd && \
|
||||
@@ -18,11 +20,11 @@ RUN apk add --no-cache btrfs-progs-dev gcc libc-dev linux-headers make libseccom
|
||||
WORKDIR $GOPATH/src/github.com/containerd/containerd
|
||||
RUN make binaries EXTRA_FLAGS="-buildmode pie" EXTRA_LDFLAGS='-extldflags "-fno-PIC -static"' BUILDTAGS="static_build no_devmapper"
|
||||
|
||||
RUN cp bin/containerd bin/ctr bin/containerd-shim bin/containerd-shim-runc-v2 /usr/bin/
|
||||
RUN strip /usr/bin/containerd /usr/bin/ctr /usr/bin/containerd-shim /usr/bin/containerd-shim-runc-v2
|
||||
RUN cp bin/containerd bin/ctr bin/containerd-shim-runc-v2 /usr/bin/
|
||||
RUN strip /usr/bin/containerd /usr/bin/ctr /usr/bin/containerd-shim-runc-v2
|
||||
|
||||
FROM scratch
|
||||
ENTRYPOINT []
|
||||
WORKDIR /
|
||||
COPY --from=builder /usr/bin/containerd /usr/bin/ctr /usr/bin/containerd-shim /usr/bin/containerd-shim-runc-v2 /usr/bin/
|
||||
COPY --from=builder /usr/bin/containerd /usr/bin/ctr /usr/bin/containerd-shim-runc-v2 /usr/bin/
|
||||
COPY --from=builder /go/src/github.com/containerd/containerd /go/src/github.com/containerd/containerd
|
||||
|
Reference in New Issue
Block a user