Automated Clean Up

UFO can be configured to automatically clean old images from the ECR registry after the deployment completes by configuring your Config file like so:

.ufo/config.rb

Ufo.configure do |config|
  config.docker.clean_keep	= 5 # keep 5. remove older ufo produced docker images locally
  config.docker.ecr_keep	= 5   # keep 5. remove older ufo produced docker on ECR
end

Reference

The table below covers each setting. Each option is configured in .ufo/config.rb with config.OPTION. The config. portion is not shown for conciseness. IE: logger.level vs config.logger.level.

Name Default Description
docker.clean_keep false Docker images generated from ufo are cleaned up automatically for you at the end of ufo ship. This controls how many docker images to keep around. By default, this is false and all Docker images are kept.
docker.ecr_keep false If you are using AWS ECR, then the ECR images can also be automatically cleaned up at the end of ufo ship. By default, this is false and all AWS ECR are kept.
docker.repo nil The Docker repo to push the Docker image to. Example: org/repo. UFO automatically generates the tag and appends it to the Docker image name: org/repo => org/repo:generated-tag.

See Full Config Reference