I am trying to create a Docker image that runs draw.io (https://www.draw.io/).
I recently did download the draw.io git repository from https://github.com/jgraph/draw.io (version 5.6.0.3) and spend quite some time building draw.war (which can be deployed in a web container), without any luck so far. I did read all the draw.io documentation that is provided in the repository and searched the internet for hours to find out how to build draw.war, but I couldn't find an answer.
The root directory of the repository is /tmp/draw.io-master/ and the ANT build file (build.xml) and related propery file (build.properties) can be found in /tmp/draw.io-master/etc/build
When I run 'ant' from /tmp/draw.io-master/etc/build I get the following error:
Buildfile: /tmp/draw.io-master/etc/build/build.xml
[jscomp] Compiling 1 file(s) with 40 extern(s)
[jscomp] ERROR - Cannot read: /tmp/draw.io-master/etc/build/${desktop.dir}/Desktop-Init.js
[jscomp] 1 error(s), 0 warning(s)
BUILD FAILED
/tmp/draw.io-master/etc/build/build.xml:451: Compilation failed.
Total time: 0 seconds
When I run 'ant war -buildfile /tmp/draw.io-master/etc/build/build.xml -propertyfile /tmp/draw.io-master/etc/build/build.properties -Dbasedir=/tmp/draw.io-master/etc/build -Ddesktop.dir=/tmp' I get the following error:
Buildfile: /tmp/draw.io-master/etc/build/build.xml
[jscomp] Compiling 1 file(s) with 40 extern(s)
[jscomp] ERROR - Cannot read: /tmp/Desktop-Init.js
[jscomp] 1 error(s), 0 warning(s)
BUILD FAILED
/tmp/draw.io-master/etc/build/build.xml:451: Compilation failed.
Total time: 0 seconds
I don't know what the right value of 'desktop.dir' is and I also don't know how to obtain / create Desktop-Init.js.
Any suggestions?