Skip to content

2.4.0 a31 u14 w3 p3 20190304 #57

Merged
merged 79 commits into from Mar 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
13421ac
Update grouper.installer.properties
chubing Aug 18, 2018
9c931a0
Update grouper.installer.properties
chubing Aug 18, 2018
8dc34ff
Update grouper.installer.properties
chubing Aug 18, 2018
369cf6c
Update Dockerfile
chubing Aug 18, 2018
5f638eb
Update grouper.installer.properties
chubing Aug 18, 2018
63af7e0
Update grouper.installer.properties
chubing Aug 18, 2018
31f29bc
Update Dockerfile
chubing Aug 18, 2018
46679ff
Update Dockerfile
chubing Aug 18, 2018
fed93af
Update Dockerfile
chubing Aug 18, 2018
effd79f
Update grouper.installer.properties
chubing Aug 28, 2018
218db17
Update grouper.installer.properties
chubing Aug 29, 2018
034f4cb
Update grouper.installer.properties
chubing Aug 31, 2018
059b9a9
config changes for 2.4
chubing Sep 4, 2018
3945cc1
Merge branch '2.4-test' of https://github.internet2.edu/docker/groupe…
chubing Sep 4, 2018
f36b856
2.4 config updates
chubing Sep 7, 2018
e4af63f
fixed web.xml shib for 2.4
chubing Sep 10, 2018
1b3d216
Added folders per the TIER Grouper Deployment Guide
chubing Sep 10, 2018
6786a42
Removed unneeded line
chubing Sep 10, 2018
f08da34
Update README.md
chubing Sep 10, 2018
5f5120a
Update grouper.installer.properties
chubing Sep 10, 2018
a8a634e
Update README.md
chubing Sep 11, 2018
442c07f
api patch 1
chubing Sep 16, 2018
20aedfd
API patch 2
chubing Sep 18, 2018
454e7c6
Update README.md
chubing Oct 1, 2018
1f1797d
Testing Aqua Microscanner
chubing Oct 2, 2018
c83210b
testing clair scanner in jenkins
chubing Oct 4, 2018
9445f31
Update Jenkinsfile
chubing Oct 4, 2018
298594f
hard coding image name temporarily
chubing Oct 4, 2018
b156912
Update Jenkinsfile
chubing Oct 4, 2018
6d0199c
Update Jenkinsfile
chubing Oct 4, 2018
846dc96
Update Jenkinsfile
chubing Oct 4, 2018
a4fa056
Update Jenkinsfile
chubing Oct 4, 2018
c08db92
Update Jenkinsfile
chubing Oct 4, 2018
fdfd1f6
Create clairscan.sh
chubing Oct 8, 2018
d5241b5
Create main.bats
chubing Oct 8, 2018
91c611f
Update Jenkinsfile
chubing Oct 8, 2018
a783a1a
Update Jenkinsfile
chubing Oct 8, 2018
e566718
added x bit
chubing Oct 8, 2018
d37730b
Update Jenkinsfile
chubing Oct 8, 2018
effd521
Update main.bats
chubing Oct 8, 2018
5a963c1
Update main.bats
chubing Oct 8, 2018
4cc64f0
Update main.bats
chubing Oct 8, 2018
cf745da
Update main.bats
chubing Oct 8, 2018
5c9e23c
Update main.bats
chubing Oct 8, 2018
7d975ab
Update main.bats
chubing Oct 8, 2018
1b24c3b
Update Jenkinsfile
chubing Oct 8, 2018
fe4fdf4
Update Jenkinsfile
chubing Oct 9, 2018
ffd56bd
Update Jenkinsfile
chubing Oct 9, 2018
5f9098a
Update Jenkinsfile
chubing Oct 9, 2018
f0eae16
Update main.bats
chubing Oct 9, 2018
44b1d57
Update Jenkinsfile
chubing Oct 9, 2018
515c650
Update main.bats
chubing Oct 9, 2018
d179cf7
Update main.bats
chubing Oct 9, 2018
0046363
Update main.bats
chubing Oct 9, 2018
2701cfa
Update grouper.installer.properties
chubing Oct 16, 2018
7ea8949
API patch 3
chubing Nov 1, 2018
cada700
Update grouper.installer.properties
chubing Nov 7, 2018
6f9502e
a11-u5-w0-p0
chubing Dec 7, 2018
de3486b
Update Jenkinsfile
chubing Dec 7, 2018
67cf458
Update grouper.installer.properties
chubing Jan 4, 2019
9891cf0
Update Jenkinsfile
chubing Jan 4, 2019
b12c150
Update Dockerfile
chubing Jan 4, 2019
f760521
Update Dockerfile
chubing Jan 4, 2019
bfa62a7
Update Dockerfile
chubing Jan 4, 2019
39679df
Update grouper.installer.properties
chubing Jan 7, 2019
ed2fbd5
Update grouper.installer.properties
chubing Jan 7, 2019
661fb87
Update grouper.installer.properties
chubing Jan 8, 2019
8784d75
Update grouper.installer.properties
chubing Jan 15, 2019
79be192
Update grouper.installer.properties
chubing Jan 17, 2019
3bf230f
Update grouper.installer.properties
chubing Jan 29, 2019
ab1f948
Update grouper.installer.properties
chubing Feb 6, 2019
f32bc06
Update grouper.installer.properties
chubing Feb 7, 2019
795bd16
Update grouper.installer.properties
chubing Feb 8, 2019
8ebeef1
Update grouper.installer.properties
chubing Feb 11, 2019
08e687a
Update grouper.installer.properties
chubing Feb 17, 2019
71bc2ee
Update README.md
chubing Feb 26, 2019
6275b35
Update Jenkinsfile
chubing Feb 26, 2019
80ab130
Update grouper.installer.properties
chubing Mar 4, 2019
dbfb509
Merge branch 'master' into 2.4.0-a31-u14-w3-p3-20190304
chubing Mar 7, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 12 additions & 5 deletions Dockerfile
Expand Up @@ -3,9 +3,12 @@ FROM centos:centos7 as installing
RUN yum update -y \
&& yum install -y wget tar unzip dos2unix \
&& yum clean all

ARG GROUPER_CONTAINER_VERSION

ENV GROUPER_VERSION=2.3.0 \
JAVA_HOME=/usr/lib/jvm/zulu-8/
ENV GROUPER_VERSION=2.4.0 \
JAVA_HOME=/usr/lib/jvm/zulu-8/ \
GROUPER_CONTAINER_VERSION=$GROUPER_CONTAINER_VERSION

# use Zulu package
RUN rpm --import http://repos.azulsystems.com/RPM-GPG-KEY-azulsystems \
Expand Down Expand Up @@ -46,7 +49,7 @@ RUN echo 'Installing Grouper'; \

FROM centos:centos7 as cleanup

ENV GROUPER_VERSION=2.3.0 \
ENV GROUPER_VERSION=2.4.0 \
TOMCAT_VERSION=8.5.12 \
TOMEE_VERSION=7.0.0

Expand Down Expand Up @@ -93,10 +96,13 @@ LABEL author="tier-packaging@internet2.edu <tier-packaging@internet2.edu>" \
ImageType="Grouper" \
ImageName=$imagename \
ImageOS=centos7

ARG GROUPER_CONTAINER_VERSION

ENV JAVA_HOME=/usr/lib/jvm/zulu-8/ \
PATH=$PATH:$JAVA_HOME/bin \
GROUPER_HOME=/opt/grouper/grouper.apiBinary
GROUPER_HOME=/opt/grouper/grouper.apiBinary \
GROUPER_CONTAINER_VERSION=$GROUPER_CONTAINER_VERSION

RUN ln -sf /usr/share/zoneinfo/UTC /etc/localtime

Expand All @@ -118,7 +124,8 @@ RUN groupadd -r tomcat \
&& chown -R tomcat:tomcat /opt/tomee/logs/ /opt/tomee/temp/ /opt/tomee/work/ \
&& ln -s $JAVA_HOME/bin/java /etc/alternatives/java

RUN rm /etc/shibboleth/sp-key.pem /etc/shibboleth/sp-cert.pem
# does shib sp3 not generate these files?
# RUN rm /etc/shibboleth/sp-key.pem /etc/shibboleth/sp-cert.pem

COPY container_files/tier-support/ /opt/tier-support/
COPY container_files/usr-local-bin/ /usr/local/bin/
Expand Down
61 changes: 52 additions & 9 deletions Jenkinsfile
Expand Up @@ -27,6 +27,9 @@ pipeline {
sh 'rm -rf ../bin/*'
sh 'mv ./bin/* ../bin/.'
}
// Build and test scripts expect that 'tag' is present in common.bash. This is necessary for both Jenkins and standalone testing.
// We don't care if there are more 'tag' assignments there. The latest one wins.
sh "echo >> common.bash ; echo \"tag=\\\"${tag}\\\"\" >> common.bash ; echo common.bash ; cat common.bash"
}
}
}
Expand All @@ -47,15 +50,55 @@ pipeline {
stage('Build') {
steps {
script {
docker.withRegistry('https://registry.hub.docker.com/', "dockerhub-$maintainer") {
def baseImg = docker.build("$maintainer/$imagename", "--no-cache .")
// test the environment
sh 'cd test-compose && ./compose.sh'
// bring down after testing
sh 'cd test-compose && docker-compose down'
baseImg.push("$tag")
}
}
try{
docker.withRegistry('https://registry.hub.docker.com/', "dockerhub-$maintainer") {
baseImg = docker.build("$maintainer/$imagename", "--build-arg GROUPER_CONTAINER_VERSION=$tag --no-cache .")
}
} catch(error) {
def error_details = readFile('./debug');
def message = "BUILD ERROR: There was a problem building ${imagename}:${tag}. \n\n ${error_details}"
sh "rm -f ./debug"
handleError(message)
}
}
}
}
stage('Test') {
steps {
script {
try {
sh 'bin/test.sh 2>&1 | tee debug ; test ${PIPESTATUS[0]} -eq 0'
} catch (error) {
def error_details = readFile('./debug')
def message = "BUILD ERROR: There was a problem testing ${imagename}:${tag}. \n\n ${error_details}"
sh "rm -f ./debug"
handleError(message)
}
}
}
}

stage('Push') {
steps {
script {
//// scan the image with clair
// sh 'docker run -p 5432:5432 -d --name clairdb arminc/clair-db:latest'
// sh 'docker run -p 6060:6060 --link clairdb:postgres -d --name clair arminc/clair-local-scan:v2.0.5'
// sh 'curl -L -o clair-scanner https://github.com/arminc/clair-scanner/releases/download/v8/clair-scanner_linux_amd64'
// sh 'chmod 755 clair-scanner'
// sh "./clair-scanner --ip 172.17.0.1 -r test.out $maintainer/$imagename:latest"
//// test the environment
// sh 'docker kill clairdb'
// sh 'docker rm clairdb'
// sh 'docker kill clair'
// sh 'docker rm clair'
// sh 'cd test-compose && ./compose.sh'
//// bring down after testing
//sh 'cd test-compose && docker-compose down'
docker.withRegistry('https://registry.hub.docker.com/', "dockerhub-$maintainer") {
baseImg.push("$tag")
}
}
}
}
stage('Notify') {
Expand Down
12 changes: 11 additions & 1 deletion README.md
@@ -1,6 +1,16 @@
[![Build Status](https://jenkins.testbed.tier.internet2.edu/job/docker/job/grouper/job/master/badge/icon)](https://jenkins.testbed.tier.internet2.edu/job/docker/job/grouper/job/master/)
[![Build Status](https://jenkins.testbed.tier.internet2.edu/buildStatus/icon?job=docker/grouper/2.4.0-a29-u14-w3-p2-20190217)](https://jenkins.testbed.tier.internet2.edu/buildStatus/icon?job=docker/grouper/2.4.0-a29-u14-w3-p2-20190217)



# Upgrading from 2.3 to 2.4

If upgrading from Grouper version 2.3 to 2.4 and using LDAP, modifications will be needed in subject.properties and grouper-loaders.proprties. Further details about this can be found at the following URL:
https://spaces.at.internet2.edu/display/Grouper/vt-ldap+to+ldaptive+migration+for+LDAP+access

In particular, in subject.properties, *.param.base.value should be adjusted to only contain the RDN (Relative Distinguished Name), not the full DN. For example, "OU=People", not "OU=People,DC=domain,DC=edu"

Additional upgrade information can be found at the following URL: https://spaces.at.internet2.edu/display/Grouper/v2.4+Upgrade+Instructions+from+v2.3

# Supported tags

- latest
Expand Down
15 changes: 10 additions & 5 deletions container_files/grouper.installer.properties
@@ -1,7 +1,7 @@
# this should be before the version number
download.server.url = https://software.internet2.edu/grouper
# default version to install
grouper.version = 2.3.0
grouper.version = 2.4.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)
Expand All @@ -16,7 +16,8 @@ grouperInstaller.default.installOrUpgrade = install

grouperInstaller.autorun.installAllPatches = false
grouperInstaller.autorun.installPatchesUpToACertainPatchLevel = true
grouperInstaller.autorun.installPatchesUpToThesePatchLevels = grouper_v2_3_0_api_patch_109,grouper_v2_3_0_ui_patch_47,grouper_v2_3_0_ws_patch_13,grouper_v2_3_0_pspng_patch_24
grouperInstaller.autorun.installPatchesUpToThesePatchLevels = grouper_v2_4_0_api_patch_31,grouper_v2_4_0_ui_patch_14,grouper_v2_4_0_ws_patch_3,grouper_v2_4_0_pspng_patch_3


#### 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
Expand All @@ -30,10 +31,14 @@ grouperInstaller.autorun.addQuickstartData = f
grouperInstaller.autorun.installClient = f

grouperInstaller.autorun.installGrouperActiveMqMessaging = f
grouperInstaller.autorun.activeMqWhereInstalled = /opt/grouper/2.3.0/grouper.apiBinary-2.3.0/
grouperInstaller.autorun.activeMqWhereInstalled = /opt/grouper/2.4.0/grouper.apiBinary-2.4.0/

grouperInstaller.autorun.installGrouperAwsSqsMessaging = t
grouperInstaller.autorun.AwsSqsWhereInstalled = /opt/grouper/2.3.0/grouper.apiBinary-2.3.0/
grouperInstaller.autorun.AwsSqsWhereInstalled = /opt/grouper/2.4.0/grouper.apiBinary-2.4.0/

grouperInstaller.autorun.installGrouperRabbitMqMessaging = t
grouperInstaller.autorun.rabbitMqWhereInstalled = /opt/grouper/2.3.0/grouper.apiBinary-2.3.0/
grouperInstaller.autorun.rabbitMqWhereInstalled = /opt/grouper/2.4.0/grouper.apiBinary-2.4.0/

# disable installing pspng, for now
grouperInstaller.autorun.installPspng = t
grouperInstaller.autorun.installPsp = f