Git repository
CodePipeline supports GitHub, GitLab, and Bitbucket through AWS CodeConnections as Git-based sources. In a real application, you should use these sources. However for simplicity in this lab we will use S3 as the source repository.
This module uses S3 as a source action, and we'll use the git-remote-s3 library to populate that bucket through git
in our web IDE.
Our repository will consist of:
- A Dockerfile to create a custom UI container image
- A Helm chart to deploy the component
- A
values.yaml
file to override the image that is deployed
.
├── chart/
| ├── templates/
| ├── Chart.yaml
│ └── values.yaml
|── values.yaml
└── Dockerfile
The Dockerfile we'll use is intentionally simplified for this lab:
FROM public.ecr.aws/aws-containers/retail-store-sample-ui:0.8.5
# This is an intentionally simplified Dockerfile for simplicity and build speed
The values.yaml
file in the root of the repository will only be responsible for configuring the correct container image and tag:
image:
repository: $IMAGE_REPOSITORY
tag: $IMAGE_TAG
The IMAGE_URL
and IMAGE_REPOSITORY
environment variables will be set in our pipeline, as we'll see later.
First let's set up Git:
Then copy the various files to a directory we'll use for our Git repository: