From 885223bc8cc537dcf2fdb1758cf1e2ccf4c955c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Mon, 25 Feb 2019 19:21:20 +0100 Subject: [PATCH] add doc --- .../content/deploy/exercise-cicd.md | 19 ++++++++++++++++++- .../content/deploy/exercise-create-env.md | 16 ++++++++++++++-- 2 files changed, 32 insertions(+), 3 deletions(-) diff --git a/lab-instructions/content/deploy/exercise-cicd.md b/lab-instructions/content/deploy/exercise-cicd.md index 3647787..44ed393 100644 --- a/lab-instructions/content/deploy/exercise-cicd.md +++ b/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! -TODO \ No newline at end of file +- 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**! diff --git a/lab-instructions/content/deploy/exercise-create-env.md b/lab-instructions/content/deploy/exercise-create-env.md index d73e295..bd8c28b 100644 --- a/lab-instructions/content/deploy/exercise-create-env.md +++ b/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. -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) - 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**. - 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 \ No newline at end of file +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**