Skip to content

Installer runs, passes test locally #1

Merged
1 commit merged into from
Aug 25, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ RUN mkdir -p /opt/grouper/$VERSION \
mlocate \
&& yum clean all

COPY grouper-install-expect.exp /opt/grouper/$version
COPY grouper.installer.properties /opt/grouper/$version
WORKDIR /opt/grouper/$version
RUN java -cp .:grouperInstaller.jar edu.internet2.middleware.grouperInstaller.GrouperInstaller

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

Expand Down
36 changes: 36 additions & 0 deletions grouper.installer.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# this should be before the version number
download.server.url = http://software.internet2.edu/grouper
# default version to install
grouper.version = 2.3.0
# print out autorun keys in prompts so you can easily see how to configure the autorun
grouperInstaller.print.autorunKeys = true
# default to install or upgrade (default is install)
grouperInstaller.default.installOrUpgrade = install
# where to get grouper source from, the variable $BRANCH_NAME$ will be substituted for the branch
download.source.url = https://github.com/Internet2/grouper/archive/$BRANCH_NAME$.zip
# where to get grouper psp source from, the variable $BRANCH_NAME$ will be substituted for the branch
download.pspSource.url = https://github.com/Internet2/grouper-psp/archive/$BRANCH_NAME$.zip
##############################
## Autorun properties
##
## If you uncomment one of these properties it will be used as empty, only uncomment to use
##
##############################
#### set this to true to try to use defaults for everything. Only things without default values will need to be set
grouperInstaller.autorun.useDefaultsAsMuchAsAvailable = true
########## AUTORUN PROPERTIES WITH NO DEFAULT OR ARE COMMONLY CHANGED
## Note: not all of them need to be filled out for all operations
# autorun grouper system password (its not secure to have a plain text pass in a config file)
grouperInstaller.autorun.grouperSystemPassword = XXXXXXXXXX
# autorun Enter the database URL
grouperInstaller.autorun.dbUrl = jdbc:mysql://localhost:3306/grouper
# autorun database user
grouperInstaller.autorun.dbUser = grouper
# autorun database pass (note, it is not good security to have plaintext passwords in text config files)
grouperInstaller.autorun.dbPass = XXXXXXXXXX
# autorun Do you want to init the database (delete all existing grouper tables, add new ones) (t|f)?
grouperInstaller.autorun.deleteAndInitDatabase = t
# autorun What is the location of your tomcat server.xml for the UI?
# Note, if you dont use tomcat just leave it blank or type 'blank':
grouperInstaller.autorun.locationOfTomcatServerXml = /home/grouper/2.3.0/apache-tomcat-6.0.35/conf/server.xml

16 changes: 16 additions & 0 deletions tests/image.bats
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,20 @@ load ../common

@test "Grouper directory created" {
docker run -i $maintainer/$imagename find /opt/grouper/$version
}

@test "API binary directory created" {
docker run -i $maintainer/$imagename find /opt/grouper/$version/grouper.apiBinary-$version
}

@test "Client binary directory created" {
docker run -i $maintainer/$imagename find /opt/grouper/$version/grouper.clientBinary-$version
}

@test "UI directory created" {
docker run -i $maintainer/$imagename find /opt/grouper/$version/grouper.ui-$version
}

@test "WS directory created" {
docker run -i $maintainer/$imagename find /opt/grouper/$version/grouper.ws-$version
}