[EnMasse] Fast building of EnMasse and pushing images to docker registry in local OpenShift instance

Ulf Lilleengen lulf at redhat.com
Wed Aug 9 13:41:01 UTC 2017


Hi Gordon,

I came across this as well. I've checked in some updated instructions on
the none-authservice branch that I've not cherry-picked over to master yet:
https://github.com/EnMasseProject/enmasse/blob/none-authservice/HACKING.md

This should work I think:

export DOCKER_ORG=myproject
export DOCKER_REGISTRY=172.30.1.1:5000
./gradlew build pack buildImage -x test --parallel --rerun-tasks &&
DOCKER_USER=developer DOCKER_PASS=`oc whoami -t` ./gradlew tagImage
pushImage --parallel

Apparantly when I initially wrote these instructions, I had the 'base'
images cached, so I didn't run into these issues.

On Wed, Aug 9, 2017 at 3:20 PM, Gordon Sim <gsim at redhat.com> wrote:

> 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.parseHea
>> d(DefaultHttpResponseParser.java:143)
>>         at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHea
>> d(DefaultHttpResponseParser.java:57)
>>         at org.apache.http.impl.io.AbstractMessageParser.parse(Abstract
>> MessageParser.java:259)
>>         at org.apache.http.impl.DefaultBHttpClientConnection.receiveRes
>> ponseHeader(DefaultBHttpClientConnection.java:163)
>>         at org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(C
>> PoolProxy.java:167)
>>         at org.apache.http.protocol.HttpRequestExecutor.doReceiveRespon
>> se(HttpRequestExecutor.java:273)
>>         at org.apache.http.protocol.HttpRequestExecutor.execute(HttpReq
>> uestExecutor.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(Int
>> ernalHttpClient.java:184)
>>         at org.apache.http.impl.client.CloseableHttpClient.execute(Clos
>> eableHttpClient.java:71)
>>         at org.glassfish.jersey.apache.connector.ApacheConnector.apply(
>> ApacheConnector.java:435)
>>         at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRunti
>> me.java:252)
>>         at org.glassfish.jersey.client.JerseyInvocation$2.call(JerseyIn
>> vocation.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.runInScop
>> e(RequestScope.java:444)
>>         at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyIn
>> vocation.java:697)
>>         at org.glassfish.jersey.client.JerseyInvocation$Builder.method(
>> JerseyInvocation.java:448)
>>         at org.glassfish.jersey.client.JerseyInvocation$Builder.post(Je
>> rseyInvocation.java:349)
>>         at com.github.dockerjava.jaxrs.async.POSTCallbackNotifier.respo
>> nse(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(ThreadPool
>> Executor.java:1149)
>>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
>> lExecutor.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?
>
> _______________________________________________
> enmasse mailing list
> enmasse at redhat.com
> https://www.redhat.com/mailman/listinfo/enmasse
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/enmasse/attachments/20170809/f6358c58/attachment.htm>


More information about the enmasse mailing list