- Build the image:
docker build . -t wilda/hello-world-from-flask:1.0.0
- Log in Dockerhub:
docker login
- Push the image:
docker push wilda/hello-world-from-flask:1.0.0
- Log in OVHAI:
ovhai login
- List the running apps:
ovhai app list
- Run the app:
ovhai app run --name hello-world-from-flask --unsecure-http --cpu 1 -p 5000 wilda/hello-world-from-flask:1.0.0
- Get app info:
ovhai app get <app id>
- Get the app logs:
ovhai app logs -f <app id>
- Test the app:
curl https://<URL of deployed app>
- Update the number of replicas:
ovhai app scale <app id> --replicas 2
- Set the min and max replicas:
ovhai app scale --auto-min-replicas 1 --auto-max-replicas 2 --auto-resource-type CPU --auto-resource-usage-threshold 50 <app id>
- Test the app:
curl https://<URL of deployed app>
- Stop the app:
ovhai app stop <app id>
π Hello, World! π app with flask
License
philippart-s/hello-world-from-flask
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Repository files navigation
About
π Hello, World! π app with flask
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published