Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
minor tweaks 4.1 and 4.2, 4.3 and 4.4 started/scaffolded
John Gasper
committed
Sep 13, 2018
1 parent
e880dbe
commit 4885fb4
Showing
47 changed files
with
388 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
gs = GrouperSession.startRootSession(); | ||
|
||
addGroup("app:mfa:ref", "NonFacultyBannerINB", "NonFacultyBannerINB"); | ||
addMember("app:mfa:mfa_enabled_allow", "app:mfa:ref:NonFacultyBannerINB"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
gs = GrouperSession.startRootSession(); | ||
|
||
addGroup("app:mfa:ref", "BannerUsersMinusFaculty", "BannerUsersMinusFaculty"); | ||
addComposite("app:mfa:ref:BannerUsersMinusFaculty", CompositeType.COMPLEMENT, "app:mfa:ref:NonFacultyBannerINB", "ref:faculty"); | ||
addMember("app:mfa:mfa_enabled_allow", "app:mfa:ref:BannerUsersMinusFaculty") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
gs = GrouperSession.startRootSession(); | ||
|
||
addGroup("basis", "bypass", "bypass"); | ||
addComposite("app:mfa:ref:mfa_opt_in_access", CompositeType.COMPLEMENT, "basis:bypass", "ref:opt-in"); | ||
addGroup("ref", "bypass-not-opt-in", "bypass-not-opt-in"); | ||
addMember("app:mfa:mfa_enabled_deny", "ref:bypass-not-opt-in"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM tier/grouper-training-env:ex401.2.end | ||
|
||
LABEL author="tier-packaging@internet2.edu <tier-packaging@internet2.edu>" \ | ||
Vendor="TIER" \ | ||
ImageType="Grouper Training" \ | ||
ImageName=$imagename \ | ||
ImageOS=centos7 | ||
|
||
ENV USERTOKEN=ex401.3.1 | ||
|
||
COPY container_files/seed-data/ /seed-data/ | ||
|
||
RUN . /usr/local/bin/library.sh \ | ||
&& prepConf; \ | ||
(/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
gs = GrouperSession.startRootSession(); |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM tier/grouper-training-env:ex401.3.1 | ||
|
||
LABEL author="tier-packaging@internet2.edu <tier-packaging@internet2.edu>" \ | ||
Vendor="TIER" \ | ||
ImageType="Grouper Training" \ | ||
ImageName=$imagename \ | ||
ImageOS=centos7 | ||
|
||
ENV USERTOKEN=ex401.3.2 | ||
|
||
COPY container_files/seed-data/ /seed-data/ | ||
|
||
RUN . /usr/local/bin/library.sh \ | ||
&& prepConf; \ | ||
(/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
gs = GrouperSession.startRootSession(); | ||
|
||
# SET THESE | ||
parent_stem_path = "app"; | ||
app_extension = "baz"; | ||
app_name = ""; | ||
|
||
|
||
if (!app_name?.trim()) | ||
{ | ||
app_name = app_extension; | ||
} | ||
|
||
def makeStemInheritable(obj, stemName, groupName, priv="admin") { | ||
baseStem = obj.getStems(stemName)[0]; | ||
aGroup = obj.getGroups(groupName)[0]; | ||
RuleApi.inheritGroupPrivileges( | ||
SubjectFinder.findRootSubject(), | ||
baseStem, | ||
Stem.Scope.SUB, | ||
aGroup.toSubject(), | ||
Privilege.getInstances(priv) | ||
); | ||
RuleApi.runRulesForOwner(baseStem); | ||
if(priv == 'admin') | ||
{ | ||
RuleApi.inheritFolderPrivileges( | ||
SubjectFinder.findRootSubject(), | ||
baseStem, | ||
Stem.Scope.SUB, | ||
aGroup.toSubject(), | ||
Privilege.getInstances("stem, create")); | ||
} | ||
RuleApi.runRulesForOwner(baseStem); | ||
} | ||
|
||
stem = addStem(parent_stem_path, app_extension, app_name); | ||
etc_stem = addStem(stem.name, "etc", "etc"); | ||
admin_group_name = "${app_extension}_app_admins"; | ||
admin_group = addGroup(etc_stem.name, admin_group_name, admin_group_name); | ||
admin_group.grantPriv(admin_group.toMember().getSubject(), AccessPrivilege.ADMIN); | ||
|
||
mgr_group_name = "${app_extension}_app_mgr"; | ||
mgr_group = addGroup(etc_stem.name, mgr_group_name, mgr_group_name); | ||
mgr_group.grantPriv(admin_group.toMember().getSubject(), AccessPrivilege.ADMIN); | ||
mgr_group.grantPriv(mgr_group.toMember().getSubject(), AccessPrivilege.UPDATE); | ||
mgr_group.grantPriv(mgr_group.toMember().getSubject(), AccessPrivilege.READ); | ||
|
||
view_group_name = "${app_extension}_app_viewers"; | ||
view_group = addGroup(etc_stem.name, view_group_name, view_group_name); | ||
view_group.grantPriv(view_group.toMember().getSubject(), AccessPrivilege.READ); | ||
view_group.grantPriv(admin_group.toMember().getSubject(), AccessPrivilege.ADMIN); | ||
view_group.grantPriv(mgr_group.toMember().getSubject(), AccessPrivilege.UPDATE); | ||
view_group.grantPriv(mgr_group.toMember().getSubject(), AccessPrivilege.READ); | ||
|
||
admin_group.grantPriv(view_group.toMember().getSubject(), AccessPrivilege.READ); | ||
mgr_group.grantPriv(view_group.toMember().getSubject(), AccessPrivilege.READ); | ||
|
||
# Child objects should also grant perms to these groups. | ||
makeStemInheritable(this, stem.name, admin_group.name, 'admin'); | ||
makeStemInheritable(this, stem.name, mgr_group.name, 'update'); | ||
makeStemInheritable(this, stem.name, mgr_group.name, 'read'); | ||
makeStemInheritable(this, stem.name, view_group.name, 'read'); | ||
|
||
admin_group.revokePriv(mgr_group.toMember().getSubject(), AccessPrivilege.UPDATE); |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM tier/grouper-training-env:ex401.3.2 | ||
|
||
LABEL author="tier-packaging@internet2.edu <tier-packaging@internet2.edu>" \ | ||
Vendor="TIER" \ | ||
ImageType="Grouper Training" \ | ||
ImageName=$imagename \ | ||
ImageOS=centos7 | ||
|
||
ENV USERTOKEN=ex401.3.3 | ||
|
||
COPY container_files/seed-data/ /seed-data/ | ||
|
||
RUN . /usr/local/bin/library.sh \ | ||
&& prepConf; \ | ||
(/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
gs = GrouperSession.startRootSession(); | ||
|
||
addStem("app", "boardeffect", "boardeffect"); | ||
addGroup("app:boardeffect", "cmt_fin_authorized", "cmt_fin_authorized"); | ||
addGroup("app:boardeffect", "cmt_fin_allow", "cmt_fin_allow"); | ||
addGroup("app:boardeffect", "cmt_fin_deny", "cmt_fin_deny"); | ||
|
||
addComposite("app:boardeffect:cmt_fin_authorized", CompositeType.COMPLEMENT, "app:boardeffect:cmt_fin_allow", "app:boardeffect:cmt_fin_deny"); |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM tier/grouper-training-env:ex401.3.3 | ||
|
||
LABEL author="tier-packaging@internet2.edu <tier-packaging@internet2.edu>" \ | ||
Vendor="TIER" \ | ||
ImageType="Grouper Training" \ | ||
ImageName=$imagename \ | ||
ImageOS=centos7 | ||
|
||
ENV USERTOKEN=ex401.3.4 | ||
|
||
COPY container_files/seed-data/ /seed-data/ | ||
|
||
RUN . /usr/local/bin/library.sh \ | ||
&& prepConf; \ | ||
(/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
gs = GrouperSession.startRootSession(); | ||
|
||
addGroup("app:boardeffect", "boardeffect_authorized", "boardeffect_authorized"); | ||
addGroup("app:boardeffect", "boardeffect_authorized_allow", "boardeffect_authorized_allow"); | ||
addGroup("app:boardeffect", "boardeffect_authorized_deny", "boardeffect_authorized_deny"); | ||
|
||
addComposite("app:boardeffect:boardeffect_authorized", CompositeType.COMPLEMENT, "app:boardeffect:boardeffect_authorized_allow", "app:boardeffect:boardeffect_authorized_deny"); |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM tier/grouper-training-env:ex401.3.4 | ||
|
||
LABEL author="tier-packaging@internet2.edu <tier-packaging@internet2.edu>" \ | ||
Vendor="TIER" \ | ||
ImageType="Grouper Training" \ | ||
ImageName=$imagename \ | ||
ImageOS=centos7 | ||
|
||
ENV USERTOKEN=ex401.3.5 | ||
|
||
COPY container_files/seed-data/ /seed-data/ | ||
|
||
RUN . /usr/local/bin/library.sh \ | ||
&& prepConf; \ | ||
(/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
gs = GrouperSession.startRootSession(); |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM tier/grouper-training-env:ex401.3.5 | ||
|
||
LABEL author="tier-packaging@internet2.edu <tier-packaging@internet2.edu>" \ | ||
Vendor="TIER" \ | ||
ImageType="Grouper Training" \ | ||
ImageName=$imagename \ | ||
ImageOS=centos7 | ||
|
||
ENV USERTOKEN=ex401.3.6 | ||
|
||
COPY container_files/seed-data/ /seed-data/ | ||
|
||
RUN . /usr/local/bin/library.sh \ | ||
&& prepConf; \ | ||
(/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
gs = GrouperSession.startRootSession(); |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM tier/grouper-training-env:ex401.3.6 | ||
|
||
LABEL author="tier-packaging@internet2.edu <tier-packaging@internet2.edu>" \ | ||
Vendor="TIER" \ | ||
ImageType="Grouper Training" \ | ||
ImageName=$imagename \ | ||
ImageOS=centos7 | ||
|
||
ENV USERTOKEN=ex401.3.7 | ||
|
||
COPY container_files/seed-data/ /seed-data/ | ||
|
||
RUN . /usr/local/bin/library.sh \ | ||
&& prepConf; \ | ||
(/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
gs = GrouperSession.startRootSession(); | ||
|
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM tier/grouper-training-env:ex401.3.7 | ||
|
||
LABEL author="tier-packaging@internet2.edu <tier-packaging@internet2.edu>" \ | ||
Vendor="TIER" \ | ||
ImageType="Grouper Training" \ | ||
ImageName=$imagename \ | ||
ImageOS=centos7 | ||
|
||
ENV USERTOKEN=ex401.3.end | ||
|
||
COPY container_files/seed-data/ /seed-data/ | ||
|
||
RUN . /usr/local/bin/library.sh \ | ||
&& prepConf; \ | ||
(/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
gs = GrouperSession.startRootSession(); |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM tier/grouper-training-env:ex401.3.end | ||
|
||
LABEL author="tier-packaging@internet2.edu <tier-packaging@internet2.edu>" \ | ||
Vendor="TIER" \ | ||
ImageType="Grouper Training" \ | ||
ImageName=$imagename \ | ||
ImageOS=centos7 | ||
|
||
ENV USERTOKEN=ex401.4.1 | ||
|
||
COPY container_files/seed-data/ /seed-data/ | ||
|
||
RUN . /usr/local/bin/library.sh \ | ||
&& prepConf; \ | ||
(/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
gs = GrouperSession.startRootSession(); | ||
|
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM tier/grouper-training-env:ex401.4.1 | ||
|
||
LABEL author="tier-packaging@internet2.edu <tier-packaging@internet2.edu>" \ | ||
Vendor="TIER" \ | ||
ImageType="Grouper Training" \ | ||
ImageName=$imagename \ | ||
ImageOS=centos7 | ||
|
||
ENV USERTOKEN=ex401.4.end | ||
|
||
COPY container_files/seed-data/ /seed-data/ | ||
|
||
RUN . /usr/local/bin/library.sh \ | ||
&& prepConf; \ | ||
(/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
gs = GrouperSession.startRootSession(); |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters