forked from SundeepBinaylal/game-of-life
-
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.
Merge pull request wakaleo#123 from shott85/master
fix for 'mvn jetty:run'
- Loading branch information
Showing
4 changed files
with
51 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM selenium/standalone-firefox:latest | ||
|
||
ENV MAVEN_VERSION 3.3.3 | ||
ENV DISPLAY :99 | ||
|
||
USER root | ||
|
||
RUN apt-get update -qqy \ | ||
&& apt-get install -y openjdk-8-jdk && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN wget -O- http://archive.apache.org/dist/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz | tar xzf - -C /opt \ | ||
&& mv /opt/apache-maven-$MAVEN_VERSION /opt/maven \ | ||
&& ln -s /opt/maven/bin/mvn /usr/bin/mvn | ||
|
||
USER seluser | ||
|
||
ENV MAVEN_HOME /opt/maven | ||
|
||
EXPOSE 9090 | ||
|
||
CMD ["mvn"] |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM tomcat:8-jre8 | ||
|
||
RUN rm -rf /usr/local/tomcat/webapps/* | ||
|
||
COPY target/gameoflife.war /usr/local/tomcat/webapps/ROOT.war | ||
|
||
EXPOSE 8080 | ||
CMD ["catalina.sh", "run"] |
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