-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reuse connection and support protobuf content type
- Loading branch information
Sara Wei
committed
Jan 3, 2024
1 parent
358929d
commit 9cb6b38
Showing
16 changed files
with
1,069 additions
and
63 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 |
---|---|---|
|
@@ -20,3 +20,6 @@ bin/ | |
|
||
# Go workspace file | ||
go.work | ||
|
||
temp/ | ||
cmd/kperf/commands/virtualcluster |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM golang:1.20 AS build-stage | ||
|
||
WORKDIR /gomod | ||
COPY go.mod go.sum ./ | ||
RUN go mod download | ||
|
||
RUN mkdir -p /output | ||
|
||
WORKDIR /kperf-build | ||
RUN --mount=source=./,target=/kperf-build,rw make build && PREFIX=/output make install | ||
|
||
FROM gcr.io/distroless/static-debian12:nonroot AS release-stage | ||
|
||
WORKDIR / | ||
|
||
COPY --from=build-stage /output/bin/kperf /kperf | ||
|
||
USER nonroot:nonroot | ||
|
||
ENTRYPOINT ["/kperf"] |
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
Oops, something went wrong.