Skip to content

Commit

Permalink
update grouper and midpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
pcaskey committed Aug 9, 2023
1 parent 1e22ead commit 7e560ed
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
# e.g. hsqldb (b): jdbc:hsqldb:hsql://localhost:9001/grouper
# e.g. postgres: jdbc:postgresql://localhost:5432/database
# e.g. mssql: jdbc:sqlserver://localhost:3280;databaseName=grouper
hibernate.connection.url = jdbc:mysql://grouper_data:3306/grouper?CharSet=utf8&useUnicode=true&characterEncoding=utf8
hibernate.connection.url = jdbc:postgresql://grouper-data:5432/grouper

hibernate.connection.username = grouper
hibernate.connection.username = grouper
# If you are using an empty password, depending upon your version of
# Java and Ant you may need to specify a password of "".
# Note: you can keep passwords external and encrypted: https://bugs.internet2.edu/jira/browse/GRP-122
# hibernate.connection.password.elConfig = ${java.lang.System.getenv().get('GROUPER_DATABASE_PASSWORD_FILE') != null ? org.apache.commons.io.FileUtils.readFileToString(java.lang.System.getenv().get('GROUPER_DATABASE_PASSWORD_FILE'), "utf-8") : java.lang.System.getenv().get('GROUPER_DATABASE_PASSWORD') }
hibernate.connection.password = password
hibernate.connection.password = password

8 changes: 4 additions & 4 deletions Workbench/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "3.3"
services:
grouper_daemon:
build: ./grouper_daemon/
command: bash -c "while ! curl -s grouper_data:3306 > /dev/null; do echo waiting for mysql on grouper_data to start; sleep 3; done; while ! curl -s ldap://directory:389 > /dev/null; do echo waiting for ldap on directory to start; sleep 3; done; exec daemon"
command: bash -c "while ! nc -z grouper-data 5432; do echo waiting for pgsql on grouper_data to start; sleep 3; done; while ! nc -z directory 389 > /dev/null; do echo waiting for ldap on directory to start; sleep 3; done; exec daemon"
depends_on:
- grouper_data
- directory
Expand Down Expand Up @@ -48,7 +48,7 @@ services:
context: ./grouper_ui/
args:
- CSPHOSTNAME
command: bash -c "while ! curl -s grouper_data:3306 > /dev/null; do echo waiting for mysql on grouper_data to start; sleep 3; done; while ! curl -s ldap://directory:389 > /dev/null; do echo waiting for ldap on directory to start; sleep 3; done; exec ui"
command: bash -c "while ! nc -z grouper-data 5432; do echo waiting for pgsql on grouper_data to start; sleep 3; done; while ! nc -z directory 389 > /dev/null; do echo waiting for ldap on directory to start; sleep 3; done; exec ui"
depends_on:
- grouper_data
- directory
Expand Down Expand Up @@ -109,7 +109,7 @@ services:
target: /opt/grouper/grouperWebapp/WEB-INF/classes/subject.properties
grouper_ws:
build: ./grouper_ws/
command: bash -c "while ! curl -s grouper_data:3306 > /dev/null; do echo waiting for mysql to start; sleep 3; done; while ! curl -s ldap://directory:389 > /dev/null; do echo waiting for ldap to start; sleep 3; done; exec ws"
command: bash -c "while ! nc -z grouper_data 5432; do echo waiting for pgsql to start; sleep 3; done; while ! nc -z directory 389; do echo waiting for ldap to start; sleep 3; done; exec ws"
depends_on:
- grouper_data
- directory
Expand Down Expand Up @@ -248,7 +248,7 @@ services:
- comanage_midpoint_data:/var/lib/postgresql/data

data_init:
image: i2incommon/midpoint:4.6
image: i2incommon/midpoint:4.7.1
command: >
bash -c "
chmod 777 /opt/mp-pw/ ;
Expand Down
4 changes: 3 additions & 1 deletion Workbench/grouper_daemon/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM i2incommon/grouper:4.4.0
FROM i2incommon/grouper:4.5.2

LABEL author="tier-packaging@internet2.edu <tier-packaging@internet2.edu>"

RUN yum -y install netcat

12 changes: 7 additions & 5 deletions Workbench/grouper_data/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM i2incommon/grouper:4.4.0
FROM i2incommon/grouper:4.5.2

LABEL author="tier-packaging@internet2.edu <tier-packaging@internet2.edu>"

Expand All @@ -21,10 +21,12 @@ RUN sudo -u postgres initdb -D /var/lib/pgsql/data/ --username=postgres --pwfile
#create grouper DB
RUN sudo -u postgres pg_ctl start -D /var/lib/pgsql/data/ \
&& psql -U postgres -f /createSQLuser.sql \
&& /opt/grouper/grouperWebapp/WEB-INF/bin/gsh.sh -registry -check -runscript -noprompt && \
/opt/grouper/grouperWebapp/WEB-INF/bin/gsh.sh /tmp/initialize.gsh && \
/opt/grouper/grouperWebapp/WEB-INF/bin/gsh.sh /tmp/set-prov.gsh
&& /opt/grouper/grouperWebapp/WEB-INF/bin/gsh.sh -registry -check -runscript -noprompt \
&& /opt/grouper/grouperWebapp/WEB-INF/bin/gsh.sh /tmp/initialize.gsh \
&& /opt/grouper/grouperWebapp/WEB-INF/bin/gsh.sh /tmp/set-prov.gsh

RUN echo "host all all 0.0.0.0/0 trust" >> /var/lib/pgsql/data/pg_hba.conf

EXPOSE 5432

CMD sudo -u postgres postgres -D /var/lib/pgsql/data/
CMD sudo -u postgres postgres -c listen_addresses='*' -D /var/lib/pgsql/data/
6 changes: 3 additions & 3 deletions Workbench/grouper_data/container_files/sql/createSQLuser.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CREATE USER grouper PASSWORD 'password';
CREATE DATABASE grouper;
CREATE USER grouper WITH PASSWORD 'password';
CREATE SCHEMA grouper;
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA grouper TO grouper;
GRANT ALL PRIVILEGES ON DATABASE grouper TO grouper;
ALTER DATABASE grouper OWNER TO grouper;
3 changes: 2 additions & 1 deletion Workbench/grouper_ui/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM i2incommon/grouper:4.4.0
FROM i2incommon/grouper:4.5.2

LABEL author="tier-packaging@internet2.edu <tier-packaging@internet2.edu>"

Expand All @@ -7,6 +7,7 @@ ENV CSPHOSTNAME=$CSPHOSTNAME
ENV GROUPER_UI_CONFIGURATION_EDITOR_SOURCEIPADDRESSES='0.0.0.0/0'

RUN yum -y update
RUN yum -y install netcat

COPY container_files/shibboleth/idp-metadata.xml /etc/shibboleth/

Expand Down
4 changes: 3 additions & 1 deletion Workbench/grouper_ws/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
FROM i2incommon/grouper:4.4.0
FROM i2incommon/grouper:4.5.2

LABEL author="tier-packaging@internet2.edu <tier-packaging@internet2.edu>"

RUN yum -y install netcat

COPY container_files/web.xml /opt/grouper/grouperWebapp/WEB-INF/
COPY container_files/tomcat-users.xml /opt/tomee/conf/
COPY container_files/server.xml /opt/tomee/conf/
Expand Down
2 changes: 1 addition & 1 deletion Workbench/midpoint_server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM i2incommon/midpoint:4.6
FROM i2incommon/midpoint:4.7.1

ARG CSPHOSTNAME=localhost
ENV CSPHOSTNAME=$CSPHOSTNAME
Expand Down
4 changes: 2 additions & 2 deletions Workbench/webproxy/container_files/httpd/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ <h3>Welcome to the InCommon TAP Workbench!</h3>
The system contains the following TAP components (click the links to access each component in its own tab):

<ul>
<li><a href="https://__CSPHOSTNAME__/grouper" target="TAP-WB-GROUPER">Grouper (2.6.19)</a></li>
<li><a href="https://__CSPHOSTNAME__/midpoint" target="TAP-WB-MIDPOINT">midPoint (4.6)</a></li>
<li><a href="https://__CSPHOSTNAME__/grouper" target="TAP-WB-GROUPER">Grouper (4.5.2)</a></li>
<li><a href="https://__CSPHOSTNAME__/midpoint" target="TAP-WB-MIDPOINT">midPoint (4.7.1)</a></li>
<ul><li><a href="https://__CSPHOSTNAME__/midPoint-doc.html" target="TAP-WB-MIDPOINT-CONFIG">Technical doc on midPoint's configuration</a></li></ul>
<li><a href="https://__CSPHOSTNAME__/registry" target="TAP-WB-COMANAGE">COmanage Registry (4.1.0)</a></li>
<li><a href="https://__CSPHOSTNAME__/idpui/" target="TAP-WB-IDPUI">Shibboleth IdP UI (1.18.0)</a></li>
Expand Down

0 comments on commit 7e560ed

Please sign in to comment.