-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
lpaglione
committed
Nov 10, 2019
1 parent
962f318
commit e52a7b9
Showing
5 changed files
with
201 additions
and
41 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,92 @@ | ||
| --- | ||
| title: "Deploy COmanage" | ||
| teaching: 0 | ||
| exercises: 10 | ||
| questions: | ||
| - "Question here" | ||
| objectives: | ||
| - "List the objectives" | ||
| keypoints: | ||
| - "List the key takeaways for the episode" | ||
| workshopOverviewName: "COmanage Workshop: Managing Identities & Collaborations" | ||
| workshopOverviewURL: "https://github.internet2.edu/lpaglione/COmg-trainingOverview/blob/master/README.md" | ||
| lessonOverviewName: "CO201 - Installing COmanage Using Docker Images" | ||
| lessonOverviewURL: "../index.md" | ||
| previousEpisodeName: "2. Setting up variables" | ||
| previousEpisodeURL: "/_episodes/02-setupVariables.md" | ||
| nextEpisodeName: "4. First sign in" | ||
| nextEpisodeURL: "/_episodes/04-signin.md" | ||
| --- | ||
|
|
||
| # 3. Deploy COmanage | ||
|
|
||
|  | ||
|
|
||
| With our Stack (Compose) File all set, we are ready to spin up the services! | ||
|
|
||
| ## Deploy the services | ||
|
|
||
| Deploy the services using the following command. | ||
|
|
||
| ``` console | ||
| [training@registry1-private ~]$ docker stack deploy --compose-file comanage-registry-stack.yml comanage | ||
| Creating network comanage_default | ||
| Creating service comanage_database | ||
| Creating service comanage_registry | ||
| Creating service comanage_ldap | ||
| ``` | ||
|
|
||
| The three services defined in our file have been created. | ||
|
|
||
| Since we are using an AWS load balancer, it will take about a minute to "see" that the note is healthy and ready for traffic. In the meantime, let's check on the service: | ||
|
|
||
| **Review what Docker stacks are available** | ||
|
|
||
| ``` console | ||
| [training@registry1-private ~]$ docker stack ls | ||
| NAME SERVICES ORCHESTRATOR | ||
| comanage 3 Swarm | ||
| ``` | ||
|
|
||
| **Review what Docker services are running** | ||
|
|
||
| ``` console | ||
| [training@registry1-private ~]$ docker service ls | ||
| ID NAME MODE REPLICAS IMAGE PORTS | ||
| ypl33s0036a1 comanage_database replicated 1/1 mariadb:10.4.8 | ||
| 95316c0h0x5s comanage_ldap replicated 1/1 sphericalcowgroup/comanage-registry-slapd:2 *:389->389/tcp | ||
| wniftw1nguw1 comanage_registry replicated 1/1 sphericalcowgroup/comanage-registry:hotfix-3.2.x-shibboleth-sp-4 *:80->80/tcp | ||
| ``` | ||
|
|
||
| **Review the tasks for the services** | ||
|
|
||
| ``` console | ||
| [training@registry1-private ~]$ docker service ps comanage_registry | ||
| ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS | ||
| ibnk0b81b05q comanage_registry.1 sphericalcowgroup/comanage-registry:hotfix-3.2.x-shibboleth-sp-4 registry1-private.comanage.incommon.training Running Running 8 minutes ago | ||
| ``` | ||
|
|
||
| **Review the logs for the services** | ||
|
|
||
| ``` console | ||
| [training@registry1-private ~]$ docker service logs comanage_registry | ||
| comanage_registry.1.ibnk0b81b05q@registry1-private.comanage.incommon.training | 2019-11-10 22:11:31,903 CRIT Set uid to user 0 | ||
| comanage_registry.1.ibnk0b81b05q@registry1-private.comanage.incommon.training | 2019-11-10 22:11:31,905 INFO supervisord started with pid 1 | ||
| comanage_registry.1.ibnk0b81b05q@registry1-private.comanage.incommon.training | 2019-11-10 22:11:32,908 INFO spawned: 'shibd' with pid 8 | ||
| comanage_registry.1.ibnk0b81b05q@registry1-private.comanage.incommon.training | 2019-11-10 22:11:32,909 INFO spawned: 'apache2' with pid 9 | ||
| comanage_registry.1.ibnk0b81b05q@registry1-private.comanage.incommon.training | Created directory /srv/comanage-registry/local/Config | ||
| comanage_registry.1.ibnk0b81b05q@registry1-private.comanage.incommon.training | Created directory /srv/comanage-registry/local/Plugin | ||
| ... | ||
| ``` | ||
|
|
||
| --- | ||
|
|
||
| NEXT SECTION: [4. First sign in](/_episodes/04-signin.md) | ||
|
|
||
| PREVIOUS SECTION: [2. Setting up variables](/_episodes/02-setupVariables.md) | ||
|
|
||
| --- | ||
|
|
||
| LESSON OVERVIEW: [CO201 - Installing COmanage Using Docker Image](../index.md) | ||
|
|
||
| WORKSHOP OVERVIEW: [COmanage Workshop: Managing Identities & Collaborations](https://github.internet2.edu/lpaglione/COmg-trainingOverview/blob/master/README.md) |
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,55 @@ | ||
| --- | ||
| title: "First Sign In" | ||
| teaching: 0 | ||
| exercises: 5 | ||
| questions: | ||
| - "Question here" | ||
| objectives: | ||
| - "List the objectives" | ||
| keypoints: | ||
| - "List the key takeaways for the episode" | ||
| workshopOverviewName: "COmanage Workshop: Managing Identities & Collaborations" | ||
| workshopOverviewURL: "https://github.internet2.edu/lpaglione/COmg-trainingOverview/blob/master/README.md" | ||
| lessonOverviewName: "CO201 - Installing COmanage Using Docker Images" | ||
| lessonOverviewURL: "../index.md" | ||
| previousEpisodeName: "3. Deploy COmanage" | ||
| previousEpisodeURL: "/_episodes/03-deploy.md" | ||
| nextEpisodeName: | ||
| nextEpisodeURL: | ||
| --- | ||
|
|
||
| # 4. First Sign in | ||
|
|
||
|  | ||
|
|
||
| You're now ready to launch COmanage! | ||
|
|
||
| ## Browse to your node | ||
|
|
||
| 1. Launch a browser window and go to the URL for your training site. Replace the `N` in the URL below for the address of your registry | ||
|
|
||
| https://registryN.comanage.incommon.training | ||
|
|
||
| For example, if your VM is number 1, you should use the URL | ||
|
|
||
| https://registry1.comanage.incommon.training | ||
|
|
||
| ## Log in | ||
|
|
||
| You will need to login in as the CMP Administrator that you set up in the Stack File. (This is the only user configured to use the system at the moment!) Enter this user's username (ePPN) and the training password (check your Workshop Reference Document if you don't remember the password.) | ||
|
|
||
| If you run into challenges during this process, please put a yellow post-it note on your computer so that we can see that you need help. | ||
|
|
||
| When you have successfully signed in (!), put the blue post-it note on your computer so that we can make sure to not move forward before everyone is ready. | ||
|
|
||
| --- | ||
|
|
||
| PREVIOUS SECTION: [3. Deploy COmanage](/_episodes/03-deploy.md) | ||
|
|
||
| --- | ||
|
|
||
| LESSON OVERVIEW: [CO201 - Installing COmanage Using Docker Image](../index.md) | ||
|
|
||
| NEXT LESSION: **BREAK** | ||
|
|
||
| WORKSHOP OVERVIEW: [COmanage Workshop: Managing Identities & Collaborations](https://github.internet2.edu/lpaglione/COmg-trainingOverview/blob/master/README.md) |
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