mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-19 01:17:18 +00:00
Use containerd to run containers
Because we are not yet using the image store, this requires a patched `ctr` that can run a specified rootfs rather than an image. We will switch to the image store later, but this requires extensive build changes. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
FROM golang:1.7-alpine3.5
|
||||
FROM golang:1.8-alpine
|
||||
RUN \
|
||||
apk update && apk upgrade -a && \
|
||||
apk add --no-cache \
|
||||
@@ -9,10 +9,10 @@ RUN \
|
||||
linux-headers \
|
||||
make \
|
||||
&& true
|
||||
ENV CONTAINERD_COMMIT=e5c8c5634a1fa82da41c1b707f8a9889bcfca248
|
||||
ENV CONTAINERD_COMMIT=ffe684b017252262431e157741406d4e1fb22831
|
||||
RUN mkdir -p $GOPATH/src/github.com/containerd && \
|
||||
cd $GOPATH/src/github.com/containerd && \
|
||||
git clone https://github.com/containerd/containerd.git
|
||||
git clone https://github.com/justincormack/containerd.git
|
||||
WORKDIR $GOPATH/src/github.com/containerd/containerd
|
||||
RUN git checkout $CONTAINERD_COMMIT
|
||||
RUN make binaries GO_GCFLAGS="-buildmode pie --ldflags '-extldflags \"-fno-PIC -static\"'"
|
||||
|
Reference in New Issue
Block a user