# README
AWS ECS currently does not support to specify volume driver. See ECS Open Issue Volume Driver support. Once AWS ECS supports the custom volume driver, there is no need to patch ecs-agent.
Apply patch
- copy firecamp_task_engine.go to cloudstax/amazon-ecs-agent/agent/engine/
- apply docker_task_engine_patch to agent/engine/docker_task_engine.go
- apply makefile_patch to Makefile
Then simply sudo make to build the ecs-agent container image.
To manually run the agent container, please initialize the agent first.
- Initialize cloudstax/amazon-ecs-agent on EC2 for the first time, run start_ecs_agent.sh.
- If the system is reboot after ecs-agent initialized, run: docker start ecs-agent-containerID.
We also fork the Amazon ECS Init to directly load the ECS Agent container image from docker hub. The FireCamp cluster auto deployment (AWS CloudFormation) will automatically download the Amazon ECS Init RPM from CloudStax S3 bucket and install on the node. The ECS Init will manage the CloudStax Amazon ECS Container Agent.
Docker plugin is uniquely identified by the plugin name and version, such as cloudstax/firecamp-volume:v1. The ECS service task definition will include the current version as environment variable. So ECS Agent patch could get the version and set the plugin name correctly.
https://help.github.com/articles/syncing-a-fork/
git fetch upstream git checkout master git merge upstream/master