Che: [build] mvn install in che-dev fails

Created on 11 Oct 2017  路  8Comments  路  Source: eclipse/che

Description

I am trying to build Che locally, following the description here : https://github.com/eclipse/che/wiki/Development-Workflow#build-che-using-docker

It fails with:

...
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:43 min (Wall Clock)
[INFO] Finished at: 2017-10-11T08:12:29+00:00
[INFO] Final Memory: 307M/1717M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.8:run (build-image) on project che-dashboard-war: An Ant BuildException has occured: Execute failed: java.io.IOException: Cannot run program "docker" (in directory "/home/user/che-build/dashboard"): error=2, No such file or directory
[ERROR] around Ant part ...<exec failonerror="true" dir="/home/user/che-build/dashboard" executable="docker">... @ 4:85 in /home/user/che-build/dashboard/target/antrun/build-main.xml
...

Reproduction Steps

  • Clone Che
  • checkout 5.18.0
  • run
docker run -it --rm --name build-che \
           -v "$HOME/.m2:/home/user/.m2" \
           -v "$PWD":/home/user/che-build \
           -w /home/user/che-build \
           eclipse/che-dev \
           mvn -DskipTests=true \
               -Dfindbugs.skip=true \
               -Dgwt.compiler.localWorkers=2 -T 1C \
               -Dmdep.analyze.skip=true \
               -Dlicense.skip=true \
               clean install

OS and version:

OS X

kinquestion

Most helpful comment

FYI I've updated the help page on the wiki for "docker build"

All 8 comments

Look like the document is a bit outdated. @benoitf I think it's related to docker build of the dashboard. Do you know will it work if we mount /var/run/docker.sock into che-dev container?

for building dashboard (and submodules) the help is there
and it includes the -Pnative \ flag
https://github.com/eclipse/che/wiki/Development-Workflow#build-and-run

FYI I've updated the help page on the wiki for "docker build"

Thank you I'm testing it.

It failed again, this time with this:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 55:18 min (Wall Clock)
[INFO] Finished at: 2017-10-11T09:26:01+00:00
[INFO] Final Memory: 951M/1997M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.8.0:compile (default) on project assembly-ide-war: Command [[
[ERROR] /bin/sh -c '/opt/jdk1.8.0_45/jre/bin/java' '-Xss512m' '-Xmx2048m' 'com.google.gwt.dev.Compiler' '-logLevel' 'INFO' '-war' '/home/user/che-build/assembly/assembly-ide-war/target/assembly-ide-war-5.18.0' '-localWorkers' '2' '-XfragmentCount' '-1' '-sourceLevel' '1.8' '-gen' '/home/user/che-build/assembly/assembly-ide-war/target/.generated' 'org.eclipse.che.ide.IDE'
[ERROR] ]] failed with status 137

Any ideas?

Error code 137 is for memory issue so I assume there is no enough memory provided to the docker container in order to build GWT app

@svenefftinge could you please check the allocated memory to the docker4mac in docker/preferences/advanced.

ok, that seems to be it. Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

skabashnyuk picture skabashnyuk  路  3Comments

Ohrimenko1988 picture Ohrimenko1988  路  3Comments

sleshchenko picture sleshchenko  路  3Comments

vanzhiganov picture vanzhiganov  路  3Comments

JamesDrummond picture JamesDrummond  路  3Comments