Search code examples
amazon-web-servicesamazon-ec2dockerhubamazon-ecs

deploying on AWS ECS via task definitions without dockerhub


Currently I'm using task-definitions that refer to custom images in dockerhub to deploy my webapp on ECS (Amazon EC2 Container Service). Is there a way to do this without going through dockerhub i.e. build/deploy the dockerfile locally across cluster nodes?

At the moment, I can only think of sending shell commands over ssh or using a tool like ansible.

Perhaps I'm missing something totally obvious here...


Solution

  • This is a little late for an answered question, but I just figured this out myself. The EC2 Container Registry (ECR, Amazon's repository equivalent) is working well for me, maybe didn't exist at the time?

    I build the containers locally. Tag them and push them to Amazon's ECR using the AWS CLI (later versions of which include support for ECR), and then refer to them at that location in the task definitions in ECS. Works like a charm.

    http://docs.aws.amazon.com/AmazonECR/latest/userguide/what-is-ecr.html