From 8c34b45b308b24931ae08a91e451715db40d0670 Mon Sep 17 00:00:00 2001 From: guslington <viney-34@hotmail.com> Date: Wed, 22 Aug 2018 12:31:56 +1000 Subject: [PATCH] entrypoint to task def --- ecs-service.cfndsl.rb | 1 + ecs-service.config.yaml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ecs-service.cfndsl.rb b/ecs-service.cfndsl.rb index b796ba0..f3ed646 100644 --- a/ecs-service.cfndsl.rb +++ b/ecs-service.cfndsl.rb @@ -111,6 +111,7 @@ task_def.merge!({PortMappings: port_mapppings}) end + task_def.merge!({EntryPoint: task['entrypoint'] }) if task.key?('entrypoint') task_def.merge!({Command: task['command'] }) if task.key?('command') task_def.merge!({HealthCheck: task['healthcheck'] }) if task.key?('healthcheck') task_def.merge!({WorkingDirectory: task['working_dir'] }) if task.key?('working_dir') diff --git a/ecs-service.config.yaml b/ecs-service.config.yaml index 96cec3e..26628c8 100644 --- a/ecs-service.config.yaml +++ b/ecs-service.config.yaml @@ -29,6 +29,8 @@ log_retention: 7 # - 8080 # env_vars: # KEY: value +# entrypoint: ['/docker-entrypoint.sh'] +# command: ['npm','start'] # mounts: # - data-volume:/data:ro