Open francislavoie opened 6 years ago
Sorry, I never had used docker. I just tested with my local server and worked.
I looked into their page and I saw this:
docker run -d -p 8080:8080 plantuml/plantuml-server:jetty
I do not know what are these 8080:8080
, perhaps you can try to use 8181:8181
instead of 8181:8080
, or just use 8080:8080
and set the local URL on your .sublime-settings
to:
"plantuml_server": "http://localhost:8080/plantuml/"
Or:
"plantuml_server": "http://localhost:8181/plantuml/"
Or:
"plantuml_server": "http://localhost:8080/"
Or:
"plantuml_server": "http://localhost:8181/"
So in Docker, -p 8181:8080
means bind to port 8181
on the host machine and map it to 8080
in the container. I did this because I'm using 8080
for other stuff already. Very sure that's not the issue.
I'm thinking it might be an issue because I use an !include ../theme.puml
?
Ah, yep, that's the issue. That's a bummer.
Got this error in the docker logs. Didn't look there before.
Preprocessor Error: Cannot include /var/lib/jetty/./../theme.puml
Preprocessor Error: Cannot include /var/lib/theme.puml
Idea - this lib could parse the file for an include and just copy the contents of that file in before sending it to the server? That would be great :smile:
Ran it with docker like this:
docker run --rm -p 8181:8080 plantuml/plantuml-server:jetty
Still getting the TypeError from #2 but I don't think it's relevant here.