Skip to content

[8.19] Update docker default base to Ubuntu 24.04 #128534

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

Open
wants to merge 4 commits into
base: 8.19
Choose a base branch
from

Conversation

breskeby
Copy link
Contributor

This PR is related to #118866 and not a committment yet we provide an ubuntu update (tbd.) but evaluating basic compatibility by running packaging test suites.

@breskeby breskeby self-assigned this May 27, 2025
@breskeby breskeby added :Delivery/Build Build or test infrastructure :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts Team:Delivery Meta label for Delivery team v8.19.0 labels May 27, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-delivery (Team:Delivery)

@breskeby breskeby changed the title Update docker default base to Ubuntu 24.04 [8.19] Update docker default base to Ubuntu 24.04 May 27, 2025
@breskeby breskeby closed this May 30, 2025
@breskeby breskeby force-pushed the update-docker-default-base branch from 5660d43 to 0ed7dff Compare May 30, 2025 09:33
@breskeby breskeby reopened this May 30, 2025
breskeby added 3 commits June 2, 2025 08:33
Use openbsd version as its newer and covers e.g. newer usecases like ipv6
this allows us keeping gid 1000 and not introducing a potential breaking change
@breskeby breskeby force-pushed the update-docker-default-base branch from 07b46dd to 72f8c16 Compare June 2, 2025 06:35
RUN groupadd -g 1000 elasticsearch && \\
adduser --uid 1000 --gid 1000 --home /usr/share/elasticsearch elasticsearch && \\
adduser elasticsearch root && \\
RUN userdel -r ubuntu && \\
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ubuntu 24.04 provides a default 'ubuntu' user. best practices I found suggest to just remove it before adding our own user.

@breskeby
Copy link
Contributor Author

breskeby commented Jun 2, 2025

@elasticsearchmachine generate changelog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Delivery/Build Build or test infrastructure :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts Team:Delivery Meta label for Delivery team >upgrade v8.19.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants