[8.14] build and push Docker image based on Chainguard base image (backport #13137) #13225
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation/summary
Release two flavours of Docker images:
Please note that we are going to preserve the current
Dockerfile
, so that users will still be able to build their own custom images based onubuntu
: this is needed becausedocker.elastic.co/wolfi/*
is not a public base image, so docker build would fail for unauthenticated users.Implementation details
I changed the Makefiles to support different Dockerfiles when running the docker build generation.
I added a tag for helping testing this in GitHub actions and then be able to push the docker images to an internal docker registry.
I fixed some warning regarding missing files when running the go build in the docker.
Checklist
For functional changes, consider:
How to test these changes
CI
Will create the docker images automatically when working on a feature branch or main/releases
Locally
TBC what kind of tests should be done and how.
Related issues
#13139 will help with testing these changes in Buildkite without the need to be merged.
#12671 is also another in-progress task
This is an automatic backport of pull request #13137 done by Mergify.