Skip to content

Commit

Permalink
Logging for Tomcat and Shibboleth IDP externalized
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Van Fleet committed Aug 18, 2016
1 parent 7893424 commit fea49b0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/ci-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
# This file will run a container in the background
source common.bash .

docker run -d --name=$imagename -p 8080:8080 $maintainer/$imagename
docker run -d --name=$imagename -v $PWD/logs/tomcat:/usr/local/tomcat/logs:rw \
-v $PWD/logs/shibboleth_idp:/opt/shibboleth/shibboleth-identity-provider-$version/logs:rw \
-p 8080:8080 $maintainer/$imagename
2 changes: 2 additions & 0 deletions bin/ci-stop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# This file will run a container in the background
source common.bash .

rm logs/tomcat/*
rm logs/shibboleth_idp/*
echo "Cleaning up Docker image($maintainer/$imagename)"
docker stop $imagename >> /dev/null
docker rm $imagename
Expand Down
8 changes: 8 additions & 0 deletions tests/running.bats
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,11 @@ load ../common
[ "$status" -eq 0 ]
[ ${output} == *"200"* ]
}

@test "Tomcat log directory log volume" {
find logs/tomcat/catalina.*.log
}

@test "Shibboleth log directory log volume" {
find logs/shibboleth_idp/idp-process.log
}

0 comments on commit fea49b0

Please sign in to comment.