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
...
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
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.
Most helpful comment
FYI I've updated the help page on the wiki for "docker build"