Skip to content

Commit

Permalink
Logging via volume appears to work
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Van Fleet committed Aug 18, 2016
1 parent f44edf5 commit 7893424
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 20 deletions.
21 changes: 2 additions & 19 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,5 @@ bin/start.sh
bin/stop.sh
root/**
shibboleth-identity-provider.tar.gz
test.log
bin/build.sh
bin/destroy.sh
bin/install.sh
bin/rebuild.sh
bin/rerun.sh
bin/run.sh
bin/start.sh
bin/stop.sh
bin/test.sh
bin/build.sh
bin/destroy.sh
bin/install.sh
bin/rebuild.sh
bin/rerun.sh
bin/run.sh
bin/start.sh
bin/stop.sh
bin/test.sh
logs/tomcat/**
logs/shibboleth_idp/**
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ RUN chown -R root:root /opt/shibboleth/shibboleth-identity-provider-$version &&
rm -rf /usr/local/tomcat/webapps/* && \
ANT_OPTS="-Didp.target.dir=/opt/shibboleth/current" /opt/shibboleth/current/bin/build.sh && \
ln -s /opt/shibboleth/current /opt/shibboleth-idp && \
ln -s /opt/shibboleth-idp/war/idp.war $CATALINA_HOME/webapps/ROOT.war
ln -s /opt/shibboleth-idp/war/idp.war $CATALINA_HOME/webapps/ROOT.war && \
touch /usr/local/tomcat/logs/voltest && \
touch /opt/shibboleth/shibboleth-identity-provider-$version/logs/voltest

VOLUME ["/usr/local/tomcat/logs", "/opt/shibboleth/shibboleth-identity-provider-$VERSION/logs"]

EXPOSE 8080
CMD ["catalina.sh", "run"]
Empty file added logs/shibboleth_idp/.gitkeep
Empty file.
Empty file added logs/tomcat/.gitkeep
Empty file.

0 comments on commit 7893424

Please sign in to comment.