-
Notifications
You must be signed in to change notification settings - Fork 5
chore: harden Dockerfiles and add devops CODEOWNERS #535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,7 @@ | ||
| # CODEOWNERS: https://help.github.com/articles/about-codeowners/ | ||
|
|
||
| # Primary repo maintainers | ||
| * @KonradStaniec @RafilxTenfen @Lazar955 @gitferry @SebastianElvis | ||
| * @KonradStaniec @RafilxTenfen @Lazar955 @gitferry @SebastianElvis | ||
|
|
||
| # DevOps team owns CI/CD workflows | ||
| /.github/workflows/ @babylonlabs-io/devops |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -4,12 +4,15 @@ | |||||
| # /dev.Dockerfile | ||||||
| # /make/builder.Dockerfile | ||||||
| # /tools/Dockerfile | ||||||
| FROM golang:1.20.5-buster | ||||||
| FROM golang:1.23-bookworm | ||||||
|
|
||||||
| RUN apt-get update && apt-get install -y \ | ||||||
| git \ | ||||||
| protobuf-compiler='3.6.1*' \ | ||||||
| clang-format='1:7.0*' | ||||||
| SHELL ["/bin/bash", "-o", "pipefail", "-c"] | ||||||
|
|
||||||
| RUN apt-get update && apt-get install -y --no-install-recommends \ | ||||||
| git=1:2.39.5-0+deb12u3 \ | ||||||
| protobuf-compiler=3.21.12-3 \ | ||||||
| clang-format=1:14.0-55.7~deb12u1 \ | ||||||
| && rm -rf /var/lib/apt/lists/* | ||||||
|
|
||||||
| # We don't want any default values for these variables to make sure they're | ||||||
| # explicitly provided by parsing the go.mod file. Otherwise we might forget to | ||||||
|
|
@@ -21,13 +24,14 @@ ENV PROTOC_GEN_GO_GRPC_VERSION="v1.1.0" | |||||
| ENV GOCACHE=/tmp/build/.cache | ||||||
| ENV GOMODCACHE=/tmp/build/.modcache | ||||||
|
|
||||||
| RUN cd /tmp \ | ||||||
| && mkdir -p /tmp/build/.cache \ | ||||||
| WORKDIR /tmp | ||||||
|
|
||||||
| RUN mkdir -p /tmp/build/.cache \ | ||||||
| && mkdir -p /tmp/build/.modcache \ | ||||||
| && go install google.golang.org/protobuf/cmd/protoc-gen-go@${PROTOBUF_VERSION} \ | ||||||
| && go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@${PROTOC_GEN_GO_GRPC_VERSION} \ | ||||||
| && go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway@${GRPC_GATEWAY_VERSION} \ | ||||||
| && go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@${GRPC_GATEWAY_VERSION} \ | ||||||
| && go install "google.golang.org/protobuf/cmd/protoc-gen-go@${PROTOBUF_VERSION}" \ | ||||||
| && go install "google.golang.org/grpc/cmd/protoc-gen-go-grpc@${PROTOC_GEN_GO_GRPC_VERSION}" \ | ||||||
| && go install "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway@${GRPC_GATEWAY_VERSION}" \ | ||||||
| && go install "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@${GRPC_GATEWAY_VERSION}" \ | ||||||
| && go install golang.org/x/tools/cmd/goimports@v0.1.7 \ | ||||||
|
||||||
| && go install golang.org/x/tools/cmd/goimports@v0.1.7 \ | |
| && go install "golang.org/x/tools/cmd/goimports@v0.1.7" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Go version in this Dockerfile (1.23) is inconsistent with the project's Go version. The main Dockerfile uses golang:1.25-alpine (line 2 of Dockerfile), go.mod specifies go 1.25.0, and .github/workflows/ci.yml uses go-version: '1.25'. This proto Dockerfile should be updated to golang:1.23-bookworm or golang:1.25-bookworm to match the project's Go version.