Restore Added support for running docker behind firewall
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
FROM maven:3-jdk-8
|
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
|
ADD . /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
EXPOSE 8080
|
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.
|
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
|
How to generate the war
|
||||||
=======================
|
=======================
|
||||||
|
|||||||
Reference in New Issue
Block a user