-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add cmake support to protocolbuffers/cpp plugins to v25 #1577
base: main
Are you sure you want to change the base?
Conversation
@pkwarren I know I'm missing something with squashing layers. Lmk what I should update. |
@@ -18,7 +18,10 @@ RUN bazel build '//:protoc_lib' | |||
COPY --link BUILD cpp.cc plugins/ | |||
RUN bazel build '//plugins:protoc-gen-cpp.stripped' | |||
|
|||
FROM gcr.io/distroless/cc-debian12:latest@sha256:e6ae66a5a343d7112167f9117c4e630cfffcd80db44e44302759ec13ddd2d22b | |||
COPY --from=build --link --chmod=0755 /build/bazel-bin/plugins/protoc-gen-cpp . | |||
FROM gcr.io/distroless/cc-debian12:latest@sha256:e6ae66a5a343d7112167f9117c4e630cfffcd80db44e44302759ec13ddd2d22b AS base |
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.
Let's bump to the latest version from .github/docker/Dockerfile.distroless-cc-debian
here (this is what our plugin fetcher uses to keep base images updated).
RUN bazel build '//plugins:protoc-gen-cpp.stripped' | ||
COPY --link disable_cpp_editions.patch . | ||
RUN git apply < disable_cpp_editions.patch \ | ||
&& bazel build '//plugins:protoc-gen-cpp.stripped' |
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.
If we're updating this plugin lets merge the latest changes from 25.3 or 28.3 into here (including changing base images to bookworm/debian12, updating base images to latest, and reducing image layers).
Also squash layers