Cannot build/run the modeler as docker
See original GitHub issueDescribe the Bug
I cannot start the camuda-modeler. I get the following error:
camunda-modeler-builder@0.0.0 app:dev /home/modeler electron ./app/dev.js --force-update-checks resources/diagram/simple.bpmn [134:1127/072806.341331:FATAL:atom_main_delegate.cc(211)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180. camunda-modeler-client@4.4.0 dev /home/modeler/client run-s start camunda-modeler-client@4.4.0 start /home/modeler/client cross-env NODE_ENV=development webpack-dev-server --config ./webpack.config.js --port 3000 sh: 1: cross-env: not found npm ERR! code ELIFECYCLE npm ERR! syscall spawn
Steps to Reproduce
In order to reproduce, download the release 4.4.0 as a zip and unpack it then run the attached docker file Dockerfile.txt from inside the folder
Then run the container with: docker run --network=host -it imagename
. Switch to posix enabled terminal bash --posix
and go in the /modeler folder. Run npm install
and then npm start
, you will see the error
Expected Behavior The system should start
Environment
- OS: ubuntu:bionic
- Camunda Modeler Version: 4.4.0
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
Happy that you got the basics running and shared your solution. It is great how far you got.
To clarify though we cannot support you in running the development setup of the App inside docker. We do in no way recommend that setup, too. There is many things wrong about it, including (but not limited to) potential poor performance and pain to set it up (you experienced it).
I’ll close this issue as you were able to get things running.
This is expected behavior, with or without docker. You’ll initially see an empty page and have to
CMD/CTRL + R
in order to refresh the app once the initial webpack bundle completed.For me it is a requirement to get it running in a docker container. I was already able to dockerize the bpmnjs so this should be just a step-further. Your suggestion would be for a non-root user?