[EnMasse] Fast building of EnMasse and pushing images to docker registry in local OpenShift instance
Gordon Sim
gsim at redhat.com
Wed Aug 9 13:20:09 UTC 2017
When running:
> DOCKER_REGISTRY=172.30.1.1:5000 DOCKER_ORG=myproject DOCKER_USER=developer DOCKER_PASS=`oc whoami -t` ./gradlew build pack buildImage tagImage pushImage -x test
I get:
>> Task :admin:address-controller:tagImage
> Tagging image with ID 'myproject/address-controller:latest'.
> Executing tagImage for /home/gordon/projects/enmasse/admin/address-controller commit latest
>
>> Task :admin:configserv:tagImage
> Tagging image with ID 'myproject/configserv:latest'.
> Executing tagImage for /home/gordon/projects/enmasse/admin/configserv commit latest
>
>> Task :admin:queue-scheduler:tagImage
> Tagging image with ID 'myproject/queue-scheduler:latest'.
> Executing tagImage for /home/gordon/projects/enmasse/admin/queue-scheduler commit latest
>
>> Task :mqtt:mqtt-gateway:tagImage
> Tagging image with ID 'myproject/mqtt-gateway:latest'.
> Executing tagImage for /home/gordon/projects/enmasse/mqtt/mqtt-gateway commit latest
>
>> Task :mqtt:mqtt-lwt:tagImage
> Tagging image with ID 'myproject/mqtt-lwt:latest'.
> Executing tagImage for /home/gordon/projects/enmasse/mqtt/mqtt-lwt commit latest
>
> [dockerjava-jaxrs-async-0] INFO org.apache.http.impl.execchain.RetryExec - I/O exception (org.apache.http.NoHttpResponseException) caught when processing request to {}->unix://localhost:80: The target server failed to respond
> [dockerjava-jaxrs-async-0] INFO org.apache.http.impl.execchain.RetryExec - Retrying request to {}->unix://localhost:80
> [dockerjava-jaxrs-async-0] INFO org.apache.http.impl.execchain.RetryExec - I/O exception (org.apache.http.NoHttpResponseException) caught when processing request to {}->unix://localhost:80: The target server failed to respond
> [dockerjava-jaxrs-async-0] INFO org.apache.http.impl.execchain.RetryExec - Retrying request to {}->unix://localhost:80
> [dockerjava-jaxrs-async-0] INFO org.apache.http.impl.execchain.RetryExec - I/O exception (org.apache.http.NoHttpResponseException) caught when processing request to {}->unix://localhost:80: The target server failed to respond
> [dockerjava-jaxrs-async-0] INFO org.apache.http.impl.execchain.RetryExec - Retrying request to {}->unix://localhost:80
> [dockerjava-jaxrs-async-0] ERROR com.github.dockerjava.core.async.ResultCallbackTemplate - Error during callback
> org.apache.http.NoHttpResponseException: localhost:80 failed to respond
> at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:143)
> at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:57)
> at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259)
> at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:163)
> at org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:167)
> at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273)
> at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
> at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:271)
> at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
> at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
> at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
> at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
> at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:71)
> at org.glassfish.jersey.apache.connector.ApacheConnector.apply(ApacheConnector.java:435)
> at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:252)
> at org.glassfish.jersey.client.JerseyInvocation$2.call(JerseyInvocation.java:701)
> at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
> at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
> at org.glassfish.jersey.internal.Errors.process(Errors.java:228)
> at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:444)
> at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:697)
> at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:448)
> at org.glassfish.jersey.client.JerseyInvocation$Builder.post(JerseyInvocation.java:349)
> at com.github.dockerjava.jaxrs.async.POSTCallbackNotifier.response(POSTCallbackNotifier.java:29)
> at com.github.dockerjava.jaxrs.async.AbstractCallbackNotifier.call(AbstractCallbackNotifier.java:50)
> at com.github.dockerjava.jaxrs.async.AbstractCallbackNotifier.call(AbstractCallbackNotifier.java:24)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> 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)
>
>> Task :artemis:pushImage
> Pushing image with name '172.30.1.1:5000/myproject/artemis'.
>
>
> FAILURE: Build failed with an exception.
>
> * What went wrong:
> Execution failed for task ':artemis:pushImage'.
>> org.apache.http.NoHttpResponseException: localhost:80 failed to respond
>
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
>
> BUILD FAILED in 1m 25s
> 102 actionable tasks: 38 executed, 64 up-to-date
Where is the localhost:80 it is trying to us here coming from and how
should I configure this?
More information about the enmasse
mailing list