https://github.com/abicky/ecswrap
A wrappper program which resolves termination order of ECS containers
https://github.com/abicky/ecswrap
Last synced: about 1 year ago
JSON representation
A wrappper program which resolves termination order of ECS containers
- Host: GitHub
- URL: https://github.com/abicky/ecswrap
- Owner: abicky
- License: apache-2.0
- Created: 2019-02-12T01:49:17.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-01T22:23:21.000Z (over 7 years ago)
- Last Synced: 2025-03-23T18:11:16.031Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 16.6 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ecswrap
`ecswrap` is a wrappper program for ECS containers and resolves termination order (cf. [amazon-ecs-agent#474](https://github.com/aws/amazon-ecs-agent/issues/474)) by specifying linked containers as a command line option or an environment variable.
Enhanced container dependency management was introduced in ecs-agent 1.26.0, so you can use it instead of `ecswrap`.
See [Amazon ECS Introduces Enhanced Container Dependency Management](https://aws.amazon.com/about-aws/whats-new/2019/03/amazon-ecs-introduces-enhanced-container-dependency-management/) for more details.
## Usage
```
Usage:
ecswrap [OPTIONS] -- COMMAND [ARGS]
Application Options:
--stop-wait-timeout= Maximum time duration in seconds to wait from when the process receives SIGTERM before sending SIGTERM to the child. This value should be less than
ECS_CONTAINER_STOP_TIMEOUT. (default: 10) [$ECSWRAP_STOP_WAIT_TIMEOUT]
--linked-container= container names linked with the container where this program is running. [$ECSWRAP_LINKED_CONTAINERS]
--signal-forwarding-delay= Delay seconds until forwarding a signal, which is SIGTERM, SIGQUIT or SIGINT,to child processes. (default: 0) [$ECSWRAP_SIGNAL_FORWARDING_DELAY]
-v, --verbose Verbosity
Help Options:
-h, --help Show this help message
```
## Example
See [example](example).
## Author
Takeshi Arabiki (abicky)