From 1b2bfc9de7647a2186b39d4e76b4767b2818c6db Mon Sep 17 00:00:00 2001 From: Nikita Skrynnik Date: Fri, 12 Jan 2024 10:30:45 +1100 Subject: [PATCH] update spire Signed-off-by: Nikita Skrynnik --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index be1acda..9a92adb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ ARG VPP_VERSION=v23.10-rc0-165-g5348882d0 -FROM ghcr.io/networkservicemesh/govpp/vpp:${VPP_VERSION} as go +FROM govpp:latest as go COPY --from=golang:1.20.12 /usr/local/go/ /go ENV PATH ${PATH}:/go/bin ENV GO111MODULE=on @@ -7,7 +7,9 @@ ENV CGO_ENABLED=0 ENV GOBIN=/bin ARG BUILDARCH=amd64 RUN rm -r /etc/vpp -RUN go install github.com/go-delve/delve/cmd/dlv@v1.21.0 +RUN go install github.com/go-delve/delve/cmd/dlv@v1.22.0 +ADD https://github.com/spiffe/spire/releases/download/v1.8.7/spire-1.8.7-linux-${BUILDARCH}-musl.tar.gz . +RUN tar xzvf spire-1.8.7-linux-${BUILDARCH}-musl.tar.gz -C /bin --strip=2 spire-1.8.7/bin/spire-server spire-1.8.7/bin/spire-agent FROM go as build WORKDIR /build @@ -24,6 +26,6 @@ CMD go test -test.v ./... FROM test as debug CMD dlv -l :40000 --headless=true --api-version=2 test -test.v ./... -FROM ghcr.io/networkservicemesh/govpp/vpp:${VPP_VERSION} as runtime +FROM govpp:latest as runtime COPY --from=build /bin/cmd-lb-vl3-vpp /bin/cmd-lb-vl3-vpp ENTRYPOINT [ "/bin/cmd-lb-vl3-vpp" ] \ No newline at end of file