Skip to main content
100%

Simple Makefile to build, run, tag and publish a docker containier to AWS-ECR

✓ Published0🌍 Public
Aankuagar
Last edited Dec 18, 2017
Created on Aug 26, 2021

This Makefile example demonstrates a complete workflow for building, running, tagging, and publishing a Docker container to AWS-ECR. It defines targets for building the container (build, build-nc), running it locally (run, up), stopping it (stop), and releasing it (release) by combining build and publish operations. The publish process logs into AWS ECR via aws-cli (with optional profile and region settings) and pushes both `latest` and versioned tags. Additional targets handle tagging, version output, and help documentation. The example includes a second variant using docker-compose for development workflows, plus supporting configuration files (config.env, deploy.env) and a usage script that explains installation and common commands.

AI-generated description

Similar vizzes