Skip to content
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

updates to docker image template based on feedback #17494

Merged
merged 1 commit into from
Apr 9, 2025

Conversation

jsvd
Copy link
Member

@jsvd jsvd commented Apr 4, 2025

  • change base images to ubi9-minimal
  • do all env2yaml related copying in 1 COPY
  • use -trimpath in go build
  • move other COPY to end of dockerfile
  • don't run package manager upgrade
  • FROM and AS with same case
  • ENV x=y instead of ENV x y
  • remove indirect config folder

Exhaustive test suite: https://buildkite.com/elastic/logstash-exhaustive-tests-pipeline/builds/1682

Copy link

mergify bot commented Apr 4, 2025

This pull request does not have a backport label. Could you fix it @jsvd? 🙏
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-8./d is the label to automatically backport to the 8./d branch. /d is the digit.
  • backport-8.x is the label to automatically backport to the 8.x branch.
  • If no backport is necessary, please add the backport-skip label

* change base images to ubi9-minimal
* do all env2yaml related copying in 1 COPY
* use -trimpath in go build
* move other COPY to end of dockerfile
* don't run package manager upgrade
* FROM and AS with same case
* ENV x=y instead of ENV x y
* remove indirect config folder
@jsvd jsvd force-pushed the dockerfile_tweaks branch from d1a3b01 to 23f45de Compare April 4, 2025 15:19
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

@jsvd jsvd marked this pull request as ready for review April 8, 2025 08:54
@jsvd jsvd added the backport-9.0 Automated backport to the 9.0 branch with mergify label Apr 8, 2025
@kaisecheng kaisecheng self-requested a review April 9, 2025 10:11
Copy link
Contributor

@kaisecheng kaisecheng left a comment

Choose a reason for hiding this comment

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

LGTM.

I have built the image and it runs as expected. The permission of file and folder are correct. Exhaustive test is green

@jsvd jsvd merged commit 815fa8b into elastic:main Apr 9, 2025
9 checks passed
mergify bot pushed a commit that referenced this pull request Apr 9, 2025
* change base images to ubi9-minimal
* do all env2yaml related copying in 1 COPY
* use -trimpath in go build
* move other COPY to end of dockerfile
* don't run package manager upgrade
* FROM and AS with same case
* ENV x=y instead of ENV x y
* remove indirect config folder

(cherry picked from commit 815fa8b)
jsvd added a commit that referenced this pull request Apr 9, 2025
* change base images to ubi9-minimal
* do all env2yaml related copying in 1 COPY
* use -trimpath in go build
* move other COPY to end of dockerfile
* don't run package manager upgrade
* FROM and AS with same case
* ENV x=y instead of ENV x y
* remove indirect config folder

(cherry picked from commit 815fa8b)

Co-authored-by: João Duarte <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-9.0 Automated backport to the 9.0 branch with mergify
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants