Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Docker:
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
Press CTRL+C to quit
172.17.0.1 - - [10/Feb/2025 00:01:24] "GET / HTTP/1.1" 200 -
Curl:
(base) crc-dot1x-nat-10-239-35-243:411-resources aaronhuang$ curl localhost:5002
{
"response": "Hello, World!",
"status": 200
}
(base) crc-dot1x-nat-10-239-35-243:411-resources aaronhuang$ curl "localhost:5002/repeat?input=foo"
{
"body": "foo",
"status": 200
}
Health:
(base) crc-dot1x-nat-10-239-35-243:411-resources aaronhuang$ curl localhost:5002/health
{
"body": "OK",
"status": 200
}
Healthcheck:
(base) crc-dot1x-nat-10-239-35-243:411-resources aaronhuang$ curl localhost:5002/healthcheck
{
"body": "OK",
"status": 200
}
(base) crc-dot1x-nat-10-239-35-243:411-resources aaronhuang$ docker ps --format "table {{.ID}}\t{{.Names}}\t{{.Status}}"
CONTAINER ID NAMES STATUS
5c4e09a074cd flamboyant_napier Up 18 seconds (health: starting)
(base) crc-dot1x-nat-10-239-35-243:411-resources aaronhuang$ docker ps --format "table {{.ID}}\t{{.Names}}\t{{.Status}}"
CONTAINER ID NAMES STATUS
5c4e09a074cd flamboyant_napier Up About a minute (unhealthy)