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

Make all docker images consistent for future updates #35919

Merged
merged 1 commit into from
Jun 27, 2023

Conversation

rdner
Copy link
Member

@rdner rdner commented Jun 27, 2023

What does this PR do?

We have update CLI that takes care of Docker image updates. In order to cover all the images we need to make them consistent first.

If we keep these images at older versions, we'll be constantly receiving CVE notifications, so it's easier to automate these updates even though these images are internal and are never released to the public.

Why is it important?

It's a preparation step for another PR that will come later and will update the update CLI configuration to include all these paths.

How to test this PR locally

I ran docker build --no-cache . on each changed Dockerfile.

We have update CLI that takes care of Docker image updates. In order
to cover all the images we need to make them consistent first.

If we keep these images at older versions, we'll be constantly
receiving CVE notifications, so it's easier to automate these updates
even though these images are internal and are never released to the public.
@rdner rdner added enhancement Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team labels Jun 27, 2023
@rdner rdner requested review from michalpristas and cmacknz June 27, 2023 12:16
@rdner rdner self-assigned this Jun 27, 2023
@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Jun 27, 2023
@mergify
Copy link
Contributor

mergify bot commented Jun 27, 2023

This pull request does not have a backport label.
If this is a bug or security fix, could you label this PR @rdner? 🙏.
For such, you'll need to label your PR with:

  • The upcoming major version of the Elastic Stack
  • The upcoming minor version of the Elastic Stack (if you're not pushing a breaking change)

To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-v8./d.0 is the label to automatically backport to the 8./d branch. /d is the digit

@rdner rdner marked this pull request as ready for review June 27, 2023 12:18
@rdner rdner requested review from a team as code owners June 27, 2023 12:18
@elasticmachine
Copy link
Collaborator

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)

@rdner rdner added backport-7.17 Automated backport to the 7.17 branch with mergify backport-v8.8.0 Automated backport with mergify labels Jun 27, 2023
@@ -1,4 +1,4 @@
FROM golang:alpine3.15 as builder
Copy link
Member

Choose a reason for hiding this comment

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

Alpine Linux isn't actually in our support matrix (https://www.elastic.co/support/matrix), so using Debian as the base image here makes more sense anyway.

@elasticmachine
Copy link
Collaborator

elasticmachine commented Jun 27, 2023

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2023-06-27T14:00:25.481+0000

  • Duration: 70 min 19 sec

Test stats 🧪

Test Results
Failed 0
Passed 357
Skipped 117
Total 474

💚 Flaky test report

Tests succeeded.

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • /package : Generate the packages and run the E2E tests.

  • /beats-tester : Run the installation tests with beats-tester.

  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@rdner
Copy link
Member Author

rdner commented Jun 27, 2023

/test metricbeat-goIntegTest

@rdner rdner enabled auto-merge (squash) June 27, 2023 15:18
@jlind23 jlind23 disabled auto-merge June 27, 2023 15:44
@jlind23 jlind23 merged commit 27763e8 into elastic:main Jun 27, 2023
mergify bot pushed a commit that referenced this pull request Jun 27, 2023
We have update CLI that takes care of Docker image updates. In order
to cover all the images we need to make them consistent first.

If we keep these images at older versions, we'll be constantly
receiving CVE notifications, so it's easier to automate these updates
even though these images are internal and are never released to the public.

(cherry picked from commit 27763e8)

# Conflicts:
#	dev-tools/kubernetes/filebeat/Dockerfile.debug
#	dev-tools/kubernetes/heartbeat/Dockerfile.debug
#	dev-tools/kubernetes/metricbeat/Dockerfile.debug
mergify bot pushed a commit that referenced this pull request Jun 27, 2023
We have update CLI that takes care of Docker image updates. In order
to cover all the images we need to make them consistent first.

If we keep these images at older versions, we'll be constantly
receiving CVE notifications, so it's easier to automate these updates
even though these images are internal and are never released to the public.

(cherry picked from commit 27763e8)
rdner added a commit that referenced this pull request Jun 27, 2023
We have update CLI that takes care of Docker image updates. In order
to cover all the images we need to make them consistent first.

If we keep these images at older versions, we'll be constantly
receiving CVE notifications, so it's easier to automate these updates
even though these images are internal and are never released to the public.

(cherry picked from commit 27763e8)

Co-authored-by: Denis <[email protected]>
rdner added a commit that referenced this pull request Jun 28, 2023
…updates (#35929)

* Make all docker images consistent for future updates (#35919)

We have update CLI that takes care of Docker image updates. In order
to cover all the images we need to make them consistent first.

If we keep these images at older versions, we'll be constantly
receiving CVE notifications, so it's easier to automate these updates
even though these images are internal and are never released to the public.

(cherry picked from commit 27763e8)

# Conflicts:
#	dev-tools/kubernetes/filebeat/Dockerfile.debug
#	dev-tools/kubernetes/heartbeat/Dockerfile.debug
#	dev-tools/kubernetes/metricbeat/Dockerfile.debug

* Delete files that are not present in 7.17

---------

Co-authored-by: Denis <[email protected]>
@reakaleek reakaleek mentioned this pull request Jul 19, 2023
6 tasks
Scholar-Li pushed a commit to Scholar-Li/beats that referenced this pull request Feb 5, 2024
We have update CLI that takes care of Docker image updates. In order
to cover all the images we need to make them consistent first.

If we keep these images at older versions, we'll be constantly
receiving CVE notifications, so it's easier to automate these updates
even though these images are internal and are never released to the public.
@rdner rdner deleted the update-docker-images branch November 1, 2024 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-7.17 Automated backport to the 7.17 branch with mergify backport-v8.8.0 Automated backport with mergify enhancement Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants