-
Notifications
You must be signed in to change notification settings - Fork 56
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
feat: remove project root from the docker image #1460
feat: remove project root from the docker image #1460
Conversation
8235e9e
to
2d97961
Compare
Quality Gate passedIssues Measures |
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.
to be honest, I don't quite get the issue. The Dockerfile
only copies the runtime JAR, the opentelemetry JAR and the additional files, i.e. legal docs?
the root of the problem is that, if you don't specify the you can try but checking the difference of the filesystem of the images built by these two commands: # this will contain everything
docker build . -f edc-controlplane/edc-controlplane-postgresql-azure-vault/build/resources/docker/Dockerfile
# this will contain only what's needed
docker build edc-controlplane/edc-controlplane-postgresql-azure-vault -f edc-controlplane/edc-controlplane-postgresql-azure-vault/build/resources/docker/Dockerfile --build-arg "ADDITIONAL_FILES=build/legal/*" |
yep, that is a problem indeed, but we should never have a docker build without |
if you look at the changelog, in the |
WHAT
Avoid to put the whole content of the project into the docker image, aligning the actions image build process with the
dockerize
task.WHY
optimization
FURTHER NOTES
further cleanups:
do_push
parameter from thepublish-docker-image
actiondownloadOtel
task using a more "gradle-y" approachCloses #1436