joethei / obsidian-plantuml

Generate PlantUML Diagrams inside Obsidian.md
MIT License
395 stars 23 forks source link

Auto-start UML server in a docker container (I'll be willing to make a PR on this feature) #65

Open stroiman opened 3 months ago

stroiman commented 3 months ago

First of all, if you think the suggestion is a good idea, I'd be willing to see if I could make a PR with the contribution.

Is your feature request related to a problem? Please describe.

Not to much a problem, but it would simplify my workflow slightly.

When using this plugin, I use docker to easily start a local server, like this:

docker run -d -p 8081:8080 plantuml/plantuml-server:jetty

And configure plugin server URL to http://localhost:8081. (I use 8081 as I have other stuff running on 8080)

This makes it extremely easy to have a local server and gives me the benefit of running a server but I get faster responses due to lower network latency, and not having to share the server with thousands of other users. And I don't have to worry about java versions, jetty/tomcat/other HTTP servers, etc. One command line, and I have a running server.

It could be helpful, if the plugin could just start the server, and stop it again, when no longer needed.

This should work on all desktop platforms, i.e. Windows, MacOS, and Linux. However, I doubt it would work on mobile devices.

Describe the solution you'd like

Describe alternatives you've considered

I'll just continue what I do now, start the container manually.