Skip to content

Upgrade base protoc and protoc-cpp images to Alpine 3.21#184

Open
Paul De Audney (pdeaudney) wants to merge 2 commits intomainfrom
upgrade/alpine-3.21-protobuf-v24
Open

Upgrade base protoc and protoc-cpp images to Alpine 3.21#184
Paul De Audney (pdeaudney) wants to merge 2 commits intomainfrom
upgrade/alpine-3.21-protobuf-v24

Conversation

@pdeaudney
Copy link
Copy Markdown

Summary

  • Upgrade base protoc image from Alpine 3.15 (EOL) to 3.21, bringing protobuf 3.18 -> 24.4 and grpc 1.62.1
  • Upgrade buf from 1.8.0 to 1.66.0
  • Update protoc-cpp build to add abseil-cpp-dev and pkgconf dependencies (required by protobuf v22+)
  • Regenerate wire_options.pb.cc/h during Docker build to match container's protobuf version
  • Bump protoc image version to 1.15.0, protoc-cpp to 1.13.0

Dependencies

Merge order

  1. Merge & tag s12-proto PR (e.g. v1.37.0)
  2. Update CRUX_CLIENT_RELEASE in this PR to match the new tag
  3. Merge this PR
  4. Build & push images: make protoc && make cpp
  5. Bump PROTOC_CPP_VERSION=1.13.0 in APISchema/Makefile

Other affected images

  • protoc-node and protoc-web also reference protoc:1.14.2 and will need separate updates to protoc:1.15.0

Test plan

  • Base protoc:1.15.0 image builds successfully
  • protoc-cpp:1.13.0 image builds successfully (tested against s12-proto branch)
  • Run make crux in APISchema with new protoc-cpp:1.13.0 image
  • Verify generated C++ output compiles downstream

🤖 Generated with Claude Code

- protoc base image: Alpine 3.15 -> 3.21, buf 1.8.0 -> 1.66.0
  - protoc 3.18.1 -> 24.4, grpc 1.62.1 (from community repo)
- protoc-cpp image: base protoc 1.14.2 -> 1.15.0
  - Add abseil-cpp-dev and pkgconf build deps (required by protobuf v22+)
  - Regenerate wire_options.pb.cc/h during build to match container protobuf
  - Bump version to 1.13.0
- Fix legacy ENV format warning in Dockerfile

Note: CRUX_CLIENT_RELEASE needs updating to a new s12-proto tag
that includes the protobuf v24 string_view compatibility changes
(see SafetyCulture/s12-proto PR upgrade/protobuf-v33-compatibility).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

ENV CRUX_CLIENT_RELEASE 1.36.0
# TODO: Update to new s12-proto release tag with protobuf v24 compatibility
ENV CRUX_CLIENT_RELEASE=1.36.0
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to go once this is updated 🙌

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.

4 participants