Skip to content

Commit

Permalink
Sharing with group
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Van Fleet committed Sep 2, 2016
1 parent 1594e35 commit a96a0de
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 128 deletions.
13 changes: 9 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,24 @@ COPY MariaDB.repo /etc/yum.repos.d/MariaDB.repo
RUN mkdir -p /opt/grouper/$VERSION \
&& curl -o /opt/grouper/$VERSION/grouperInstaller.jar http://software.internet2.edu/grouper/release/$VERSION/grouperInstaller.jar \
&& yum -y update \
&& yum -y install \
&& yum -y install --setopt=tsflags=nodocs \
dos2unix \
expect \
java-1.8.0-openjdk \
java-1.8.0-openjdk-devel \
MariaDB-client \
mlocate \
&& yum clean all

# Add starters and installers
ADD ./container_files /root
COPY grouper.installer.properties /opt/grouper/$version

# The installer creates a HSQL DB which we ignore later
WORKDIR /opt/grouper/$version
RUN java -cp .:grouperInstaller.jar edu.internet2.middleware.grouperInstaller.GrouperInstaller
RUN java -cp :grouperInstaller.jar edu.internet2.middleware.grouperInstaller.GrouperInstaller

VOLUME /opt/grouper/2.3.0/apache-tomcat-$TOMCAT_VERSION/logs

EXPOSE 8080 8009 8005
EXPOSE 8080 8009 8005

CMD ["/root/container_start.sh"]
3 changes: 3 additions & 0 deletions container_files/configure.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash -x

# Configure your access (e.g. rewriting grouper.installer.properties) here
22 changes: 22 additions & 0 deletions container_files/container_start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash -x

log="/tmp/start.log"

echo "Starting Container: " > $log
date >> $log
echo "" >> $log

if [ -e "/tmp/firsttimerunning" ]; then

set -e

/root/configure.sh

cd /opt/grouper/2.3.0/grouper.apiBinary-2.3.0 && GROUPER_HOME=/opt/grouper/2.3.0/grouper.apiBinary-2.3.0 bin/gsh.sh -check

rm -f /tmp/firsttimerunning
else
echo "Grouper DB already provisioned" >> $log
fi

exit 0
124 changes: 0 additions & 124 deletions grouper-install-expect.exp

This file was deleted.

0 comments on commit a96a0de

Please sign in to comment.