mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 10:09:07 +00:00
pkg/virtsock: update vendording of linuxkit/virtsock
Signed-off-by: David Scott <dave.scott@docker.com>
This commit is contained in:
parent
5d44a0a33d
commit
1aae3e309b
@ -9,17 +9,17 @@ FROM linuxkit/alpine:3683c9a66cd4da40bd7d6c7da599b2dcd738b559 AS build
|
|||||||
RUN apk add --no-cache go musl-dev git make
|
RUN apk add --no-cache go musl-dev git make
|
||||||
ENV GOPATH=/go PATH=$PATH:/go/bin
|
ENV GOPATH=/go PATH=$PATH:/go/bin
|
||||||
|
|
||||||
ENV VIRTSOCK_COMMIT=3bfdf22e3b63a7d130ae5db41c2d76eaffa444d4
|
ENV VIRTSOCK_COMMIT=f1e32d3189e0dbb81c0e752a4e214617487eb41f
|
||||||
RUN mkdir -p $GOPATH/src/github.com/rneugeba && \
|
RUN mkdir -p $GOPATH/src/github.com/linuxkit && \
|
||||||
cd $GOPATH/src/github.com/rneugeba && \
|
cd $GOPATH/src/github.com/linuxkit && \
|
||||||
git clone https://github.com/rneugeba/virtsock.git
|
git clone https://github.com/linuxkit/virtsock.git
|
||||||
WORKDIR $GOPATH/src/github.com/rneugeba/virtsock
|
WORKDIR $GOPATH/src/github.com/linuxkit/virtsock
|
||||||
RUN git checkout $VIRTSOCK_COMMIT
|
RUN git checkout $VIRTSOCK_COMMIT
|
||||||
# Don't use go-compile.sh quite yet as the virtsock package is not yet lint free
|
# Don't use go-compile.sh quite yet as the virtsock package is not yet lint free
|
||||||
RUN make build/virtsock_stress.linux && \
|
RUN make bin/sock_stress.linux && \
|
||||||
cp -a build/virtsock_stress.linux /virtsock_stress
|
cp -a bin/sock_stress.linux /sock_stress
|
||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY --from=mirror /out/ /
|
COPY --from=mirror /out/ /
|
||||||
COPY --from=build virtsock_stress usr/bin/virtsock_stress
|
COPY --from=build sock_stress usr/bin/sock_stress
|
||||||
CMD ["/sbin/tini", "/usr/bin/virtsock_stress", "-s", "-v", "1"]
|
CMD ["/sbin/tini", "/usr/bin/sock_stress", "-s", "-v", "1"]
|
||||||
|
Loading…
Reference in New Issue
Block a user