Skip to content

Commit

Permalink
gameoflife.war must run standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
schottsfired committed Sep 18, 2016
1 parent 6ebd401 commit d61593f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
9 changes: 0 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,6 @@ RUN wget -O- http://archive.apache.org/dist/maven/maven-3/$MAVEN_VERSION/binarie
&& mv /opt/apache-maven-$MAVEN_VERSION /opt/maven \
&& ln -s /opt/maven/bin/mvn /usr/bin/mvn

RUN mkdir /home/seluser/gameoflife-acceptance-tests \
&& mkdir /home/seluser/gameoflife-web
COPY /gameoflife-acceptance-tests /home/seluser/gameoflife-acceptance-tests
COPY /gameoflife-web /home/seluser/gameoflife-web
RUN chown -R seluser /home/seluser/gameoflife-acceptance-tests \
&& chmod -R u+rX /home/seluser/gameoflife-acceptance-tests \
&& chown -R seluser /home/seluser/gameoflife-web \
&& chmod -R u+rX /home/seluser/gameoflife-web

USER seluser

ENV MAVEN_HOME /opt/maven
Expand Down
8 changes: 8 additions & 0 deletions gameoflife-web/Dockerfile
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"]

0 comments on commit d61593f

Please sign in to comment.