Repository is now archived
Repo for base images used across multiple services. Created as the solution to dockerhub rate limts as suggested by AWS.
To run this repo you will need:
- aws-vault
- access to shared-services
-
Update the shared services infrastruture to create your ECR repository. This can be done here by adding the repository name to
main.tf
in theecr_images
module scope. Make a note of the name chosen. -
Create a folder under
images
with the same name as the repository in step one. -
Add a Dockerfile to this folder and populate it with the correct base image value.
-
Run:
make build-and-publish
- Create a branch on this repository.
- Open the image
Dockerfile
within theimages
folder that you would like to update e.g.images\grafana\Dockerfile
. - Change image version to desired e.g.
FROM grafana/grafana:8.3.3
toFROM grafana/grafana:8.3.4
- Create a Pull Request wait for review, merge and then switch back to main.
- Run:
make build-and-publish
this pulls down all images and then pushes them into ECR. - To publish a single image to ECR you can run
make publish-specific IMAGE="<<image-name>>"
NOTE :<<image-name>>
must match the folder name where the Dockerfile is stored. - The running container will not update until container services are redeployed. For Elastic Container Service, go to the service, select the
Update
button and leave all defaults except tick the box byForce New Deployment
this will recreate all the running containers with the new image.