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

Use a default for Dockerfile base image #193

Merged
merged 1 commit into from
Jan 6, 2025
Merged

Conversation

andyasp
Copy link
Collaborator

@andyasp andyasp commented Jan 6, 2025

A Docker warning appears when building a rollout-operator image:

=> WARN: InvalidDefaultArgInFrom: Default value for ARG ${BASEIMAGE} results in empty or invalid base image name (line 13)

When using the Makefile this isn't an issue since the arguments are always supplied, but to make the warning go away I moved the defaults from the Makefile to the Dockerfile. Similarly, BUILDTARGET defaults to rollout-operator so it also doesn't need to be specified when building the standard image.

Related documentation is here: https://docs.docker.com/reference/build-checks/invalid-default-arg-in-from/

@andyasp andyasp merged commit e5d5b19 into main Jan 6, 2025
6 checks passed
@andyasp andyasp deleted the aasp/default-base-image-arg branch January 6, 2025 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants