Skip to content

Commit

Permalink
Merge pull request #17 from docker/prep-for-shib-service-start
Browse files Browse the repository at this point in the history
Shib IDP service should be startable
  • Loading branch information
Jim Van Fleet committed Aug 3, 2016
2 parents c0ca7a6 + 16b0e8c commit 2f2ab91
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ RUN set -x \
# && gpg --batch --verify tomcat.tar.gz.asc tomcat.tar.gz \
&& tar -xvf tomcat.tar.gz --strip-components=1 \
&& rm bin/*.bat \
&& rm tomcat.tar.gz*
&& rm tomcat.tar.gz* \
&& mkdir -p conf/Catalina

ADD files/idp.xml conf/Catalina/idp.xml


ENV PATH $CATALINA_HOME/bin:$JAVA_HOME/bin:$PATH
Expand Down
4 changes: 4 additions & 0 deletions files/idp.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<Context docBase="/opt/shibboleth/current/war/idp.war"
privileged="true"
antiResourceLocking="false"
swallowOutput="true" />
5 changes: 5 additions & 0 deletions tests/shibboleth-idp.bats
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ load ../common
[ "$result" != '' ]
}

@test "Tomcat will start Shibboleth IDP when started" {
result="$(docker run -i $maintainer/$imagename find conf/Catalina/idp.xml)"
[ "$result" != '' ]
}

@test "Contains java" {
run docker run -i $maintainer/$imagename which java
[ "$status" -eq 0 ]
Expand Down

0 comments on commit 2f2ab91

Please sign in to comment.