-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Knitrdrawio does not work in headless environments (Docker, CI/CD, remote servers without displays, ...) #2
Comments
Hmm, this is weird. This means that drawio should have produced the image at Another option could be to force the engine to use a simpler path. For example:
This should create the diagram in the working directory. (or use |
your "For example |
I am not sure why this doesn't work, the problem does not appear in a non-Docker context. Can you provide the Docker file you are using, so I can try and debug? |
Just a quick heads-up: I have been able to replicate this issue. Apparently, draw.io requires a graphical server to work, which is missing in Docker and other "headless" environments. Basically, it means that it is complicated to run draw.io in a CI/CD pipeline. As per the official repository, there seems to be 2 solutions:
|
Sorry for the delay, there were several bugs in draw.io (or most likely electron). The new version should work in Docker containers, however, it requires Draw.io 16.0.0. It is also required to install the |
Hi, I am running the below code in a docker environment and I am getting the error:
Any ideas?
The text was updated successfully, but these errors were encountered: