1
0
mirror of https://github.com/octoleo/plantuml-server.git synced 2024-12-22 16:58:54 +00:00

Restore Added support for running docker behind firewall

This commit is contained in:
Arnaud Roques 2017-04-21 22:53:01 +02:00
parent d7a8a7e698
commit 4c320c39c2
2 changed files with 14 additions and 1 deletions

View File

@ -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

View File

@ -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
=======================