Browse Source

add doc

pull/1/head
Nicolas Massé 7 years ago
parent
commit
885223bc8c
  1. 19
      lab-instructions/content/deploy/exercise-cicd.md
  2. 16
      lab-instructions/content/deploy/exercise-create-env.md

19
lab-instructions/content/deploy/exercise-cicd.md

@ -7,4 +7,21 @@ weight: 2
The ACME Brewery API is implemented and conform to our specification. We can now envision a deployment in all the ACME environments. Unfortunatelly ACME as a lots of environments and deploying manually in each and every environment would be error prone and time consuming. It is time to think about automation and Continuous Deployment! The ACME Brewery API is implemented and conform to our specification. We can now envision a deployment in all the ACME environments. Unfortunatelly ACME as a lots of environments and deploying manually in each and every environment would be error prone and time consuming. It is time to think about automation and Continuous Deployment!
TODO - Open the [OpenShift Web Console]({{< param openshift_console_url >}}/console/catalog)
- In the top-left dropdown box, select the `Beer Catalog (BUILD)` project
- In the top-right corner, select **Add to project**, then **Select from project**.
- Select the `Beer Catalog environment` template and click **Next**
- On the **Information** screen, just click **Next**
- On the **Configuration** screen, fill-in your username
- **Do not change the other fields**
- Click **Create**
Your CI/CD pipeline is now in place, congratulations!
- Go to **Builds** > **Pipelines**
- Click on your pipeline (the one that ends with your username)
- Click **Start Pipeline**
Wait for your pipeline to finish!
To complete your understanding, explain **what you need to do if a new version of the API implementation is released** and **what you need to do if the API Contract is updated**!

16
lab-instructions/content/deploy/exercise-create-env.md

@ -7,11 +7,23 @@ weight: 1
The ACME Brewery API is implemented and conform to our specification. We can now envision a deployment in all the ACME environments. The ACME Brewery API is implemented and conform to our specification. We can now envision a deployment in all the ACME environments.
Let's start by provisioning a TEST and a PROD environments. Let's start by provisioning a TEST environment:
- Open the [OpenShift Web Console]({{< param openshift_console_url >}}/console/catalog) - Open the [OpenShift Web Console]({{< param openshift_console_url >}}/console/catalog)
- In the top-left dropdown box, select the `Beer Catalog (TEST)` project - In the top-left dropdown box, select the `Beer Catalog (TEST)` project
- In the top-right corner, select **Add to project**, then **Select from project**. - In the top-right corner, select **Add to project**, then **Select from project**.
- Select the `Beer Catalog environment` template and click **Next** - Select the `Beer Catalog environment` template and click **Next**
- On the **Information** screen, just click **Next**
- On the **Configuration** screen, fill-in the environment name: `test` (all lower case!)
- **Do not change the other fields**
- Click **Create**
TODO Continue with the PROD environment:
- In the top-left dropdown box, select the `Beer Catalog (PROD)` project
- In the top-right corner, select **Add to project**, then **Select from project**.
- Select the `Beer Catalog environment` template and click **Next**
- On the **Information** screen, just click **Next**
- On the **Configuration** screen, fill-in the environment name: `prod` (all lower case!)
- **Do not change the other fields**
- Click **Create**

Loading…
Cancel
Save