From 4c320c39c25645076b69665086cf618b72a80d9e Mon Sep 17 00:00:00 2001 From: Arnaud Roques Date: Fri, 21 Apr 2017 22:53:01 +0200 Subject: [PATCH] Restore Added support for running docker behind firewall --- Dockerfile | 2 +- README.md | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7a4948d..aa9ffe3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/README.md b/README.md index 2a79ec4..03c88c0 100644 --- a/README.md +++ b/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 =======================