Skip to content

Commit

Permalink
Create modifiedReadme.md.adoc
Browse files Browse the repository at this point in the history
  • Loading branch information
khazelton authored Nov 5, 2018
1 parent cacc05b commit 6e09f1c
Showing 1 changed file with 150 additions and 0 deletions.
150 changes: 150 additions & 0 deletions modifiedReadme.md.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
# grouper_training
A set of Grouper images that are used during I2/TIER training.

# Images

## Full Demo

```
docker run -d -p 389:389 -p 8443:443 -p 3306:3306 \
--name grouper-demo tier/grouper-training-env:full_demo
```

Browse to `https://localhost/grouper`

## Exercises

```
docker run -d -p 80:80 -p 389:389 -p 8443:443 -p 3306:3306 \
--name gte tier/grouper-training-env:exXXX
```
- Using the provided vms:
- GrouperTraining_TechEx2018_VMs: https://docs.google.com/spreadsheets/d/1l06fqGjfrAsAV5mx1N2CaR54ap6NIUZ21WNOc9Ai23s/edit#gid=0
- ssh to vm

[source,bash]
ssh -L 8443:localhost:8443 -L 15672:localhost:15672 student@52.12.8.253
student@52.12.8.253's password:
Last login: Mon Oct 15 19:28:16 2018 from 163.253.52.164
[root@ip-172-31-32-170 ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
63de5b5e2ec4 tier/grouper-training-env:ex401.2.end "/usr/local/bin/entr…" 19 hours ago Up 19 hours 80/tcp, 389/tcp, 3306/tcp, 4443/tcp, 0.0.0.0:8443->443/tcp 401.2.end
28b0fe0081de rabbitmq:management "docker-entrypoint.s…" 20 hours ago Up 20 hours 4369/tcp, 5671-5672/tcp, 15671/tcp, 25672/tcp, 0.0.0.0:15672->15672/tcp rabbitmq
[root@ip-172-31-32-170 ~]# ls -la
total 56
dr-xr-x---. 4 root root 202 Oct 10 17:41 .
dr-xr-xr-x. 17 root root 224 Jun 5 14:12 ..
-rw-------. 1 root root 6921 Jun 5 14:17 anaconda-ks.cfg
-rw-------. 1 root root 15852 Oct 15 21:54 .bash_history
-rw-r--r--. 1 root root 18 Dec 29 2013 .bash_logout
-rw-r--r--. 1 root root 176 Dec 29 2013 .bash_profile
-rw-r--r-- 1 root root 200 Oct 10 17:36 .bashrc
-rw-r--r--. 1 root root 100 Dec 29 2013 .cshrc
-rw-r--r-- 1 root root 178 Oct 10 17:41 gte-funcs.sh
-rw-------. 1 root root 6577 Jun 5 14:17 original-ks.cfg
drwxr----- 3 root root 19 Sep 20 19:39 .pki
drwx------. 2 root root 29 Aug 22 18:55 .ssh
-rw-r--r--. 1 root root 129 Dec 29 2013 .tcshrc
[root@ip-172-31-32-170 ~]# cat gte-funcs.sh
.
function gte
{
docker stop "$1" 2> /dev/null
docker rm "$1" 2> /dev/null
docker run -d -p 8443:443 --link rabbitmq:rabbitmq --name "$1" tier/grouper-training-env:ex"$1"
}
.
[root@ip-172-31-32-170 ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
63de5b5e2ec4 tier/grouper-training-env:ex401.2.end "/usr/local/bin/entr…" 19 hours ago Up 19 hours 80/tcp, 389/tcp, 3306/tcp, 4443/tcp, 0.0.0.0:8443->443/tcp 401.2.end
28b0fe0081de rabbitmq:management "docker-entrypoint.s…" 20 hours ago Up 20 hours 4369/tcp, 5671-5672/tcp, 15671/tcp, 25672/tcp, 0.0.0.0:15672->15672/tcp rabbitmq
.
[root@ip-172-31-32-170 ~]# docker stop 401.2.end
401.2.end
.
[root@ip-172-31-32-170 ~]# gte 201.1.1
4c42f2a5d0aa92340fe8953377dd079c03ca638b8c27f84a5464420e333834ee
.
[root@ip-172-31-32-170 ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
4c42f2a5d0aa tier/grouper-training-env:ex201.1.1 "/usr/local/bin/entr…" About an hour ago Up About an hour 80/tcp, 389/tcp, 3306/tcp, 4443/tcp, 0.0.0.0:8443->443/tcp 201.1.1
28b0fe0081de rabbitmq:management "docker-entrypoint.s…" 22 hours ago Up 22 hours 4369/tcp, 5671-5672/tcp, 15671/tcp, 25672/tcp, 0.0.0.0:15672->15672/tcp rabbitmq
.
- Browse to https://localhost:8443/grouper
.
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:

```
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`.

Now start the ex401 Grouper with this slightly modified command:

```bash
docker run -d -p 389:389 -p 8443:443 -p 3306:3306 \
--link rabbitmq:rabbitmq --name gte tier/grouper-training-env:exXXX

```

0 comments on commit 6e09f1c

Please sign in to comment.