Skip to content

Commit efea9f0

Browse files
Sean Smithkraman-aws
authored andcommitted
minor changes lab3
Signed-off-by: Sean Smith <[email protected]>
1 parent 1633ff3 commit efea9f0

File tree

6 files changed

+14
-11
lines changed

6 files changed

+14
-11
lines changed

content/05-cicd-pipeline/02-codecommit-repo.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ Verify **echo $REPOURL** outputs a repo url like **https://git-codecommit.\<regi
4141
7. Clone the repository in your Cloud9 terminal and cd into it:
4242

4343
```bash
44-
$ git clone $REPOURL
45-
$ cd MyDemoRepo/
44+
git clone $REPOURL
45+
cd MyDemoRepo/
4646
```
4747
You can ignore the warning shown [*warning: You appear to have cloned an empty repository*]
4848

4949
8. Now let's update the default branch from **master** to **main**:
5050
```
51-
$ git branch -m master main
51+
git branch -m master main
5252
```

content/05-cicd-pipeline/03-docker-buildspec.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ In this section, you will create a Docker container for the application and a bu
1313
A [buildspec](https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html) is a collection of build commands and related settings in YAML format. This file is used by [AWS CodeBuild](https://docs.aws.amazon.com/codebuild/latest/userguide/welcome.html) to automatically create an updated version of the container upon code changes. The buildspec file informs CodeBuild of all the actions that should be taken during a build run for your application. In the next section, you will dive deeper on what is CodeBuild and how to set it up as part of a pipeline.
1414

1515

16-
1. Confirm you are in the **MyDemoRepo** repository, if not enter into it:
16+
1. Confirm you are in the **MyDemoRepo** repository:
1717

18-
```bash
19-
cd MyDemoRepo
18+
```
19+
pwd # should be MyDemoRepo
2020
```
2121

2222
2. Create a Docker container for the application. We're going to use the [Amazon Linux container](https://gallery.ecr.aws/amazonlinux/amazonlinux) from [Amazon Elastic Container Registry (ECR) Public Gallery](https://docs.aws.amazon.com/AmazonECR/latest/public/public-gallery.html).

content/05-cicd-pipeline/06-updatebuild.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ We will modify the Dockerfile to run a Genomics workflow using [Nextflow](https:
1212
We will go over the Nextflow architecture and job execution/orchestration more in the next lab. For now, we will go ahead and update the repository and see how the CICD pipeline works for your build.
1313

1414

15-
1. Go to the CodeCommit repository created in your **Cloud9** environment
16-
```bash
17-
cd MyDemoRepo
15+
1. First confirm you are in the **MyDemoRepo** repository:
16+
17+
```
18+
pwd # should be MyDemoRepo
1819
```
1920

2021
2. Update the Dockerfile to the following. This is an entrypoint script which can consume the link to an Amazon S3 bucket or a git repository from which to download the Nextflow pipeline and executes it.
@@ -58,12 +59,14 @@ git push origin main
5859
5. In the AWS Management Console search bar, type and select **CodePipeline**. Click on the **MyDemoPipeline** that you created in the previous section. You should now see that the CodeCommit push above should have triggered the build via CodeBuild automatically.
5960
![AWS CodePipeline](/images/cicd/codepipeline-6.png)
6061

61-
6. Click on the AWS CodeBuild deep link from the Build stage of the CodePipeline. This will take you to the CodeBuild project that you created. Click on the latest build in **Build history** and examine the **Build logs**.
62+
6. Click on the **Details** deep link from the Build stage of the CodePipeline. This will take you to build logs from the CodeBuild project that you created:
63+
6264
![AWS CodePipeline](/images/cicd/codepipeline-7.png)
65+
![AWS CodePipeline](/images/cicd/codepipeline-8.png)
6366

6467

6568
7. Click on the **Tail logs** to see the on-going or completed build process. This is showcasing every step of the build process as provided in your **buildspec.yml** file.
66-
![AWS CodePipeline](/images/cicd/codepipeline-8.png)
69+
![AWS CodePipeline](/images/cicd/codepipeline-9.png)
6770

6871
8. In addition to the build the pipeline is also pushing the built container image to the container registry in Amazon ECR.
6972

-134 KB
Loading
-8.17 KB
Loading
159 KB
Loading

0 commit comments

Comments
 (0)