aws / amazon-ecs-init

Amazon Elastic Container Service RPM
http://aws.amazon.com/ecs
Apache License 2.0
200 stars 118 forks source link

remove ifExists check for config folder #381

Closed cyastella closed 3 years ago

cyastella commented 3 years ago

Summary

add the logic bind mount the entire /host/dependency/path/execute-command/config folder in read-write mode to allow ecs-agent to write config files to host file system docker will create the config folder if it does not exist

Implementation details

add the hostConfigDir bind mount unconditionally to add the case that if config dir when its not exists, we will create one.

Testing

New tests cover the changes: yes

Description for the changelog

Licensing

This contribution is under the terms of the Apache 2.0 License: