mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-27 21:43:15 +00:00
Since we are building containerd v1.1.0 with go 1.10 (as it requires) to the same for init and runc too for consistency. In the case of init it is actually required since we use the containerd client library there. The subreaper interfaces have been removed from containerd and replaced with a similar interface in runc/libcontainer, update init to use that now. Signed-off-by: Ian Campbell <ijc@docker.com>
33 lines
1.2 KiB
Docker
33 lines
1.2 KiB
Docker
FROM linuxkit/alpine:02d7e748614512ea099e8c76254e41bcea03ba8f AS mirror
|
|
RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/
|
|
# btrfs-progfs is required for btrfs test (mkfs.btrfs)
|
|
# util-linux is required for btrfs test (losetup)
|
|
# xfsprogs is required for xfs test (mkfs.xfs)
|
|
RUN apk add --no-cache --initdb -p /out \
|
|
alpine-baselayout \
|
|
busybox \
|
|
btrfs-progs \
|
|
btrfs-progs-dev \
|
|
gcc \
|
|
git \
|
|
go \
|
|
libc-dev \
|
|
linux-headers \
|
|
make \
|
|
musl \
|
|
util-linux \
|
|
xfsprogs \
|
|
tzdata
|
|
RUN rm -rf /out/etc/apk /out/lib/apk /out/var/cache
|
|
RUN cp /out/usr/share/zoneinfo/UTC /out/etc/localtime
|
|
|
|
FROM scratch
|
|
COPY --from=mirror /out/ /
|
|
COPY --from=mirror /go/src/github.com/containerd/containerd /go/src/github.com/containerd/containerd/
|
|
ENV GOPATH=/go
|
|
WORKDIR $GOPATH/src/github.com/containerd/containerd
|
|
ADD run.sh ./run.sh
|
|
|
|
ENTRYPOINT ["/bin/sh", "run.sh"]
|
|
LABEL org.mobyproject.config='{"capabilities": ["all"], "tmpfs": ["/tmp"], "binds": ["/dev:/dev", "/var/lib:/var/lib", "/etc/resolv.conf:/etc/resolv.conf", "/usr/bin/runc:/usr/bin/runc", "/usr/bin/containerd:/usr/bin/containerd", "/usr/bin/containerd-shim:/usr/bin/containerd-shim"], "mounts": [{"type": "cgroup", "options": ["rw","nosuid","noexec","nodev","relatime"]}],}'
|