Skip to content

Commit

Permalink
Adding ONBUILD instructions, tweaking build
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Van Fleet committed Jul 27, 2016
1 parent c835c11 commit 6c2c65f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,6 @@ RUN mkdir -p /tmp/shibboleth && cd /tmp/shibboleth && \
mv $SHIB_PREFIX /opt/shibboleth/. && \
ln -s /opt/shibboleth/$SHIB_PREFIX /opt/shibboleth/current && \
# Cleanup
rm -rf /tmp/shibboleth
rm -rf /tmp/shibboleth

ONBUILD ADD ./root/* /opt/shibboleth/$SHIB_PREFIX
6 changes: 5 additions & 1 deletion tests/shibboleth-idp.bats
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

load ../common

setup() {
./bin/rebuild.sh
}

@test "Creates non-root Shib IDP home" {
result="$(docker run -i bigfleet/shibboleth_idp ls /opt/shibboleth/current/bin/)"
[ "$result" != '' ]
Expand All @@ -19,5 +23,5 @@ load ../common

@test "Defers configuration via ONBUILD" {
run grep ONBUILD Dockerfile
[ "$status" -eq 1 ]
[ "$status" -eq 0 ]
}

0 comments on commit 6c2c65f

Please sign in to comment.