using Maven setting.xml to pass build arguments to fabric8io/docker-maven-plugin

1.1k views Asked by At

we are using fabric8io/docker-maven-plugin to build dockers in our application. because we are sitting behind a corporate firewall we need to setup a proxy for our build.

as part of our docker files, we defined ARG HTTPS_PROXY.

now to build our docker we need to pass the proxy argument using the mvn command line as:

mvn clean install -Ddocker.buildArg.http_proxy=<proxy> 
-Ddocker.buildArg.https_proxy=<proxy> 

I am looking for a way to set up this configuration in the maven setting xml. to make it easier.

any suggestions will be appreciated

0

There are 0 answers