mirror of
https://github.com/octoleo/plantuml-server.git
synced 2024-12-22 08:48:54 +00:00
Restore Added support for running docker behind firewall
This commit is contained in:
parent
d7a8a7e698
commit
4c320c39c2
@ -1,6 +1,6 @@
|
||||
FROM maven:3-jdk-8
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends graphviz && rm -rf /var/lib/apt/lists/*
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends graphviz fonts-wqy-zenhei && rm -rf /var/lib/apt/lists/*
|
||||
ADD . /app
|
||||
WORKDIR /app
|
||||
EXPOSE 8080
|
||||
|
13
README.md
13
README.md
@ -44,6 +44,19 @@ The server is now listing to [http://localhost:8080/plantuml](http://localhost:8
|
||||
|
||||
You may specity the port in `-p` Docker command line argument.
|
||||
|
||||
Alternate: How to run the server with Tomcat + Docker?
|
||||
======================================================
|
||||
|
||||
Above method uses maven to run the application. That requires internet connectivity. That is undesireable in a corporate environment with firewalls. So, you can use following command to create a self-contained docker image that will "just-work".
|
||||
|
||||
```
|
||||
docker build -t platuml-server:tomcat8 -f Dockerfile.tomcat8 .
|
||||
docker run -d -p 8080:8080 plantuml-server:tomcat8
|
||||
```
|
||||
The server is now listing to [http://localhost:8080/plantuml](http://localhost:8080/plantuml).
|
||||
|
||||
You may specity the port in `-p` Docker command line argument.
|
||||
|
||||
|
||||
How to generate the war
|
||||
=======================
|
||||
|
Loading…
Reference in New Issue
Block a user