mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-14 18:57:35 +00:00
0eb21735ae accidentally broke some package
builds by switching linuxkit/alpine to linuxkit/containerd. Let's revert
the ones that shouldn't be there.
Closes #1991
Signed-off-by: Tycho Andersen <tycho@docker.com>
26 lines
1017 B
Docker
26 lines
1017 B
Docker
FROM linuxkit/alpine:630ee558e4869672fae230c78364e367b8ea67a9 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"]
|