Skip to content

Add Alma 9 rpmbuild + bazel environment for examples#969

Merged
tonyaiuto merged 3 commits intobazelbuild:mainfrom
wade-arista:main
Jul 11, 2025
Merged

Add Alma 9 rpmbuild + bazel environment for examples#969
tonyaiuto merged 3 commits intobazelbuild:mainfrom
wade-arista:main

Conversation

@wade-arista
Copy link
Copy Markdown
Contributor

This provides a consistent starting point for running rpmbuild examples using a docker container build on Alma 9.

Closes: #968

This provides a consistent starting point for running rpmbuild
examples using a docker container build on Alma 9.

Closes: #968
Copy link
Copy Markdown
Collaborator

@aiuto aiuto left a comment

Choose a reason for hiding this comment

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

I think this is reasonable. I want to try it out on mac.
Give me a day or two to get back to it.

@wade-arista
Copy link
Copy Markdown
Contributor Author

I think this is reasonable. I want to try it out on mac. Give me a day or two to get back to it.

sounds great, thanks

This is required for better compatibility with host platforms where
the active uid (from id -u) might conflict with the base image system
user ids.

We chose 1000 as something outside the standard uid range, and
conveniently the default uid on Ubuntu systems, ref:
https://refspecs.linuxfoundation.org/LSB_3.0.0/LSB-Core-generic/LSB-Core-generic/uidrange.html

I've also changed the Dockerfile to pick up the TARGETARCH value so
that we get the right bazelisk executable.
@wade-arista wade-arista requested a review from tonyaiuto July 10, 2025 20:10
Since it runs `exec docker ...` as the last step, putting it inside a
subhsell is not so useful.
@wade-arista wade-arista requested a review from tonyaiuto July 11, 2025 15:49
@tonyaiuto
Copy link
Copy Markdown
Collaborator

Thanks for doing this. It's going to be a huge help for validating rpmbuild PRs.
In the future, we can build it out with other OS baselines.

@tonyaiuto tonyaiuto merged commit 4e6e82c into bazelbuild:main Jul 11, 2025
3 checks passed
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.

Provide a consistent environment for developers to validate rpmbuild changes, run examples

4 participants