Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

ministryofjustice/staff-device-docker-base-images

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repository is now archived ⚠️ Images are now pulled from DockerHub as per this github issue

Staff Device Docker Base Image

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

Adding Repositories

  1. Update the shared services infrastruture to create your ECR repository. This can be done here by adding the repository name to main.tf in the ecr_images module scope. Make a note of the name chosen.

  2. Create a folder under images with the same name as the repository in step one.

  3. Add a Dockerfile to this folder and populate it with the correct base image value.

  4. Run: make build-and-publish

Updating Existing Container Images

  1. Create a branch on this repository.
  2. Open the image Dockerfile within the images folder that you would like to update e.g. images\grafana\Dockerfile.
  3. Change image version to desired e.g. FROM grafana/grafana:8.3.3 to FROM grafana/grafana:8.3.4
  4. Create a Pull Request wait for review, merge and then switch back to main.
  5. Run: make build-and-publish this pulls down all images and then pushes them into ECR.
  6. 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.
  7. 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 by Force New Deployment this will recreate all the running containers with the new image.

About

Docker base images published to ECR for various services

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published