Skip to content
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

Set PODMAN_USERNS=keep-id when invoking 'docker run' #1032

Merged
merged 1 commit into from
Apr 4, 2024
Merged

Conversation

cottsay
Copy link
Member

@cottsay cottsay commented Mar 21, 2024

The way Dockerfiles are structured in ros_buildfarm, we're dependent on the UID staying the same when the container is run.

Setting PODMAN_USERNS=keep-id when the docker command is backed by Podman will in effect preserve the behavior of Docker we're relying on here. When the docker command is backed by Docker, this shouldn't change the behavior at all.

So far, this change combined with #1013 has enabled use of Podman for all release and devel jobs locally.

Copy link
Member

@tfoote tfoote left a comment

Choose a reason for hiding this comment

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

This looks fine. And it's great it can work with podman now. Can you add a bit of documentation somewhere explaining this so we don't have to trace down the PR/commit message?

@cottsay cottsay force-pushed the cottsay/podman branch 3 times, most recently from eb340ea to e02a819 Compare April 3, 2024 16:36
The way Dockerfiles are structured in ros_buildfarm, we're dependent on
the UID staying the same when the container is run.

Setting PODMAN_USERNS=keep-id when the `docker` command is backed by
Podman will in effect preserve the behavior of Docker we're relying on
here. When the `docker` command is backed by Docker, this shouldn't
change the behavior at all.
Copy link
Member

@tfoote tfoote left a comment

Choose a reason for hiding this comment

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

Thanks for adding the comments. Lgtm

@cottsay cottsay merged commit d6df50a into master Apr 4, 2024
32 checks passed
@cottsay cottsay deleted the cottsay/podman branch April 4, 2024 21:16
Z572 pushed a commit to revyos-ros/ros_buildfarm that referenced this pull request May 15, 2024
…ure#1032)

The way Dockerfiles are structured in ros_buildfarm, we're dependent on
the UID staying the same when the container is run.

Setting PODMAN_USERNS=keep-id when the `docker` command is backed by
Podman will in effect preserve the behavior of Docker we're relying on
here. When the `docker` command is backed by Docker, this shouldn't
change the behavior at all.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants