Skip to content

Fix Docker build missing protobuf well-known types#32

Merged
compscidr merged 1 commit into
mainfrom
fix/docker-build-proto-includes
Mar 19, 2026
Merged

Fix Docker build missing protobuf well-known types#32
compscidr merged 1 commit into
mainfrom
fix/docker-build-proto-includes

Conversation

@compscidr

Copy link
Copy Markdown
Owner

Summary

  • Dockerfile: Add libprotobuf-dev to the apt install line — protobuf-compiler alone doesn't include well-known .proto files like google/protobuf/empty.proto, causing make proto to fail during Docker builds
  • CI: Add a docker-build smoke test job that builds both Docker targets (device-source and proxy) on every push/PR, so Dockerfile breakage is caught before release

Fixes https://github.com/compscidr/sair/actions/runs/23303376825

Test plan

  • CI docker-build job passes on this PR
  • Verify a new release successfully builds and pushes Docker images

🤖 Generated with Claude Code

The protobuf-compiler package alone doesn't include well-known .proto
files (like google/protobuf/empty.proto). Add libprotobuf-dev to
provide them. Also add a Docker build smoke test to CI so Dockerfile
breakage is caught before release.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 19, 2026 15:49
@compscidr compscidr merged commit 3341ec5 into main Mar 19, 2026
4 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes Docker builds failing during protobuf generation by ensuring the protobuf well-known type .proto files are available in the builder image, and adds CI coverage to prevent future Dockerfile regressions.

Changes:

  • Install libprotobuf-dev in the Docker build stage so make proto can resolve well-known types (e.g., google/protobuf/empty.proto).
  • Add a CI docker-build smoke test job that builds the device-source and proxy Docker targets on every push/PR.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
Dockerfile Adds libprotobuf-dev to provide protobuf well-known type .proto files during make proto in the builder stage.
.github/workflows/ci.yml Adds a docker-build job that builds both Docker targets to catch Docker build breakage in CI.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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