-
Notifications
You must be signed in to change notification settings - Fork 3
Provide defaults for key args in the Dockerfile #12
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
Comments
The docker-compose-ci repository is to be integrated into other repositories as a Git submodule. It uses "Make" as main entry point and command line interface. The Makefile contained in this repository must be called up from a Makefile in the other repository. |
Acknowledged, and understood. However, I'm saying that when called from a proper clone of a repo such as the Semantic MediaWiki extension, after executing the following commands:
you get this warning in the initial output:
Perhaps there should be defaults added to the Dockerfile? OrMaybe it just doesn't matter, and we don't want to disturb the image layer caching for no reason. The image tag that gets pulled with the warning is semanticmediawiki:test-1.43- |
I get:
which is taken from https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/master/Makefile#L14 Are you running "make ci" in |
I am running This is part of the output to the console as it is in the initial .build make target. Note the values for MW_VERSION and PHP_VERSION are being set (from .env), but still the WARNING is produced about an invalid base image name.
|
Warning
WARN: InvalidDefaultArgInFrom: Default value for ARG gesinn/mediawiki-ci:${MW_VERSION}-php${PHP_VERSION} results in empty or invalid base image name (line 3)
This warning was seen when running make targets from a Semantic MediaWiki checkout - even with an
.env
file such as below:Maybe I did something wrong - because clearly the Semantic MediaWiki Makefile includes
.env
on line 1 AND goes on to declare and set defaults for the Make variables (which have lower precedence / are supposed to be overridden by.env
)This issue proposes to add default values to the docker-compose-ci Dockerfile variables MW_VERSION and PHP_VERSION on lines 1 and 2 to avoid any warning.
However, this proposal may not be desirable for several reasons:
.env
file or using a CLI override such asmake MW_VERSION=1.43 PHP_VERSION=8.2 ci
and not be interested in building with a "default" image that only gets stale quickly.If this issue in not reproducible; or is not desirable, please close it.
The text was updated successfully, but these errors were encountered: