jib icon indicating copy to clipboard operation
jib copied to clipboard

Would be nice to have registryMirrors via maven plugin configuration and / or properties like -Djib.from.auth.username

Open ahoehma opened this issue 10 months ago • 1 comments

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

ahoehma avatar Mar 27 '25 14:03 ahoehma

Would be really nice :)

samized avatar Nov 17 '25 08:11 samized