ros-infrastructure / ros_buildfarm

ROS buildfarm based on Docker
Apache License 2.0
83 stars 97 forks source link

Delete any existing UID user in Dockerfile #1061

Closed rkent closed 1 month ago

rkent commented 4 months ago

Fixes #1060

As discussed in issue, delete any existing user in a Dockerfile before adding the buildfarm user. This is needed because Docker ubuntu:noble now adds an 'ubuntu' user with UID=1000, which is a common UID for users running scripts.

I only tested with gen_doc_script, but I changed it in all other occurrences.