Codeship: Deploying to EC2 Container Service from Docker Image

I have a project which used Codeship Pro and i have successfully push to Docker Hub, and after that i want to push my project to AWS EC2 Container Service with it.

I followed this documentation:

  • Unable to use the “Docker push” command with ECR
  • Node.js process, running in Docker container hangs without exiting or throwing when out of memory
  • Running multiple docker instances in EC2
  • how to attach a EBS volume to my container using docker-compose.yml and ecs-cli
  • Akka Cluster with bind-port and bind-hostname
  • What is the optimal way to run a Node API in Docker on Amazon ECS?

    - service: awsdeployment
      command: aws ecs register-task-definition --cli-input-json file:///deploy/tasks/backend.json
    - service: awsdeployment
      command: aws ecs update-service --service my-backend-service --task-definition backend

    The problem is in documentation, it doesn’t explain what deploy/tasks/backend.json contain,
    i tried to remove it in codeship-steps.yml

    - service: awsdeployment
      command: aws ecs update-service --service my-backend-service --task-definition backend

    But the result is: An error occurred (ClientException) when calling the UpdateService operation: TaskDefinition not found.

    Currently, i use

    ecs-cli compose up

    it push my project to my EC2 Container Service using my docker-compose.yml

    I spend a long day to figure it out, but still i have no idea to successfully push to my AWS ECS, i can’t use ecs-cli command when pushing with shipcode.
    What should i do ?

  • ecs-cli compose service up doesn't terminate
  • How to limit aws instance ip range generated by ec2-instance create cli script?
  • AWS ECS volumes do not share any files
  • Sorl4 failing to index when using EBS volume in ECS
  • What are benefits of having jenkins master in a docker container?
  • Can an ECS container have access to the docker socket?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.