Skip to content
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

Open file on startup? #74

Open
miketwo opened this issue Apr 25, 2022 · 1 comment
Open

Open file on startup? #74

miketwo opened this issue Apr 25, 2022 · 1 comment

Comments

@miketwo
Copy link

miketwo commented Apr 25, 2022

Using the docker image, I can create a locally-running server with the following:

docker run -it --rm --name="draw" -p 8080:8080 -p 8443:8443 jgraph/drawio

Once up, I can choose to open an existing file, navigate to my local Drawio file, and it opens successfully. Great.

Is it possible to do this automatically?

I.e., if I mount the file into the container with

... -v $(pwd)/diagrams:/data ...

... is there a way to specify arguments or environment variables or anything to the container to have the drawing open on startup, without having to navigate the file system and find it? I searched the docker_entrypoint but didn't see anything that looked like it would help.

(And if it's not possible, can I request this as a feature?)

Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. See the FAQ for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants