-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Update Ubuntu 20.04 with 24.04 for Docker base images #40942
Update Ubuntu 20.04 with 24.04 for Docker base images #40942
Conversation
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
/test |
run docs-build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, this seems to be the only occurrences of the ubuntu image in beats. I'm not sure if there are other places we should upgrade this as well.
Adding @andrzej-stencel as reviewer since it is the assignee for the issue. |
AFAIK, In all other beat-specific Dockerfiles we use the |
/test |
run docs-build |
run docs-build |
/test |
The issue was actually updated to go from 20.04 straight to 24.04, skipping 22.04. @vinit-chauhan do you think you can update this pull request to move to 24.04? |
Hey @andrzej-stencel - thanks for mentioning the changed title. I'll update the PR. |
Co-authored-by: Julien Lind <[email protected]>
Thanks @jlind23 - I was about to update the branch. 😄 I've updated it. Take a look and let me know if there are any changes. |
Thanks @vinit-chauhan, this looks good to me now. |
buildkite test it |
/test |
run docs-build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks a lot Vinit!
Right, the image build fails with the error: => ERROR [stage-1 10/12] RUN groupadd --gid 1000 auditbeat 0.2s
------
> [stage-1 10/12] RUN groupadd --gid 1000 auditbeat:
0.192 groupadd: GID '1000' already exists I had the same issue in the upgrade for the Elastic Agent repo: elastic/elastic-agent#5644. This is because the Ubuntu 24.04 container images now already include user I recommend to fix this the same way as I did it in my PR: by removing the |
Head branch was pushed to by a user without write access
Hey @andrzej-stencel - I have updated the code. Let me know if there are any further changes. Also, Would you please run the tests? |
037692e
to
ce68c08
Compare
/test |
run docs-build |
run docs-build |
/test |
run docs-build |
/test |
* Replace Ubuntu 20.04 with 22.04 for Docker base images * Added link to pull request in CHANGELOG.next.asciidoc * update to ubuntu:24.04 Co-authored-by: Julien Lind <[email protected]> * remove default ubuntu user in 24.04 while generating container. --------- Co-authored-by: Mauri de Souza Meneguzzo <[email protected]> Co-authored-by: Julien Lind <[email protected]> Co-authored-by: Andrzej Stencel <[email protected]> (cherry picked from commit 4c1489d)
* Replace Ubuntu 20.04 with 22.04 for Docker base images * Added link to pull request in CHANGELOG.next.asciidoc * update to ubuntu:24.04 Co-authored-by: Julien Lind <[email protected]> * remove default ubuntu user in 24.04 while generating container. --------- Co-authored-by: Mauri de Souza Meneguzzo <[email protected]> Co-authored-by: Julien Lind <[email protected]> Co-authored-by: Andrzej Stencel <[email protected]> (cherry picked from commit 4c1489d) Co-authored-by: Vinit Chauhan <[email protected]>
Proposed commit message
Update Ubuntu 20.04 with
22.0424.04 for Docker base images.Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Disruptive User Impact
Author's Checklist
How to test this PR locally
Related issues
Use cases
Screenshots
Logs