jib
jib copied to clipboard
Would be nice to have registryMirrors via maven plugin configuration and / or properties like -Djib.from.auth.username
https://github.com/GoogleContainerTools/jib/tree/master/jib-maven-plugin#global-jib-configuration
I try to combine jib-maven-plugin with registry-mirrors in gitlab build / local development.
In this scenario I find the available global-config little bit "unclean".
Maybe something like this improve this:
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
<configuration>
<from>
...
</from>
<to>
....
</to>
<registryMirrors>
<registryMirror>
<registry>registry-1.docker.io</registry>
<mirrors>
<mirror>
<id>gcr.io</id>
<url>mirror.gcr.io</url>
</mirror>
<mirror>
<id>company</id>
<url>cr.company.cloud</url>
</mirror>
</mirrors>
</registryMirror>
</registryMirrors>
</configuration>
</plugin>
The with properties similar to -Djib.from.auth.username .. I would like to define the auth stuff:
-Djib.registryMirror.[id].username and -Djib.registryMirror.[id].password
Would be really nice :)