mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-05 13:08:30 +00:00
22 lines
992 B
Docker
22 lines
992 B
Docker
FROM linuxkit/alpine:dae8bcbc6e2cec0a1cc1958dddbc5d6bd3ccf9a0@sha256:02c251d54c4083a596ead8cae92144306b385db0ff961c95a3a620a4c69961ed 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/go-compile:4513068d9a7e919e4ec42e2d7ee879ff5b95b7f5@sha256:bdfadbe3e4ec699ca45b67453662321ec270f2d1a1dbdbf09625776d3ebd68c5 AS build
|
|
|
|
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
|
|
RUN make build/virtsock_stress.linux
|
|
RUN cp -a build/virtsock_stress.linux /virtsock_stress
|
|
|
|
FROM scratch
|
|
COPY --from=mirror /out/ /
|
|
COPY --from=build virtsock_stress bin/virtsock_stress
|
|
CMD ["/sbin/tini", "/bin/virtsock_stress", "-s", "-v", "1"]
|