Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error message Unknown host gcr.io #525

Closed
fscheel opened this issue Jul 10, 2018 · 14 comments
Closed

Error message Unknown host gcr.io #525

fscheel opened this issue Jul 10, 2018 · 14 comments
Assignees

Comments

@fscheel
Copy link

fscheel commented Jul 10, 2018

Description of the issue:
I'm trying to use jib in a maven project. However, during building with jib:dockerBuild, I get the error message Build to Docker daemon failed, perhaps you should make sure that the registry you configured exists/is spelled properly: Unknown host gcr.io. This is usually a sign for a program not using our corporate proxy, but maven is configured to use the proxy and can download the plugin just fine.

Expected behavior:
Have the build work when running mvn jib:dockerBuild.

Steps to reproduce:
Run mvn jib:dockerBuild. I assume a corporate proxy is involved in the error.

Environment:

  • Windows 7
  • Maven 3.3.9

jib-maven-plugin Configuration:

            <plugin>
                <groupId>com.google.cloud.tools</groupId>
                <artifactId>jib-maven-plugin</artifactId>
                <version>0.9.2</version>
                <configuration>
                    <to>
                        <image>phycus</image>
                    </to>
                </configuration>
            </plugin>

Log output:

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building service-haplotype-frequency-curation 0.0.1
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- jib-maven-plugin:0.9.2:dockerBuild (default-cli) @ service-haplotype-frequency-curation ---
[WARNING] Base image 'gcr.io/distroless/java' does not use a specific image digest - build may not be reproducible
[INFO] 
[INFO] Containerizing application to Docker daemon as phycus...
[INFO] 
[INFO] Getting base image gcr.io/distroless/java...
[INFO] Building dependencies layer...
[INFO] Building resources layer...
[INFO] Building classes layer...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.368 s
[INFO] Finished at: 2018-07-10T15:42:26+02:00
[INFO] Final Memory: 21M/264M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:0.9.2:dockerBuild (default-cli) on project service-haplotype-frequency-curation: Build to Docker daemon failed, perhaps you should make sure that the registry you configured exists/is spelled properly: Unknown host gcr.io -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
@coollog
Copy link
Contributor

coollog commented Jul 10, 2018

Hi @fscheel, you're probably right that it is an issue with your corporate proxy. Since Jib uses gcr.io/distroless/java as the default base image, you might not be able to reach gcr.io in order to pull that base image. You would have to set a custom base image to use with the from configuration.

@fscheel
Copy link
Author

fscheel commented Jul 10, 2018

A call to docker pull gcr.io/distroless/java works fine. Docker images shows (the change date seems strange...)

gcr.io/distroless/java   latest              cf85de878c94        48 years ago     118MB

But it still wants to pull the image and can't reach the server.

@coollog
Copy link
Contributor

coollog commented Jul 10, 2018

Hmm, okay, that means that there's an issue with how Jib handles the connection through your corporate proxy then. Can you post the stacktrace that you get from running with the -X flag (like mvn jib:dockerBuild -X)?

@fscheel
Copy link
Author

fscheel commented Jul 10, 2018

Sure:

Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47+01:00)
Maven home: C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2017.3.4\plugins\maven\lib\maven3
Java version: 1.8.0_162, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_162\jre
Default locale: de_DE, platform encoding: UTF-8
OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"
[DEBUG] Created new class realm maven.api
[DEBUG] Importing foreign packages into class realm maven.api
[DEBUG]   Imported: javax.enterprise.inject.* < plexus.core
[DEBUG]   Imported: javax.enterprise.util.* < plexus.core
[DEBUG]   Imported: javax.inject.* < plexus.core
[DEBUG]   Imported: org.apache.maven.* < plexus.core
[DEBUG]   Imported: org.apache.maven.artifact < plexus.core
[DEBUG]   Imported: org.apache.maven.classrealm < plexus.core
[DEBUG]   Imported: org.apache.maven.cli < plexus.core
[DEBUG]   Imported: org.apache.maven.configuration < plexus.core
[DEBUG]   Imported: org.apache.maven.exception < plexus.core
[DEBUG]   Imported: org.apache.maven.execution < plexus.core
[DEBUG]   Imported: org.apache.maven.execution.scope < plexus.core
[DEBUG]   Imported: org.apache.maven.lifecycle < plexus.core
[DEBUG]   Imported: org.apache.maven.model < plexus.core
[DEBUG]   Imported: org.apache.maven.monitor < plexus.core
[DEBUG]   Imported: org.apache.maven.plugin < plexus.core
[DEBUG]   Imported: org.apache.maven.profiles < plexus.core
[DEBUG]   Imported: org.apache.maven.project < plexus.core
[DEBUG]   Imported: org.apache.maven.reporting < plexus.core
[DEBUG]   Imported: org.apache.maven.repository < plexus.core
[DEBUG]   Imported: org.apache.maven.rtinfo < plexus.core
[DEBUG]   Imported: org.apache.maven.settings < plexus.core
[DEBUG]   Imported: org.apache.maven.toolchain < plexus.core
[DEBUG]   Imported: org.apache.maven.usability < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.* < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.authentication < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.authorization < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.events < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.observers < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.proxy < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.repository < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.resource < plexus.core
[DEBUG]   Imported: org.codehaus.classworlds < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.* < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.classworlds < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.component < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.configuration < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.container < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.context < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.lifecycle < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.logging < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.personality < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.util.xml.Xpp3Dom < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlPullParser < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlPullParserException < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlSerializer < plexus.core
[DEBUG]   Imported: org.eclipse.aether.* < plexus.core
[DEBUG]   Imported: org.eclipse.aether.artifact < plexus.core
[DEBUG]   Imported: org.eclipse.aether.collection < plexus.core
[DEBUG]   Imported: org.eclipse.aether.deployment < plexus.core
[DEBUG]   Imported: org.eclipse.aether.graph < plexus.core
[DEBUG]   Imported: org.eclipse.aether.impl < plexus.core
[DEBUG]   Imported: org.eclipse.aether.installation < plexus.core
[DEBUG]   Imported: org.eclipse.aether.internal.impl < plexus.core
[DEBUG]   Imported: org.eclipse.aether.metadata < plexus.core
[DEBUG]   Imported: org.eclipse.aether.repository < plexus.core
[DEBUG]   Imported: org.eclipse.aether.resolution < plexus.core
[DEBUG]   Imported: org.eclipse.aether.spi < plexus.core
[DEBUG]   Imported: org.eclipse.aether.transfer < plexus.core
[DEBUG]   Imported: org.eclipse.aether.version < plexus.core
[DEBUG]   Imported: org.slf4j.* < plexus.core
[DEBUG]   Imported: org.slf4j.helpers.* < plexus.core
[DEBUG]   Imported: org.slf4j.spi.* < plexus.core
[DEBUG] Populating class realm maven.api
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2017.3.4\plugins\maven\lib\maven3\conf\settings.xml
[DEBUG] Reading user settings from C:\Users\scheel\.m2\settings.xml
[DEBUG] Reading global toolchains from C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2017.3.4\plugins\maven\lib\maven3\conf\toolchains.xml
[DEBUG] Reading user toolchains from C:\Users\scheel\.m2\toolchains.xml
[DEBUG] Using local repository at C:\Users\scheel\.m2\repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for C:\Users\scheel\.m2\repository
[INFO] Scanning for projects...
[DEBUG] Extension realms for project org.nmdp:service-haplotype-frequency-curation:jar:0.0.1: (none)
[DEBUG] Looking up lifecyle mappings for packaging jar from ClassRealm[plexus.core, parent: null]
[DEBUG] Extension realms for project org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE: (none)
[DEBUG] Looking up lifecyle mappings for packaging pom from ClassRealm[plexus.core, parent: null]
[DEBUG] Extension realms for project org.springframework.boot:spring-boot-dependencies:pom:1.3.5.RELEASE: (none)
[DEBUG] Looking up lifecyle mappings for packaging pom from ClassRealm[plexus.core, parent: null]
[DEBUG] Resolving plugin prefix jib from [org.apache.maven.plugins, org.codehaus.mojo]
[DEBUG] Resolved plugin prefix jib to com.google.cloud.tools:jib-maven-plugin from POM org.nmdp:service-haplotype-frequency-curation:jar:0.0.1
[DEBUG] === REACTOR BUILD PLAN ================================================
[DEBUG] Project: org.nmdp:service-haplotype-frequency-curation:jar:0.0.1
[DEBUG] Tasks:   [jib:dockerBuild]
[DEBUG] Style:   Regular
[DEBUG] =======================================================================
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building service-haplotype-frequency-curation 0.0.1
[INFO] ------------------------------------------------------------------------
[DEBUG] Resolving plugin prefix jib from [org.apache.maven.plugins, org.codehaus.mojo]
[DEBUG] Resolved plugin prefix jib to com.google.cloud.tools:jib-maven-plugin from POM org.nmdp:service-haplotype-frequency-curation:jar:0.0.1
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] === PROJECT BUILD PLAN ================================================
[DEBUG] Project:       org.nmdp:service-haplotype-frequency-curation:0.0.1
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): [runtime+system]
[DEBUG] Repositories (dependencies): [central (https://repo.maven.apache.org/maven2, default, releases)]
[DEBUG] Repositories (plugins)     : [central (https://repo.maven.apache.org/maven2, default, releases)]
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          com.google.cloud.tools:jib-maven-plugin:0.9.2:dockerBuild (default-cli)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <allowInsecureRegistries default-value="false"/>
  <project default-value="${project}"/>
  <session default-value="${session}"/>
  <to>
    <image>phycus</image>${image}</to>
  <useOnlyProjectCache default-value="false"/>
</configuration>
[DEBUG] =======================================================================
[DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=1, ConflictMarker.markTime=1, ConflictMarker.nodeCount=239, ConflictIdSorter.graphTime=2, ConflictIdSorter.topsortTime=0, ConflictIdSorter.conflictIdCount=74, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=8, ConflictResolver.conflictItemCount=170, DefaultDependencyCollector.collectTime=352, DefaultDependencyCollector.transformTime=14}
[DEBUG] org.nmdp:service-haplotype-frequency-curation:jar:0.0.1
[DEBUG]    org.springframework.boot:spring-boot-starter-web:jar:1.3.5.RELEASE:compile
[DEBUG]       org.springframework.boot:spring-boot-starter:jar:1.3.5.RELEASE:compile
[DEBUG]          org.springframework.boot:spring-boot:jar:1.3.5.RELEASE:compile
[DEBUG]          org.springframework.boot:spring-boot-autoconfigure:jar:1.3.5.RELEASE:compile
[DEBUG]          org.springframework.boot:spring-boot-starter-logging:jar:1.3.5.RELEASE:compile
[DEBUG]             ch.qos.logback:logback-classic:jar:1.1.7:compile
[DEBUG]                ch.qos.logback:logback-core:jar:1.1.7:compile
[DEBUG]             org.slf4j:jul-to-slf4j:jar:1.7.21:compile
[DEBUG]             org.slf4j:log4j-over-slf4j:jar:1.7.21:compile
[DEBUG]          org.yaml:snakeyaml:jar:1.16:runtime
[DEBUG]       org.springframework.boot:spring-boot-starter-tomcat:jar:1.3.5.RELEASE:compile
[DEBUG]          org.apache.tomcat.embed:tomcat-embed-core:jar:8.0.33:compile
[DEBUG]          org.apache.tomcat.embed:tomcat-embed-el:jar:8.0.33:compile
[DEBUG]          org.apache.tomcat.embed:tomcat-embed-logging-juli:jar:8.0.33:compile
[DEBUG]          org.apache.tomcat.embed:tomcat-embed-websocket:jar:8.0.33:compile
[DEBUG]       org.springframework.boot:spring-boot-starter-validation:jar:1.3.5.RELEASE:compile
[DEBUG]          org.hibernate:hibernate-validator:jar:5.2.4.Final:compile
[DEBUG]       com.fasterxml.jackson.core:jackson-databind:jar:2.6.6:compile
[DEBUG]          com.fasterxml.jackson.core:jackson-annotations:jar:2.6.6:compile (version managed from 2.6.0 by org.springframework.boot:spring-boot-dependencies:1.3.5.RELEASE)
[DEBUG]       org.springframework:spring-web:jar:4.2.6.RELEASE:compile
[DEBUG]       org.springframework:spring-webmvc:jar:4.2.6.RELEASE:compile
[DEBUG]          org.springframework:spring-expression:jar:4.2.6.RELEASE:compile
[DEBUG]    mysql:mysql-connector-java:jar:5.1.38:runtime
[DEBUG]    org.springframework.data:spring-data-jpa:jar:1.9.4.RELEASE:compile
[DEBUG]       org.springframework.data:spring-data-commons:jar:1.11.4.RELEASE:compile
[DEBUG]       org.springframework:spring-orm:jar:4.2.6.RELEASE:compile (version managed from 4.1.9.RELEASE by org.springframework:spring-framework-bom:4.2.6.RELEASE)
[DEBUG]          org.springframework:spring-jdbc:jar:4.2.6.RELEASE:compile
[DEBUG]       org.springframework:spring-context:jar:4.2.6.RELEASE:compile (version managed from 4.1.9.RELEASE by org.springframework:spring-framework-bom:4.2.6.RELEASE)
[DEBUG]       org.springframework:spring-aop:jar:4.2.6.RELEASE:compile (version managed from 4.1.9.RELEASE by org.springframework:spring-framework-bom:4.2.6.RELEASE)
[DEBUG]          aopalliance:aopalliance:jar:1.0:compile
[DEBUG]       org.springframework:spring-tx:jar:4.2.6.RELEASE:compile (version managed from 4.1.9.RELEASE by org.springframework:spring-framework-bom:4.2.6.RELEASE)
[DEBUG]       org.springframework:spring-beans:jar:4.2.6.RELEASE:compile (version managed from 4.1.9.RELEASE by org.springframework:spring-framework-bom:4.2.6.RELEASE)
[DEBUG]       org.springframework:spring-core:jar:4.2.6.RELEASE:compile (version managed from 4.1.9.RELEASE by org.springframework.boot:spring-boot-starter-parent:[unknown-version])
[DEBUG]       org.aspectj:aspectjrt:jar:1.8.9:compile (version managed from 1.8.7 by org.springframework.boot:spring-boot-dependencies:1.3.5.RELEASE)
[DEBUG]       org.slf4j:slf4j-api:jar:1.7.21:compile (version managed from 1.7.13 by org.springframework.boot:spring-boot-dependencies:1.3.5.RELEASE)
[DEBUG]       org.slf4j:jcl-over-slf4j:jar:1.7.21:compile (version managed from 1.7.13 by org.springframework.boot:spring-boot-dependencies:1.3.5.RELEASE)
[DEBUG]    org.springframework.boot:spring-boot-starter-data-jpa:jar:1.3.5.RELEASE:compile
[DEBUG]       org.springframework.boot:spring-boot-starter-aop:jar:1.3.5.RELEASE:compile
[DEBUG]          org.aspectj:aspectjweaver:jar:1.8.9:compile
[DEBUG]       org.springframework.boot:spring-boot-starter-jdbc:jar:1.3.5.RELEASE:compile
[DEBUG]          org.apache.tomcat:tomcat-jdbc:jar:8.0.33:compile
[DEBUG]             org.apache.tomcat:tomcat-juli:jar:8.0.33:compile
[DEBUG]       org.hibernate:hibernate-entitymanager:jar:4.3.11.Final:compile
[DEBUG]          org.jboss.logging:jboss-logging:jar:3.3.0.Final:compile (version managed from 3.1.3.GA by org.springframework.boot:spring-boot-dependencies:1.3.5.RELEASE)
[DEBUG]          org.jboss.logging:jboss-logging-annotations:jar:1.2.0.Beta1:compile
[DEBUG]          org.hibernate:hibernate-core:jar:4.3.11.Final:compile
[DEBUG]             antlr:antlr:jar:2.7.7:compile
[DEBUG]             org.jboss:jandex:jar:1.1.0.Final:compile
[DEBUG]          dom4j:dom4j:jar:1.6.1:compile
[DEBUG]             xml-apis:xml-apis:jar:1.0.b2:compile
[DEBUG]          org.hibernate.common:hibernate-commons-annotations:jar:4.0.5.Final:compile
[DEBUG]          org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar:1.0.0.Final:compile
[DEBUG]          org.javassist:javassist:jar:3.18.1-GA:compile
[DEBUG]       javax.transaction:javax.transaction-api:jar:1.2:compile
[DEBUG]       org.springframework:spring-aspects:jar:4.2.6.RELEASE:compile
[DEBUG]    io.springfox:springfox-swagger2:jar:2.7.0:compile
[DEBUG]       io.swagger:swagger-annotations:jar:1.5.13:compile
[DEBUG]       io.swagger:swagger-models:jar:1.5.13:compile
[DEBUG]       io.springfox:springfox-spi:jar:2.7.0:compile
[DEBUG]          io.springfox:springfox-core:jar:2.7.0:compile
[DEBUG]             net.bytebuddy:byte-buddy:jar:1.6.14:compile
[DEBUG]       io.springfox:springfox-schema:jar:2.7.0:compile
[DEBUG]       io.springfox:springfox-swagger-common:jar:2.7.0:compile
[DEBUG]       io.springfox:springfox-spring-web:jar:2.7.0:compile
[DEBUG]          org.reflections:reflections:jar:0.9.11:compile
[DEBUG]       com.google.guava:guava:jar:18.0:compile
[DEBUG]       com.fasterxml:classmate:jar:1.3.3:compile
[DEBUG]       org.springframework.plugin:spring-plugin-core:jar:1.2.0.RELEASE:compile
[DEBUG]       org.springframework.plugin:spring-plugin-metadata:jar:1.2.0.RELEASE:compile
[DEBUG]       org.mapstruct:mapstruct:jar:1.1.0.Final:compile
[DEBUG]    io.springfox:springfox-swagger-ui:jar:2.7.0:compile
[DEBUG]    com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.6.6:compile
[DEBUG]       com.fasterxml.jackson.core:jackson-core:jar:2.6.6:compile
[DEBUG]    javax.validation:validation-api:jar:1.1.0.Final:provided
[INFO] 
[INFO] --- jib-maven-plugin:0.9.2:dockerBuild (default-cli) @ service-haplotype-frequency-curation ---
[DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=0, ConflictMarker.markTime=0, ConflictMarker.nodeCount=107, ConflictIdSorter.graphTime=0, ConflictIdSorter.topsortTime=0, ConflictIdSorter.conflictIdCount=51, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=2, ConflictResolver.conflictItemCount=104, DefaultDependencyCollector.collectTime=276, DefaultDependencyCollector.transformTime=2}
[DEBUG] com.google.cloud.tools:jib-maven-plugin:jar:0.9.2:
[DEBUG]    com.google.http-client:google-http-client:jar:1.23.0:compile
[DEBUG]       com.google.code.findbugs:jsr305:jar:1.3.9:compile
[DEBUG]       org.apache.httpcomponents:httpclient:jar:4.0.1:compile
[DEBUG]          org.apache.httpcomponents:httpcore:jar:4.0.1:compile
[DEBUG]          commons-logging:commons-logging:jar:1.1.1:compile
[DEBUG]          commons-codec:commons-codec:jar:1.3:compile
[DEBUG]    org.apache.commons:commons-compress:jar:1.15:compile
[DEBUG]       org.objenesis:objenesis:jar:2.6:compile
[DEBUG]    com.google.guava:guava:jar:23.5-jre:compile
[DEBUG]       org.checkerframework:checker-qual:jar:2.0.0:compile
[DEBUG]       com.google.errorprone:error_prone_annotations:jar:2.0.18:compile
[DEBUG]       com.google.j2objc:j2objc-annotations:jar:1.1:compile
[DEBUG]       org.codehaus.mojo:animal-sniffer-annotations:jar:1.14:compile
[DEBUG]    com.fasterxml.jackson.core:jackson-databind:jar:2.9.2:compile
[DEBUG]       com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0:compile
[DEBUG]       com.fasterxml.jackson.core:jackson-core:jar:2.9.2:compile
[DEBUG]    org.slf4j:slf4j-api:jar:1.7.25:compile
[DEBUG]    org.javassist:javassist:jar:3.22.0-GA:compile
[DEBUG]    org.apache.maven:maven-plugin-api:jar:3.5.2:compile
[DEBUG]       org.apache.maven:maven-model:jar:3.5.2:compile
[DEBUG]       org.apache.maven:maven-artifact:jar:3.5.2:compile
[DEBUG]       org.eclipse.sisu:org.eclipse.sisu.plexus:jar:0.3.3:compile
[DEBUG]          javax.enterprise:cdi-api:jar:1.0:compile
[DEBUG]             javax.annotation:jsr250-api:jar:1.0:compile
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:3.1.0:compile
[DEBUG]       org.codehaus.plexus:plexus-classworlds:jar:2.5.2:compile
[DEBUG]    org.apache.maven:maven-core:jar:3.5.2:compile
[DEBUG]       org.apache.maven:maven-settings:jar:3.5.2:compile
[DEBUG]       org.apache.maven:maven-settings-builder:jar:3.5.2:compile
[DEBUG]          org.codehaus.plexus:plexus-interpolation:jar:1.24:compile
[DEBUG]          org.sonatype.plexus:plexus-sec-dispatcher:jar:1.4:compile
[DEBUG]             org.sonatype.plexus:plexus-cipher:jar:1.4:compile
[DEBUG]       org.apache.maven:maven-builder-support:jar:3.5.2:compile
[DEBUG]       org.apache.maven:maven-repository-metadata:jar:3.5.2:compile
[DEBUG]       org.apache.maven:maven-model-builder:jar:3.5.2:compile
[DEBUG]       org.apache.maven:maven-resolver-provider:jar:3.5.2:compile
[DEBUG]       org.apache.maven.resolver:maven-resolver-impl:jar:1.1.0:compile
[DEBUG]       org.apache.maven.resolver:maven-resolver-api:jar:1.1.0:compile
[DEBUG]       org.apache.maven.resolver:maven-resolver-spi:jar:1.1.0:compile
[DEBUG]       org.apache.maven.resolver:maven-resolver-util:jar:1.1.0:compile
[DEBUG]       org.apache.maven.shared:maven-shared-utils:jar:3.1.0:compile
[DEBUG]          commons-io:commons-io:jar:2.5:compile
[DEBUG]       org.eclipse.sisu:org.eclipse.sisu.inject:jar:0.3.3:compile
[DEBUG]       com.google.inject:guice:jar:no_aop:4.0:compile
[DEBUG]          aopalliance:aopalliance:jar:1.0:compile
[DEBUG]       javax.inject:javax.inject:jar:1:compile
[DEBUG]       org.codehaus.plexus:plexus-component-annotations:jar:1.7.1:compile
[DEBUG]       org.apache.commons:commons-lang3:jar:3.5:compile
[DEBUG]    org.apache.maven.shared:maven-verifier:jar:1.6:compile
[DEBUG]       junit:junit:jar:3.8.2:compile
[DEBUG] Created new class realm plugin>com.google.cloud.tools:jib-maven-plugin:0.9.2
[DEBUG] Importing foreign packages into class realm plugin>com.google.cloud.tools:jib-maven-plugin:0.9.2
[DEBUG]   Imported:  < maven.api
[DEBUG] Populating class realm plugin>com.google.cloud.tools:jib-maven-plugin:0.9.2
[DEBUG]   Included: com.google.cloud.tools:jib-maven-plugin:jar:0.9.2
[DEBUG]   Included: com.google.http-client:google-http-client:jar:1.23.0
[DEBUG]   Included: com.google.code.findbugs:jsr305:jar:1.3.9
[DEBUG]   Included: org.apache.httpcomponents:httpclient:jar:4.0.1
[DEBUG]   Included: org.apache.httpcomponents:httpcore:jar:4.0.1
[DEBUG]   Included: commons-logging:commons-logging:jar:1.1.1
[DEBUG]   Included: commons-codec:commons-codec:jar:1.3
[DEBUG]   Included: org.apache.commons:commons-compress:jar:1.15
[DEBUG]   Included: org.objenesis:objenesis:jar:2.6
[DEBUG]   Included: com.google.guava:guava:jar:23.5-jre
[DEBUG]   Included: org.checkerframework:checker-qual:jar:2.0.0
[DEBUG]   Included: com.google.errorprone:error_prone_annotations:jar:2.0.18
[DEBUG]   Included: com.google.j2objc:j2objc-annotations:jar:1.1
[DEBUG]   Included: org.codehaus.mojo:animal-sniffer-annotations:jar:1.14
[DEBUG]   Included: com.fasterxml.jackson.core:jackson-databind:jar:2.9.2
[DEBUG]   Included: com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0
[DEBUG]   Included: com.fasterxml.jackson.core:jackson-core:jar:2.9.2
[DEBUG]   Included: org.javassist:javassist:jar:3.22.0-GA
[DEBUG]   Included: javax.enterprise:cdi-api:jar:1.0
[DEBUG]   Included: javax.annotation:jsr250-api:jar:1.0
[DEBUG]   Included: org.codehaus.plexus:plexus-utils:jar:3.1.0
[DEBUG]   Included: org.codehaus.plexus:plexus-interpolation:jar:1.24
[DEBUG]   Included: org.sonatype.plexus:plexus-sec-dispatcher:jar:1.4
[DEBUG]   Included: org.sonatype.plexus:plexus-cipher:jar:1.4
[DEBUG]   Included: org.apache.maven:maven-builder-support:jar:3.5.2
[DEBUG]   Included: org.apache.maven:maven-resolver-provider:jar:3.5.2
[DEBUG]   Included: org.apache.maven.resolver:maven-resolver-impl:jar:1.1.0
[DEBUG]   Included: org.apache.maven.resolver:maven-resolver-api:jar:1.1.0
[DEBUG]   Included: org.apache.maven.resolver:maven-resolver-spi:jar:1.1.0
[DEBUG]   Included: org.apache.maven.resolver:maven-resolver-util:jar:1.1.0
[DEBUG]   Included: org.apache.maven.shared:maven-shared-utils:jar:3.1.0
[DEBUG]   Included: commons-io:commons-io:jar:2.5
[DEBUG]   Included: org.eclipse.sisu:org.eclipse.sisu.inject:jar:0.3.3
[DEBUG]   Included: com.google.inject:guice:jar:no_aop:4.0
[DEBUG]   Included: aopalliance:aopalliance:jar:1.0
[DEBUG]   Included: org.codehaus.plexus:plexus-component-annotations:jar:1.7.1
[DEBUG]   Included: org.apache.commons:commons-lang3:jar:3.5
[DEBUG]   Included: org.apache.maven.shared:maven-verifier:jar:1.6
[DEBUG]   Included: junit:junit:jar:3.8.2
[DEBUG] Configuring mojo com.google.cloud.tools:jib-maven-plugin:0.9.2:dockerBuild from plugin realm ClassRealm[plugin>com.google.cloud.tools:jib-maven-plugin:0.9.2, parent: sun.misc.Launcher$AppClassLoader@18b4aac2]
[DEBUG] Configuring mojo 'com.google.cloud.tools:jib-maven-plugin:0.9.2:dockerBuild' with basic configurator -->
[DEBUG]   (f) allowInsecureRegistries = false
[DEBUG]   (f) project = MavenProject: org.nmdp:service-haplotype-frequency-curation:0.0.1 @ C:\Users\scheel\Source\Repos\service-frequency-curation\pom.xml
[DEBUG]   (f) session = org.apache.maven.execution.MavenSession@64d7b720
[DEBUG]   (f) image = phycus
[DEBUG]   (f) to = com.google.cloud.tools.jib.maven.JibPluginConfiguration$ToConfiguration@5bb3d42d
[DEBUG]   (f) useOnlyProjectCache = false
[DEBUG] -- end configuration --
[DEBUG] Searching for main class... Add a 'mainClass' configuration to 'jib-maven-plugin' to improve build speed.
[DEBUG] Could not find a valid main class specified in 'maven-jar-plugin'; attempting to infer main class.
[WARNING] Base image 'gcr.io/distroless/java' does not use a specific image digest - build may not be reproducible
[INFO] 
[INFO] Containerizing application to Docker daemon as phycus...
[DEBUG] Containerizing application with the following files:
[DEBUG] 	Classes:
[DEBUG] 		C:\Users\scheel\Source\Repos\service-frequency-curation\target\classes\org
[DEBUG] 	Resources:
[DEBUG] 		C:\Users\scheel\Source\Repos\service-frequency-curation\target\classes\application.properties
[DEBUG] 		C:\Users\scheel\Source\Repos\service-frequency-curation\target\classes\io
[DEBUG] 	Dependencies:
[DEBUG] 		C:\Users\scheel\.m2\repository\antlr\antlr\2.7.7\antlr-2.7.7.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\ch\qos\logback\logback-classic\1.1.7\logback-classic-1.1.7.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\ch\qos\logback\logback-core\1.1.7\logback-core-1.1.7.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\com\fasterxml\classmate\1.3.3\classmate-1.3.3.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.6.6\jackson-annotations-2.6.6.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\com\fasterxml\jackson\core\jackson-core\2.6.6\jackson-core-2.6.6.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.6.6\jackson-databind-2.6.6.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.6.6\jackson-datatype-jsr310-2.6.6.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\com\google\guava\guava\18.0\guava-18.0.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\io\springfox\springfox-core\2.7.0\springfox-core-2.7.0.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\io\springfox\springfox-schema\2.7.0\springfox-schema-2.7.0.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\io\springfox\springfox-spi\2.7.0\springfox-spi-2.7.0.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\io\springfox\springfox-spring-web\2.7.0\springfox-spring-web-2.7.0.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\io\springfox\springfox-swagger-common\2.7.0\springfox-swagger-common-2.7.0.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\io\springfox\springfox-swagger-ui\2.7.0\springfox-swagger-ui-2.7.0.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\io\springfox\springfox-swagger2\2.7.0\springfox-swagger2-2.7.0.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\io\swagger\swagger-annotations\1.5.13\swagger-annotations-1.5.13.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\io\swagger\swagger-models\1.5.13\swagger-models-1.5.13.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\javax\transaction\javax.transaction-api\1.2\javax.transaction-api-1.2.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\mysql\mysql-connector-java\5.1.38\mysql-connector-java-5.1.38.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\net\bytebuddy\byte-buddy\1.6.14\byte-buddy-1.6.14.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\apache\tomcat\embed\tomcat-embed-core\8.0.33\tomcat-embed-core-8.0.33.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\apache\tomcat\embed\tomcat-embed-el\8.0.33\tomcat-embed-el-8.0.33.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\apache\tomcat\embed\tomcat-embed-logging-juli\8.0.33\tomcat-embed-logging-juli-8.0.33.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\apache\tomcat\embed\tomcat-embed-websocket\8.0.33\tomcat-embed-websocket-8.0.33.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\apache\tomcat\tomcat-jdbc\8.0.33\tomcat-jdbc-8.0.33.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\apache\tomcat\tomcat-juli\8.0.33\tomcat-juli-8.0.33.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\aspectj\aspectjrt\1.8.9\aspectjrt-1.8.9.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\aspectj\aspectjweaver\1.8.9\aspectjweaver-1.8.9.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\hibernate\common\hibernate-commons-annotations\4.0.5.Final\hibernate-commons-annotations-4.0.5.Final.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\hibernate\hibernate-core\4.3.11.Final\hibernate-core-4.3.11.Final.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\hibernate\hibernate-entitymanager\4.3.11.Final\hibernate-entitymanager-4.3.11.Final.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\hibernate\hibernate-validator\5.2.4.Final\hibernate-validator-5.2.4.Final.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\hibernate\javax\persistence\hibernate-jpa-2.1-api\1.0.0.Final\hibernate-jpa-2.1-api-1.0.0.Final.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\javassist\javassist\3.18.1-GA\javassist-3.18.1-GA.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\jboss\jandex\1.1.0.Final\jandex-1.1.0.Final.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\jboss\logging\jboss-logging-annotations\1.2.0.Beta1\jboss-logging-annotations-1.2.0.Beta1.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\jboss\logging\jboss-logging\3.3.0.Final\jboss-logging-3.3.0.Final.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\mapstruct\mapstruct\1.1.0.Final\mapstruct-1.1.0.Final.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\reflections\reflections\0.9.11\reflections-0.9.11.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\slf4j\jcl-over-slf4j\1.7.21\jcl-over-slf4j-1.7.21.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\slf4j\jul-to-slf4j\1.7.21\jul-to-slf4j-1.7.21.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\slf4j\log4j-over-slf4j\1.7.21\log4j-over-slf4j-1.7.21.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\slf4j\slf4j-api\1.7.21\slf4j-api-1.7.21.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\springframework\boot\spring-boot-autoconfigure\1.3.5.RELEASE\spring-boot-autoconfigure-1.3.5.RELEASE.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\springframework\boot\spring-boot-starter-aop\1.3.5.RELEASE\spring-boot-starter-aop-1.3.5.RELEASE.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\springframework\boot\spring-boot-starter-data-jpa\1.3.5.RELEASE\spring-boot-starter-data-jpa-1.3.5.RELEASE.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\springframework\boot\spring-boot-starter-jdbc\1.3.5.RELEASE\spring-boot-starter-jdbc-1.3.5.RELEASE.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\springframework\boot\spring-boot-starter-logging\1.3.5.RELEASE\spring-boot-starter-logging-1.3.5.RELEASE.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\springframework\boot\spring-boot-starter-tomcat\1.3.5.RELEASE\spring-boot-starter-tomcat-1.3.5.RELEASE.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\springframework\boot\spring-boot-starter-validation\1.3.5.RELEASE\spring-boot-starter-validation-1.3.5.RELEASE.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\springframework\boot\spring-boot-starter-web\1.3.5.RELEASE\spring-boot-starter-web-1.3.5.RELEASE.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\springframework\boot\spring-boot-starter\1.3.5.RELEASE\spring-boot-starter-1.3.5.RELEASE.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\springframework\boot\spring-boot\1.3.5.RELEASE\spring-boot-1.3.5.RELEASE.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\springframework\data\spring-data-commons\1.11.4.RELEASE\spring-data-commons-1.11.4.RELEASE.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\springframework\data\spring-data-jpa\1.9.4.RELEASE\spring-data-jpa-1.9.4.RELEASE.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\springframework\plugin\spring-plugin-core\1.2.0.RELEASE\spring-plugin-core-1.2.0.RELEASE.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\springframework\plugin\spring-plugin-metadata\1.2.0.RELEASE\spring-plugin-metadata-1.2.0.RELEASE.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\springframework\spring-aop\4.2.6.RELEASE\spring-aop-4.2.6.RELEASE.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\springframework\spring-aspects\4.2.6.RELEASE\spring-aspects-4.2.6.RELEASE.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\springframework\spring-beans\4.2.6.RELEASE\spring-beans-4.2.6.RELEASE.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\springframework\spring-context\4.2.6.RELEASE\spring-context-4.2.6.RELEASE.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\springframework\spring-core\4.2.6.RELEASE\spring-core-4.2.6.RELEASE.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\springframework\spring-expression\4.2.6.RELEASE\spring-expression-4.2.6.RELEASE.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\springframework\spring-jdbc\4.2.6.RELEASE\spring-jdbc-4.2.6.RELEASE.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\springframework\spring-orm\4.2.6.RELEASE\spring-orm-4.2.6.RELEASE.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\springframework\spring-tx\4.2.6.RELEASE\spring-tx-4.2.6.RELEASE.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\springframework\spring-webmvc\4.2.6.RELEASE\spring-webmvc-4.2.6.RELEASE.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\springframework\spring-web\4.2.6.RELEASE\spring-web-4.2.6.RELEASE.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\org\yaml\snakeyaml\1.16\snakeyaml-1.16.jar
[DEBUG] 		C:\Users\scheel\.m2\repository\xml-apis\xml-apis\1.0.b2\xml-apis-1.0.b2.jar
[INFO] 
[DEBUG] TIMING	Building image to Docker daemon
[DEBUG] RUNNING	Building image to Docker daemon
[INFO] Getting base image gcr.io/distroless/java...
[DEBUG] TIMING	Pulling base image manifest
[DEBUG] RUNNING	Pulling base image manifest
[DEBUG] TIMING	Building application layers
[DEBUG] RUNNING	Building application layers
[INFO] Building dependencies layer...
[DEBUG] TIMING	Building dependencies layer
[DEBUG] RUNNING	Building dependencies layer
[DEBUG] TIMED	Building application layers : 0.511 ms
[DEBUG] Building application layers : 0.511 ms
[INFO] Building resources layer...
[DEBUG] TIMING	Building resources layer
[DEBUG] RUNNING	Building resources layer
[INFO] Building classes layer...
[DEBUG] TIMING	Building classes layer
[DEBUG] RUNNING	Building classes layer
[DEBUG] Building resources layer built sha256:aa597f15fa4e25c6a0953f1bb0bc85afbedacb6067c5c296c12c715b09223d66
[DEBUG] TIMED	Building resources layer : 270.578 ms
[DEBUG] Building resources layer : 270.578 ms
[DEBUG] Building classes layer built sha256:7c56be9cdfc435e0d44fad21642462616285f9072c080444b3bb4a819adf63a3
[DEBUG] TIMED	Building classes layer : 281.515 ms
[DEBUG] Building classes layer : 281.515 ms
[DEBUG] Building dependencies layer built sha256:199aa07acd200bc13e5276117757f1931951a2db871b6a230614bbd557e03cf1
[DEBUG] TIMED	Building dependencies layer : 1848.267 ms
[DEBUG] Building dependencies layer : 1848.267 ms
[DEBUG] TIMED	Pulling base image manifest : 2757.429 ms
[DEBUG] Pulling base image manifest : 2757.429 ms
[DEBUG] TIMED	Building image to Docker daemon : 3142.777 ms
[DEBUG] Building image to Docker daemon : 3142.777 ms
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.859 s
[INFO] Finished at: 2018-07-10T16:34:06+02:00
[INFO] Final Memory: 21M/261M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:0.9.2:dockerBuild (default-cli) on project service-haplotype-frequency-curation: Build to Docker daemon failed, perhaps you should make sure that the registry you configured exists/is spelled properly: Unknown host gcr.io -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.google.cloud.tools:jib-maven-plugin:0.9.2:dockerBuild (default-cli) on project service-haplotype-frequency-curation: Build to Docker daemon failed, perhaps you should make sure that the registry you configured exists/is spelled properly
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
	at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
Caused by: org.apache.maven.plugin.MojoExecutionException: Build to Docker daemon failed, perhaps you should make sure that the registry you configured exists/is spelled properly
	at com.google.cloud.tools.jib.maven.BuildDockerMojo.execute(BuildDockerMojo.java:110)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
	... 21 more
Caused by: java.net.UnknownHostException: gcr.io
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
	at java.net.Socket.connect(Socket.java:589)
	at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:673)
	at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:333)
	at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:123)
	at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:147)
	at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:108)
	at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:415)
	at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:641)
	at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:576)
	at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:554)
	at com.google.api.client.http.apache.ApacheHttpRequest.execute(ApacheHttpRequest.java:65)
	at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:981)
	at com.google.cloud.tools.jib.http.Connection.send(Connection.java:124)
	at com.google.cloud.tools.jib.registry.RegistryEndpointCaller.call(RegistryEndpointCaller.java:169)
	at com.google.cloud.tools.jib.registry.RegistryEndpointCaller.call(RegistryEndpointCaller.java:139)
	at com.google.cloud.tools.jib.registry.RegistryClient.callRegistryEndpoint(RegistryClient.java:321)
	at com.google.cloud.tools.jib.registry.RegistryClient.pullManifest(RegistryClient.java:196)
	at com.google.cloud.tools.jib.registry.RegistryClient.pullManifest(RegistryClient.java:204)
	at com.google.cloud.tools.jib.builder.steps.PullBaseImageStep.pullBaseImage(PullBaseImageStep.java:146)
	at com.google.cloud.tools.jib.builder.steps.PullBaseImageStep.call(PullBaseImageStep.java:105)
	at com.google.cloud.tools.jib.builder.steps.PullBaseImageStep.call(PullBaseImageStep.java:51)
	at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:127)
	at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57)
	at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:80)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
[ERROR] 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

@chanseokoh
Copy link
Member

Not sure, but I guess we can add proxy support? https://maven.apache.org/guides/mini/guide-proxies.html

That is, read the proxy settings Maven is using and set it properly with our connection factory.

@chanseokoh
Copy link
Member

ApacheHttpTransport.Builder.setProxy() or ApacheHttpTransport.Builder.setProxySelector()?

@coollog
Copy link
Contributor

coollog commented Jul 10, 2018

@chanseokoh That might be it - do you want to try to take a stab at it?

@chanseokoh
Copy link
Member

Okay, sounds good to make myself familiarize with the project.

@chanseokoh chanseokoh self-assigned this Jul 10, 2018
@loosebazooka
Copy link
Member

is this relevant? GoogleCloudPlatform/appengine-plugins#457, we want this to work for both maven and gradle.

@chanseokoh
Copy link
Member

chanseokoh commented Jul 10, 2018

UPDATE: seems like this is possible. Note `Proxy-Authorization' in #1304 (comment).

Looks like we won't have complete proxy support, as google-http-client has no support for proxy authentication: googleapis/google-http-java-client#190 and HttpHeaders doesn't even have the Proxy-Authorization header defined. But I'm thinking hopefully proxies requiring auth are rare in practice and we cover most common cases at least.

@chanseokoh
Copy link
Member

@fscheel out of curiosity, do you have your corporate proxy settings in ${user.home}/.m2/settings.xml or ${maven.home}/conf/settings.xml for Maven?

@chanseokoh
Copy link
Member

@fscheel also, can you try the following properties on mvn execution to see if the workaround works?

https://docs.oracle.com/javase/7/docs/api/java/net/doc-files/net-properties.html

For example, mvn -Dhttps.proxyHost=... -Dhttps.proxyPort-... -Dhttp.proxyHost=... -Dhttp.proxyPort=...

Sometimes it seems possible to use http(s).proxyUser and http(s).proxyPassword if the server requires auth.

@fscheel
Copy link
Author

fscheel commented Jul 13, 2018

@chanseokoh I use the user configuration.

The additional properties work and I successfully created the docker image! 🎉

@coollog
Copy link
Contributor

coollog commented Jul 13, 2018

@fscheel Glad it worked!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants