spotify / docker-maven-plugin

INACTIVE: A maven plugin for Docker
Apache License 2.0
2.66k stars 575 forks source link

Option to update base image before building #329

Closed bgoldowsky closed 7 years ago

bgoldowsky commented 7 years ago

Description

It would be convenient to have the option of updating the base image before building, equivalent to the command line: docker build --pull

This could be selected for example with -DpullImage .

albuch commented 7 years ago

There is an option -DpullOnBuild=<true|false>. which already does this.

pullOnBuild (Default: false) Flag to attempt to pull base images even if older images exists locally. Sends the equivalent of --pull=true to Docker daemon when building the image. User property: pullOnBuild

You can check the full list of parameters with the help command: mvn com.spotify:docker-maven-plugin:<version>:help -Ddetail=true