Skip to content
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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

smaye81
Copy link
Member

@smaye81 smaye81 commented Nov 9, 2024

Also squash layers

@smaye81 smaye81 requested a review from pkwarren November 9, 2024 02:36
@smaye81
Copy link
Member Author

smaye81 commented Nov 9, 2024

@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
Copy link
Member

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'
Copy link
Member

@pkwarren pkwarren Nov 13, 2024

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants