Skip to content

Fix username in Ubuntu 24.04-based images#239

Open
bensze01 wants to merge 2 commits intomainfrom
dev/bensze01/fix-24.04-username
Open

Fix username in Ubuntu 24.04-based images#239
bensze01 wants to merge 2 commits intomainfrom
dev/bensze01/fix-24.04-username

Conversation

@bensze01
Copy link
Copy Markdown
Contributor

@bensze01 bensze01 commented Dec 11, 2025

The Ubuntu 24.04 base image ships with a user named ubuntu as uid 1000, unlike
the older images.

This interferes with our User-based licenses, which was the cause of the failures produced by the arm-compilers image.

CI run:

@bensze01 bensze01 added bug Something isn't working needs: ci needs: review needs: reviewer priority-high size-xs Estimated task size: extra small (a few hours at most) labels Dec 11, 2025
Comment thread resources/docker_files/arm-compilers/Dockerfile
gilles-peskine-arm and others added 2 commits January 21, 2026 15:12
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
The Ubuntu 24.04 base image ships with a user named ubuntu as uid 1000, unlike
the older images.

This interferes with our User-based licenses so delete and recreate the user
to match the older name/behaviour.

Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
# Add user
RUN useradd -m user
# Remove the ubuntu(uid:1000) user and add our own - this matches the behaviour of older
# Ubuntu base images and is required for User-based licenses to work.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What matters for the license? The user name, the UID, or both?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

AFAIU the username.

Copy link
Copy Markdown
Contributor

@gilles-peskine-arm gilles-peskine-arm left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working needs: review needs: reviewer priority-high size-xs Estimated task size: extra small (a few hours at most)

Projects

Development

Successfully merging this pull request may close these issues.

2 participants