-
Notifications
You must be signed in to change notification settings - Fork 644
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
Any plan to support the new ARG command #334
Comments
if you define the container configuration via the plugin xml, this can already be accomplished. you can also already use maven properties inside a past that, i believe supporting this would require us to parse the Dockerfile to look for these values and re-create a new Dockerfile with everything substituted. actually...now that i think about this, you could probably accomplish this now provided you were always overriding the value on the command line.
in the above case, the plugin would automatically substitute in the property value and docker would just think a default value was specified and use that. this doesn't work, though, if you wanted to have an actual default value there and only substitute it sometimes. |
Our current use case would be around a dockerfile that we manage externally. (not using the auto generated dockerfile feature) docker build 1.9 provides you with a new docker build flag pass ARG. so I would see that a new xml attribute could be create
which would translate to the equivalent docker remote API call for
edit: from the v1.21 API
|
hrm - i didn't see that in the api documentation when i looked the first time. yeah - something like that should definitely be possible then. |
We will consider to support this when we increase the support for external Dockerfiles. Currently these external Dockerfile don't have Maven property substitution (but this is planned for #205) Luckily we postponed this a bit, because we probably would have chosen the same expression syntax as Docker 1.9 for Docker 1.9 support is planned for 0.14 so it might take a bit, though. |
my thought here is while we should be accommodating, we shouldn't bend over backwards to support this and the onus should be on the user to do the right thing. resource filtering in maven is only enabled if you explicitly turn it on, so if someone wants to use the they can still turn have a |
FYU, my thoughts on the ARG support can be found in #409 |
This is based on the work done in #409 (thanks @ balazsmaria !) and allows the usage of ARG in external Dockerfiles. Documentation and external property config hanlder has been updated, too.
* update docker client to latest (8.4.0) * checkstyle * bump docker client to 8.5.0
It would be great if we could provide the maven variables as Docker file build variables.
http://docs.docker.com/engine/reference/builder/#arg
The text was updated successfully, but these errors were encountered: