Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added gdg folders, ref/basis groups, subjects
wgthom committed Jun 10, 2019
1 parent dc80644 commit 31e9d88
Showing 8 changed files with 36 additions and 5 deletions.
18 changes: 15 additions & 3 deletions ex211/ex211.1.1/Dockerfile
@@ -1,6 +1,5 @@
ARG VERSION_TAG
FROM tier/gte:base-$VERSION_TAG

FROM tier/gte:101.1.1-$VERSION_TAG

LABEL author="tier-packaging@internet2.edu <tier-packaging@internet2.edu>" \
Vendor="TIER" \
@@ -10,4 +9,17 @@ LABEL author="tier-packaging@internet2.edu <tier-packaging@internet2.edu>" \

ENV USERTOKEN=gte-211.1.1

# Nothing else needed for this exercise. Start empty and end empty
COPY container_files/seed-data/ /seed-data/

RUN (/usr/sbin/slapd -h "ldap:/// ldaps:/// ldapi:///" -u ldap &) \
&& while ! curl -s ldap://localhost:389 > /dev/null; do echo waiting for ldap to start; sleep 1; done; \
(mysqld_safe & ) \
&& while ! curl -s localhost:3306 > /dev/null; do echo waiting for mysqld to start; sleep 3; done; \
cd /opt/grouper/grouper.apiBinary \
&& ldapadd -x -D cn=root,dc=internet2,dc=edu -w password -f /seed-data/users.ldif \
&& mysql grouper < /seed-data/sisData.sql \
&& bin/gsh /seed-data/bootstrap.gsh \
&& pkill -HUP slapd \
&& while curl -s ldap://localhost:389 > /dev/null; do echo waiting for ldap to stop; sleep 1; done; \
pkill -u mysql mysqld \
&& while curl -s localhost:3306 > /dev/null; do echo waiting for mysqld to stop; sleep 1; done
3 changes: 3 additions & 0 deletions ex211/ex211.1.1/container_files/seed-data/bootstrap.gsh
@@ -0,0 +1,3 @@
gs = GrouperSession.startRootSession();
delStem("101.1.1")
addRootStem("211.1.1", "211.1.1")
Empty file.
Empty file.
17 changes: 15 additions & 2 deletions ex301/ex301.4.1/Dockerfile
@@ -1,5 +1,5 @@
ARG VERSION_TAG
FROM tier/gte:base-$VERSION_TAG
FROM tier/gte:101.1.1-$VERSION_TAG

LABEL author="tier-packaging@internet2.edu <tier-packaging@internet2.edu>" \
Vendor="TIER" \
@@ -9,4 +9,17 @@ LABEL author="tier-packaging@internet2.edu <tier-packaging@internet2.edu>" \

ENV USERTOKEN=gte-301.4.1

# Nothing else needed for this exercise. Start empty and end empty
COPY container_files/seed-data/ /seed-data/

RUN (/usr/sbin/slapd -h "ldap:/// ldaps:/// ldapi:///" -u ldap &) \
&& while ! curl -s ldap://localhost:389 > /dev/null; do echo waiting for ldap to start; sleep 1; done; \
(mysqld_safe & ) \
&& while ! curl -s localhost:3306 > /dev/null; do echo waiting for mysqld to start; sleep 3; done; \
cd /opt/grouper/grouper.apiBinary \
&& ldapadd -x -D cn=root,dc=internet2,dc=edu -w password -f /seed-data/users.ldif \
&& mysql grouper < /seed-data/sisData.sql \
&& bin/gsh /seed-data/bootstrap.gsh \
&& pkill -HUP slapd \
&& while curl -s ldap://localhost:389 > /dev/null; do echo waiting for ldap to stop; sleep 1; done; \
pkill -u mysql mysqld \
&& while curl -s localhost:3306 > /dev/null; do echo waiting for mysqld to stop; sleep 1; done
3 changes: 3 additions & 0 deletions ex301/ex301.4.1/container_files/seed-data/bootstrap.gsh
@@ -0,0 +1,3 @@
gs = GrouperSession.startRootSession();
delStem("101.1.1")
addRootStem("301.4.1", "301.4.1")
Empty file.
Empty file.

0 comments on commit 31e9d88

Please sign in to comment.