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

Gordon Sim gsim at redhat.com
Wed Aug 9 14:47:01 UTC 2017


On 09/08/17 14:41, Ulf Lilleengen wrote:
> 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 <http://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

That doesn't seem to fix it for me. If I remove the parallel execution 
option I still see the same error about localhost:80.

With the parallel execution error I get other failures, varying in 
detail for different runs:

> FAILURE: Build failed with an exception.
> 
> * What went wrong:
> Execution failed for task ':none-authservice:tagImage'.
>> javax.ws.rs.ProcessingException (no error message)
> 


> 
> FAILURE: Build completed with 2 failures.
> 
> 1: Task failed with an exception.
> -----------
> * What went wrong:
> Execution failed for task ':none-authservice:tagImage'.
>> javax.ws.rs.ProcessingException (no error message)
> 
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
> ==============================================================================
> 
> 2: Task failed with an exception.
> -----------
> * What went wrong:
> Execution failed for task ':router-metrics:tagImage'.
>> javax.ws.rs.ProcessingException (no error message)


> FAILURE: Build completed with 2 failures.
> 
> 1: Task failed with an exception.
> -----------
> * What went wrong:
> Execution failed for task ':console:tagImage'.
>> javax.ws.rs.ProcessingException (no error message)
> 
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
> ==============================================================================
> 
> 2: Task failed with an exception.
> -----------
> * What went wrong:
> Execution failed for task ':router-metrics:tagImage'.
>> {"message":"no such id: myproject/router-metrics:latest"}
> 
> 
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
> ==============================================================================
> 
> BUILD FAILED in 2s
> 8 actionable tasks: 8 executed




More information about the enmasse mailing list