Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
One of the autoexec tests is passing
  • Loading branch information
Jim Van Fleet committed Sep 14, 2016
1 parent 0808208 commit 0d1ee26
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
@@ -1,4 +1,4 @@
FROM bigfleet/grouper
FROM tier/grouper

ARG maintainer=my
ARG imagename=grouper
Expand All @@ -16,7 +16,8 @@ RUN rm /opt/grouper/2.3.0/grouper.apiBinary-2.3.0/conf/grouper.hibernate.propert
rm /opt/grouper/2.3.0/grouper.ws-2.3.0/grouper-ws/build/dist/grouper-ws/WEB-INF/classes/grouper.hibernate.properties && \
ln -s /opt/etc/grouper.hibernate.properties /opt/grouper/2.3.0/grouper.ws-2.3.0/grouper-ws/build/dist/grouper-ws/WEB-INF/classes/grouper.hibernate.properties && \
rm /opt/grouper/2.3.0/grouper.ui-2.3.0/dist/grouper/WEB-INF/classes/grouper.hibernate.properties && \
ln -s /opt/etc/grouper.hibernate.properties /opt/grouper/2.3.0/grouper.ui-2.3.0/dist/grouper/WEB-INF/classes/grouper.hibernate.properties
ln -s /opt/etc/grouper.hibernate.properties /opt/grouper/2.3.0/grouper.ui-2.3.0/dist/grouper/WEB-INF/classes/grouper.hibernate.properties && \
/opt/autoexec/bin/onbuild.sh

VOLUME /opt/grouper/$version/apache-tomcat-$TOMCAT_VERSION/logs
VOLUME /etc/httpd/logs
3 changes: 3 additions & 0 deletions container_files/autoexec/firstrun/touch.sh
@@ -0,0 +1,3 @@
#!/bin/bash

touch /opt/log/firstrun.log
3 changes: 3 additions & 0 deletions container_files/autoexec/onbuild/touch.sh
@@ -0,0 +1,3 @@
#!/bin/bash

touch /opt/log/onbuild.log
8 changes: 8 additions & 0 deletions tests/image.bats
Expand Up @@ -15,4 +15,12 @@ load ../common
@test "Contains java" {
run docker run -i $maintainer/$imagename which java
[ "$status" -eq 0 ]
}

@test "Has fired autorun firstrun" {
docker run -i $maintainer/$imagename find /opt/log/firstrun.log
}

@test "Has fired autorun onbuild" {
docker run -i $maintainer/$imagename find /opt/log/autoexec.build.log
}

0 comments on commit 0d1ee26

Please sign in to comment.