Skip to content

Commit

Permalink
entrypoint to task def
Browse files Browse the repository at this point in the history
  • Loading branch information
guslington committed Aug 22, 2018
1 parent 5f5bc2d commit 8c34b45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions ecs-service.cfndsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
2 changes: 2 additions & 0 deletions ecs-service.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ log_retention: 7
# - 8080
# env_vars:
# KEY: value
# entrypoint: ['/docker-entrypoint.sh']
# command: ['npm','start']
# mounts:
# - data-volume:/data:ro

Expand Down

0 comments on commit 8c34b45

Please sign in to comment.