Skip to content

Commit

Permalink
Merge pull request #14 from docker/issue11
Browse files Browse the repository at this point in the history
Issue11
  • Loading branch information
Jim Van Fleet authored Nov 22, 2016
2 parents 64b98fb + 798d17a commit 1cb4b76
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ RUN mkdir -p /opt/grouper/$VERSION \
cp /opt/etc/grouper.hibernate.pointer.properties /opt/grouper/$version/grouper.ws-$version/grouper-ws/build/dist/grouper-ws/WEB-INF/classes/grouper.hibernate.properties && \
rm /opt/grouper/$version/grouper.ui-$version/dist/grouper/WEB-INF/classes/grouper.hibernate.properties && \
cp /opt/etc/grouper.hibernate.pointer.properties /opt/grouper/$version/grouper.ui-$version/dist/grouper/WEB-INF/classes/grouper.hibernate.properties && \
ln -sf /opt/bin/run.sh /usr/local/bin/run.sh && \
updatedb

#/opt/grouper/2.3.0/grouper.apiBinary-2.3.0/conf/grouper.hibernate.properties
Expand Down
6 changes: 6 additions & 0 deletions container_files/bin/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,9 @@ sed -i "s|#MYSQL_DATABASE#|$MYSQL_DATABASE|g" /opt/etc/grouper.properties >> $lo
cat /opt/etc/grouper.hibernate.properties >> $log

cat /opt/etc/grouper.properties >> $log

#Configure gsh loader
sed -i "1s|^|\n |" /opt/grouper/$VERSION/grouper.apiBinary-$VERSION/bin/gsh >> $log
sed -i "1s|^|PWD=/opt/grouper/$VERSION/grouper.apiBinary-$VERSION/bin/ |" /opt/grouper/$VERSION/grouper.apiBinary-$VERSION/bin/gsh >> $log
sed -i "1s|^|\n |" /opt/grouper/$VERSION/grouper.apiBinary-$VERSION/bin/gsh >> $log
sed -i "1s|^|GROUPER_HOME=/opt/grouper/$VERSION/grouper.apiBinary-$VERSION/bin/ |" /opt/grouper/$VERSION/grouper.apiBinary-$VERSION/bin/gsh >> $log
4 changes: 4 additions & 0 deletions container_files/bin/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
while true; do
sleep 1800
done
8 changes: 6 additions & 2 deletions container_files/bin/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ then
echo "Starting tomcat and apache"
/opt/autoexec/bin/firstrun.sh
/usr/local/bin/httpd-shib-foreground &
/opt/grouper/2.3.0/apache-tomcat-6.0.35/bin/catalina.sh run
/opt/grouper/2.3.0/apache-tomcat-6.0.35/bin/catalina.sh run &
/opt/grouper/$VERSION/grouper.apiBinary-$VERSION/bin/gsh -loader &
/usr/local/bin/run.sh
fi
else
echo "Composed so waiting for MariaDB: " > $log
Expand Down Expand Up @@ -54,6 +56,8 @@ else
/opt/autoexec/bin/firstrun.sh
date >> $log
/usr/local/bin/httpd-shib-foreground &
/opt/grouper/2.3.0/apache-tomcat-6.0.35/bin/catalina.sh run
/opt/grouper/2.3.0/apache-tomcat-6.0.35/bin/catalina.sh run &
/opt/grouper/$VERSION/grouper.apiBinary-$VERSION/bin/gsh -loader &
/usr/local/bin/run.sh
fi
fi

0 comments on commit 1cb4b76

Please sign in to comment.