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

Hw1 flask #39

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Hw1 flask #39

wants to merge 2 commits into from

Conversation

aaronhuan
Copy link

Docker:

  • Serving Flask app 'app'
  • Debug mode: on
    WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
  • Running on all addresses (0.0.0.0)
  • Running on http://127.0.0.1:5002
  • Running on http://172.17.0.2:5002
    Press CTRL+C to quit
  • Restarting with stat
  • Debugger is active!
  • Debugger PIN: 807-310-070
    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)

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.

1 participant