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
Loading status checks…
Merge pull request #25 from docker/201911
updating master with latest from 201911 temple training
Showing
207 changed files
with
26,992 additions
and
568 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
localManualBuild.sh | ||
runContainer.sh | ||
tmp | ||
tmp | ||
.vscode/spellright.dict | ||
.vscode/settings.json | ||
.DS_Store | ||
_build |
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,97 +1,72 @@ | ||
# grouper_training | ||
A set of Grouper images that are used during I2/TIER training. | ||
# Grouper Training Environment | ||
|
||
# Images | ||
The Grouper Training Environment (gte) is a set of docker images that contain | ||
all the software components, configuration, and setup necessary to complete the | ||
InCommon Grouper Training course. Each docker image tag coincides with a | ||
particular course, exercise, step, and the overall gte version. For example, | ||
the gte image tag for Grouper Basics 101 is 101.1.1-201906. The docker command | ||
to run the image for the 101 course is: | ||
|
||
## Full Demo | ||
``` bash | ||
|
||
docker run -d -p 80:80 -p 389:389 -p 8443:443 -p 3306:3306 \ | ||
--name 101.1.1 tier/gte:101.1.1-201906 | ||
|
||
``` | ||
docker run -d -p 389:389 -p 8443:443 -p 3306:3306 \ | ||
--name grouper-demo tier/grouper-training-env:full_demo | ||
|
||
This will start Grouper, a Shibboleth IdP, OpenLDAP, mySQL, and other components. It will take a little while for the container to be ready. You can watch the logs as the various components are coming up with this command: | ||
|
||
``` bash | ||
docker logs -f 101.1.1 | ||
``` | ||
|
||
Browse to `https://localhost/grouper` | ||
Once the container is ready, browse to <https://localhost:8443/grouper> to access the Grouper UI and log in with one of the following: | ||
|
||
## Exercises | ||
- Grouper Administrator | ||
- username: `banderson`, password: `password` | ||
- Normal User | ||
- username: `jsmith`, password: `password` | ||
|
||
``` | ||
The container has a few other applications running. phpMyAdmin provides an admin interface to the Grouper mySQL database. phpLDAPadmin provides an admin interface to OpenLDAP. Finally, there is a sample application that displays subject attributes for the user that is logged in. | ||
|
||
- phpMyAdmin <https://localhost:8443/phpmyadmin/> | ||
- username: `root`, password: (blank) | ||
- phpLDAPadmin <https://localhost:8443/phpldapadmin/> | ||
- username: `cn=root,dc=internet2,dc=edu`, password: `password` | ||
- Shibboleth SP subject attributes <https://localhost:8443/app> | ||
|
||
All of the gte image tags are published to <https://hub.docker.com/r/tier/gte>. To use a particular image tag, run: | ||
|
||
``` bash | ||
docker run -d -p 80:80 -p 389:389 -p 8443:443 -p 3306:3306 \ | ||
--name gte tier/grouper-training-env:exXXX | ||
--name {coures}.{exercise}.{step} tier/gte:{VERSION_TAG} | ||
``` | ||
|
||
Current tags: | ||
- ex101.1.1 | ||
- ex201.1.1 | ||
- ex201.1.end | ||
- ex201.2.1 | ||
- ex201.2.end | ||
- ex201.3.1 | ||
- ex201.3.end | ||
- ex201.4.1 | ||
- ex201.4.end | ||
- ex201.5.1 | ||
- ex201.5.end | ||
- ex211.1.1 | ||
- ex301.4.1 | ||
- ex401.1.1 | ||
- ex401.1.2 | ||
- ex401.1.3 | ||
- ex401.1.4 | ||
- ex401.1.5 | ||
- ex401.1.6 | ||
- ex401.1.end | ||
- ex401.2.1 | ||
- ex401.2.2 | ||
- ex401.2.3 | ||
- ex401.2.4 | ||
- ex401.2.5 | ||
- ex401.2.6 | ||
- ex401.2.7 | ||
- ex401.2.8 | ||
- ex401.2.9 | ||
- ex401.2.end | ||
- ex401.3.1 | ||
- ex401.3.2 | ||
- ex401.3.3 | ||
- ex401.3.4 | ||
- ex401.3.5 | ||
- ex401.3.6 | ||
- ex401.3.7 | ||
- ex401.3.end | ||
- ex401.4.1 | ||
- ex401.4.end | ||
|
||
Browse to `https://localhost:8443/grouper` for Grouper. There is also an app that dumps the SP user attributes at `https://localhost:8443/app`. | ||
|
||
# Users | ||
- `banderson`/`password`: Grouper Administrator | ||
- `jsmith`/`password`: standard user | ||
- additional users can be found in <https://github.internet2.edu/docker/grouper_training/blob/master/base/container_files/seed-data/users.ldif#L56> | ||
|
||
# Help apps | ||
|
||
- phpMyAdmin - https://localhost:8443/phpmyadmin/ - username: `root`, password: (blank) | ||
- phpLDAPadmin - https://localhost:8443/phpldapadmin/ - username: `cn=root,dc=internet2,dc=edu`, password: `password` | ||
|
||
|
||
# Course specific notes | ||
|
||
## Notes for the exercises in 401 | ||
|
||
Before connecting to your SSH server, be sure to port forward a local port to the server's port `15672` as well. | ||
|
||
These exercises require Rabbit MQ to be started. Before starting the ex401 Grouper container, run: | ||
Where {VERSION_TAG} takes the form of {course}.{exercise}.{step}-{version}. For example: | ||
|
||
``` bash | ||
docker run -d -p 80:80 -p 389:389 -p 8443:443 -p 3306:3306 \ | ||
--name 101.1.1 tier/gte:101.1.1-201906 | ||
``` | ||
docker run -d -p 15672:15672 --env RABBITMQ_NODENAME=docker-rabbit --hostname rabbitmq --name=rabbitmq rabbitmq:management | ||
|
||
More information about Grouper Training can be found on the Internet2 wiki: | ||
<https://spaces.at.internet2.edu/display/Grouper/Grouper+Training+Environment>. | ||
|
||
## RabbitMQ for 401 exercises | ||
|
||
The 401 exercises require RabbitMQ. Before starting the 401 docker images, | ||
start RabbitMQ and a queue named `grouper`. | ||
|
||
``` bash | ||
docker run -d -p 15672:15672 --env RABBITMQ_NODENAME=docker-rabbit \ | ||
--hostname rabbitmq --name=rabbitmq rabbitmq:management | ||
``` | ||
|
||
Now browse to http://localhost:15672/ and login with `guest`/`guest`, and create a new queue named `grouper`. | ||
Then browse to <http://localhost:15672/> and login with `guest`/`guest`, and create a new queue named `grouper`. | ||
|
||
Now start the ex401 Grouper with this slightly modified command: | ||
Finally, start the 401 series gte with this slightly modified command: | ||
|
||
```bash | ||
``` bash | ||
docker run -d -p 389:389 -p 8443:443 -p 3306:3306 \ | ||
--link rabbitmq:rabbitmq --name gte tier/grouper-training-env:exXXX | ||
|
||
--link rabbitmq:rabbitmq --name {coures}.{exercise}.{step} tier/gte:{VERSION_TAG} | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# The configuration editor in grouper is very sensitive. If you can only allow certain source IP addresses | ||
# it will add another layer of security. Otherwise allow 0.0.0.0/0 and all will be allowed | ||
# If this configuration item is not filled in, then none are allowed | ||
# you can configure multiple CIDR addresses or networks comma separated, e.g. 1.2.3.4/32, 2.3.4.5/24 | ||
grouperUi.configurationEditor.sourceIpAddresses = 0.0.0.0/0 |
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
Binary file added
BIN
+13.4 KB
base/container_files/shibboleth-idp/edit-webapp/images/Grouper_204px.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions
6
base/container_files/shibboleth-idp/messages/messages.properties
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,6 @@ | ||
# You can define message properties here to override messages defined in | ||
# system/messages/ or to add your own messages. | ||
idp.title = InCommon Trusted Access Platform - Grouper Training Environment | ||
idp.logo = /images/Grouper_204px.png | ||
idp.logo.alt-text = Grouper | ||
idp.footer = InCommon Trusted Access Platform - Grouper Training Environment |
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
Oops, something went wrong.