generated from networkservicemesh/cmd-template
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Szilard Vincze <[email protected]>
- Loading branch information
Showing
4 changed files
with
13 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
ARG VPP_VERSION=v23.10-rc0-170-g0bbdb8b45 | ||
FROM ghcr.io/networkservicemesh/govpp/vpp:${VPP_VERSION} as go | ||
ARG VPP_VERSION=v24.10.0-4-g4f296b751 | ||
FROM ghcr.io/networkservicemesh/govpp/vpp:${VPP_VERSION} AS go | ||
COPY --from=golang:1.23.1 /usr/local/go/ /go | ||
ENV PATH ${PATH}:/go/bin | ||
ENV PATH=${PATH}:/go/bin | ||
ENV GO111MODULE=on | ||
ENV CGO_ENABLED=0 | ||
ENV GOBIN=/bin | ||
|
@@ -12,7 +12,7 @@ RUN go install github.com/grpc-ecosystem/[email protected] | |
ADD https://github.com/spiffe/spire/releases/download/v1.8.0/spire-1.8.0-linux-${BUILDARCH}-musl.tar.gz . | ||
RUN tar xzvf spire-1.8.0-linux-${BUILDARCH}-musl.tar.gz -C /bin --strip=2 spire-1.8.0/bin/spire-server spire-1.8.0/bin/spire-agent | ||
|
||
FROM go as build | ||
FROM go AS build | ||
RUN apt update | ||
RUN apt install -f -y libbpf-dev clang | ||
WORKDIR /build | ||
|
@@ -25,14 +25,14 @@ RUN go build ./internal/imports | |
COPY . . | ||
RUN go build -o /bin/forwarder . | ||
|
||
FROM build as test | ||
FROM build AS test | ||
CMD go test -test.v ./... | ||
|
||
FROM test as debug | ||
FROM test AS debug | ||
WORKDIR /build/internal/tests/ | ||
CMD dlv -l :40000 --headless=true --api-version=2 test -test.v . | ||
|
||
FROM ghcr.io/networkservicemesh/govpp/vpp:${VPP_VERSION} as runtime | ||
FROM ghcr.io/networkservicemesh/govpp/vpp:${VPP_VERSION} AS runtime | ||
RUN apt-get update | ||
RUN apt install -f -y libbpf-dev | ||
COPY --from=build /bin/forwarder /bin/forwarder | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters