mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-07 22:46:22 +00:00
Note that this is not the latest (which was 95efd45db073 at time of writing) but the next commit 6428b4bad0c2 merges "Port ctr to use client package" breaks the use of `ctr run --runtime-config` (by removing that option). This contains https://github.com/containerd/containerd/pull/954 which was causing some services to fail to start. All previous uses of15541037b9are updated to5749f2e9e6. Signed-off-by: Ian Campbell <ian.campbell@docker.com>
26 lines
1021 B
Docker
26 lines
1021 B
Docker
FROM linuxkit/containerd:5749f2e9e65395cc6635229e8da0e0d484320ddf AS mirror
|
|
RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/
|
|
RUN apk add --no-cache --initdb -p /out \
|
|
tini
|
|
RUN rm -rf /out/etc/apk /out/lib/apk /out/var/cache
|
|
|
|
FROM linuxkit/alpine:451603daf499e3a40308dbf5571dcffed2343ffa AS build
|
|
|
|
RUN apk add --no-cache go musl-dev git make
|
|
ENV GOPATH=/go PATH=$PATH:/go/bin
|
|
|
|
ENV VIRTSOCK_COMMIT=3bfdf22e3b63a7d130ae5db41c2d76eaffa444d4
|
|
RUN mkdir -p $GOPATH/src/github.com/rneugeba && \
|
|
cd $GOPATH/src/github.com/rneugeba && \
|
|
git clone https://github.com/rneugeba/virtsock.git
|
|
WORKDIR $GOPATH/src/github.com/rneugeba/virtsock
|
|
RUN git checkout $VIRTSOCK_COMMIT
|
|
# Don't use go-compile.sh quite yet as the virtsock package is not yet lint free
|
|
RUN make build/virtsock_stress.linux && \
|
|
cp -a build/virtsock_stress.linux /virtsock_stress
|
|
|
|
FROM scratch
|
|
COPY --from=mirror /out/ /
|
|
COPY --from=build virtsock_stress usr/bin/virtsock_stress
|
|
CMD ["/sbin/tini", "/usr/bin/virtsock_stress", "-s", "-v", "1"]
|