chore: fix bazel container builds #1097

Closed
opened 2026-03-28 04:31:39 +00:00 by mfreeman451 · 0 comments
Owner

Imported from GitHub.

Original GitHub issue: #2999
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/issues/2999
Original created: 2026-03-07T00:33:33Z


See #1733, Marvin's comments

[marvin-hansen](https://github.com/marvin-hansen)
[5 days ago](https://github.com/carverauto/serviceradar/issues/1733#issuecomment-3979946487) via email
Member
From what I have seen today,
this would imply a major rewrite of the Bazel config for building all
container images. Right now, the oci rules are basically abused as docker
replacement with an exceptionally ugly set of Docker files.

Conventionally you would write something like this

https://github.com/marvin-hansen/alpha-system/blob/main/alpha_system/mds/mddb/mddb_service/BUILD.bazel

And you get cacheable image builds for free by basically just copying the
build binary into the OCI stub.

Not sure if you really want to open up this can of worms. However, these
Bazel build files are trivial to maintain so there is that.
[…](https://github.com/carverauto/serviceradar/issues/1733#)
Imported from GitHub. Original GitHub issue: #2999 Original author: @mfreeman451 Original URL: https://github.com/carverauto/serviceradar/issues/2999 Original created: 2026-03-07T00:33:33Z --- See #1733, Marvin's comments ``` [marvin-hansen](https://github.com/marvin-hansen) [5 days ago](https://github.com/carverauto/serviceradar/issues/1733#issuecomment-3979946487) via email Member From what I have seen today, this would imply a major rewrite of the Bazel config for building all container images. Right now, the oci rules are basically abused as docker replacement with an exceptionally ugly set of Docker files. Conventionally you would write something like this https://github.com/marvin-hansen/alpha-system/blob/main/alpha_system/mds/mddb/mddb_service/BUILD.bazel And you get cacheable image builds for free by basically just copying the build binary into the OCI stub. Not sure if you really want to open up this can of worms. However, these Bazel build files are trivial to maintain so there is that. […](https://github.com/carverauto/serviceradar/issues/1733#) ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
carverauto/serviceradar#1097
No description provided.