mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-24 19:28:09 +00:00
Build containerd in Alpine image
This makes it easier to add the containerd testing tools like `containerd-stress` to test packages, for example, and also at some point move `ctr` out of the base image as it can be installed from the alpine image. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
28c08bc293
commit
a48a6b3e97
@ -40,7 +40,7 @@ RUN go get -u github.com/golang/lint/golint
|
||||
RUN go get -u github.com/gordonklaus/ineffassign
|
||||
RUN go get -u github.com/LK4D4/vndr
|
||||
|
||||
# checkout containerd
|
||||
# checkout and compile containerd
|
||||
# Update `FROM` in `pkg/containerd/Dockerfile`, `pkg/init/Dockerfile` and
|
||||
# `test/pkg/containerd/Dockerfile` when changing this.
|
||||
ENV CONTAINERD_REPO=https://github.com/containerd/containerd.git
|
||||
@ -50,6 +50,9 @@ RUN mkdir -p $GOPATH/src/github.com/containerd && \
|
||||
git clone https://github.com/containerd/containerd.git && \
|
||||
cd $GOPATH/src/github.com/containerd/containerd && \
|
||||
git checkout $CONTAINERD_COMMIT
|
||||
RUN apk add --no-cache btrfs-progs-dev gcc libc-dev linux-headers make
|
||||
RUN cd $GOPATH/src/github.com/containerd/containerd && \
|
||||
make binaries EXTRA_FLAGS="-buildmode pie" EXTRA_LDFLAGS="-extldflags \\\"-fno-PIC -static\\\""
|
||||
|
||||
FROM $BASE
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# linuxkit/alpine:415e9417004bbd8940a4c2303195b20a5dbd8c9a-arm64
|
||||
# linuxkit/alpine:a662efbaf4226d0ac358cc009ead9a95b3b1dd99-arm64
|
||||
# automatically generated list of installed packages
|
||||
abuild-3.0.0_rc2-r8
|
||||
alpine-baselayout-3.0.4-r0
|
||||
|
@ -1,4 +1,4 @@
|
||||
# linuxkit/alpine:79987c65c66700171c073151c1d3f0372597bec2-amd64
|
||||
# linuxkit/alpine:77287352db68b442534c0005edd6ff750c8189f3-amd64
|
||||
# automatically generated list of installed packages
|
||||
abuild-3.0.0_rc2-r8
|
||||
alpine-baselayout-3.0.4-r0
|
||||
|
Loading…
Reference in New Issue
Block a user