Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Dockerfile HEALTHCHECK of agent #2260

Merged
merged 1 commit into from
Nov 7, 2019
Merged

Support Dockerfile HEALTHCHECK of agent #2260

merged 1 commit into from
Nov 7, 2019

Conversation

cyastella
Copy link
Contributor

@cyastella cyastella commented Nov 4, 2019

Summary

Address #800. Previously, ECS does not have a Healthcheck directive for itself. This PR add the healthcheck in the dockerfile to enable detect the health status of ECS agent.

Implementation details

Enable ECS agent healthcheck flag
Add the healthcheck command in the dockerfile.

Testing

Description for the changelog

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@samuelkarp
Copy link
Contributor

Instead of mounting in another binary, can you extend the existing agent binary inside the container to be able to report health of the container?

@petderek
Copy link
Contributor

petderek commented Nov 5, 2019

/agent --healthcheck would be appropriate, and makes it a bit more extensible.

agent/app/agent.go Outdated Show resolved Hide resolved
agent/app/args/flag.go Outdated Show resolved Hide resolved
@cyastella cyastella requested a review from fenxiong November 6, 2019 23:01
agent/app/healthcheck.go Outdated Show resolved Hide resolved
agent/app/healthcheck.go Outdated Show resolved Hide resolved
@cyastella cyastella merged commit 11fe7bd into aws:dev Nov 7, 2019
@cyastella cyastella added this to the 1.33.0 milestone Nov 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants