Skip to content

Add Alma 9 rpmbuild + bazel environment for examples #969

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

Merged
merged 3 commits into from
Jul 11, 2025

Conversation

wade-arista
Copy link
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: bazelbuild#968
Copy link
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
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
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