Skip to content

Commit

Permalink
update spire
Browse files Browse the repository at this point in the history
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
  • Loading branch information
NikitaSkrynnik committed Jan 11, 2024
1 parent 56e1ee6 commit 1b2bfc9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
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
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
Expand All @@ -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" ]

0 comments on commit 1b2bfc9

Please sign in to comment.