jib: Build image failed

Description of the issue: <plugin>

            <groupId>com.google.cloud.tools</groupId>

            <artifactId>jib-maven-plugin</artifactId>

            <executions>
                <execution>
                    <phase>package</phase>
                    <goals>
                        <goal>build</goal>
                    </goals>
                </execution>
            </executions>

            <version>0.9.0</version>

            <configuration>
                <to>
                    <image>registry.hub.docker.com/my-docker-id/my-app</image>
                </to>
            </configuration>

        </plugin>

Expected behavior: Build image failed: Connect to gcr.io/108.177.97.82:443 timed out Steps to reproduce:

Environment:

jib-maven-plugin Configuration: PASTE YOUR pom.xml CONFIGURATION HERE

jib-gradle-plugin Configuration: PASTE YOUR build.gradle CONFIGURATION HERE

Log output:

Additional Information:

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 16 (9 by maintainers)

Most upvoted comments

@tanoak10 Using the from configuration. See the example: https://github.com/GoogleContainerTools/jib/tree/master/jib-maven-plugin#example

For example, to use openjdk:8-jre-alpine, the configuration would look like:

<configuration>
  <from>
    <image>openjdk:8-jre-alpine</image>
  </from>
  ...