Skip to content

Use almalinux as the Docker base image #80524

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

Merged
merged 5 commits into from
Nov 10, 2021

Conversation

pugnascotia
Copy link
Contributor

@pugnascotia pugnascotia commented Nov 9, 2021

Closes #76681. Our approach to using scratch for building Docker images has caused problems at Docker Hub. Fix this situation by removing the whole process of using scratch and instead bases the default distribution on almalinux:8.4-minimal. Alma Linux is binary-compatible with RHEL, and therefore very similar to UBI.

cc @bytebilly @mieciu

@pugnascotia pugnascotia added >enhancement :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts v8.0.0 v7.16.0 labels Nov 9, 2021
@elasticmachine elasticmachine added the Team:Delivery Meta label for Delivery team label Nov 9, 2021
@elasticmachine
Copy link
Collaborator

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

@elasticsearchmachine
Copy link
Collaborator

Hi @pugnascotia, I've created a changelog YAML for you.

@elasticsearchmachine
Copy link
Collaborator

Hi @pugnascotia, I've updated the changelog YAML for you.

@pugnascotia
Copy link
Contributor Author

@elasticmachine run elasticsearch-ci/packaging-tests-windows - looks like transient failures

Copy link
Contributor

@mark-vieira mark-vieira left a comment

Choose a reason for hiding this comment

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

Couple comments but otherwise LGTM. Thanks for the quick turnaround on this, Rory.

@@ -19,7 +19,7 @@
add as many newlines here as necessary to improve legibility.
*/ %>

<% if (docker_base == "ubi") { %>
<% if (docker_base == 'default' || docker_base == "ubi") { %>
Copy link
Contributor

Choose a reason for hiding this comment

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

I think one of the issues the Dockerhub folks had was with the fact we're using a multi-stage build. Can we eliminate this given all we're doing now in this stage is unpacking ES and adding tini?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll look into this in a separate PR.

@pugnascotia pugnascotia merged commit ba87234 into elastic:master Nov 10, 2021
@pugnascotia pugnascotia deleted the use-almalinux-for-docker-base branch November 10, 2021 13:04
pugnascotia added a commit that referenced this pull request Nov 10, 2021
Closes #76681. Our approach to using `scratch` for building Docker
images has caused problems at Docker Hub. Fix this situation by
removing the whole process of using scratch and instead bases the
default distribution on `almalinux:8.4-minimal`. Alma Linux is
binary-compatible with RHEL, and therefore very similar to UBI.
@pugnascotia
Copy link
Contributor Author

Backported to `7.16 in 4f17b3d and d647238.

@pugnascotia
Copy link
Contributor Author

I had to make another fix to the Dockerfile in 46dc92d.

pugnascotia added a commit that referenced this pull request Nov 18, 2021
pugnascotia added a commit that referenced this pull request Nov 18, 2021
Closes #76681. Our approach to using `scratch` for building Docker
images has caused problems at Docker Hub. Fix this situation by
removing the whole process of using scratch and instead bases the
default distribution on `almalinux:8.4-minimal`. Alma Linux is
binary-compatible with RHEL, and therefore very similar to UBI.
pugnascotia added a commit that referenced this pull request Nov 18, 2021
pugnascotia added a commit to pugnascotia/elasticsearch that referenced this pull request Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts >enhancement Team:Delivery Meta label for Delivery team v7.16.0 v8.0.0-rc2 v8.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switch to future-proof linux distribution for Docker images
4 participants