forked from plantuml/plantuml-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tomcat container, jetty tag and self-builded docker file
- Loading branch information
Showing
7 changed files
with
50 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,20 @@ | ||
FROM jetty | ||
MAINTAINER D.Ducatel | ||
FROM maven:3-jdk-8 | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends graphviz fonts-wqy-zenhei && \ | ||
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 target/plantuml.war /var/lib/jetty/webapps/ROOT.war | ||
COPY pom.xml /app/ | ||
COPY src /app/src/ | ||
|
||
ENV MAVEN_CONFIG=/app/.m2 | ||
WORKDIR /app | ||
RUN mvn package | ||
|
||
# chmod required to ensure any user can run the app | ||
RUN mkdir /app/.m2 && chmod -R a+w /app | ||
EXPOSE 8080 | ||
ENV HOME /app | ||
|
||
CMD java -Djetty.contextpath=/ -jar target/dependency/jetty-runner.jar target/plantuml.war | ||
|
||
# To run with debugging enabled instead | ||
#CMD java -Dorg.eclipse.jetty.util.log.class=org.eclipse.jetty.util.log.StdErrLog -Dorg.eclipse.jetty.LEVEL=DEBUG -Djetty.contextpath=/ -jar target/dependency/jetty-runner.jar target/plantuml.war |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM jetty | ||
MAINTAINER D.Ducatel | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends graphviz fonts-wqy-zenhei && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
ADD target/plantuml.war /var/lib/jetty/webapps/ROOT.war |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM tomcat:9 | ||
MAINTAINER D.Ducatel | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends graphviz fonts-wqy-zenhei && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
ADD target/plantuml.war /usr/local/tomcat/webapps/ROOT.war |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters