Skip to content

philippart-s/hello-world-from-flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Example for Hello, World! with ovhai CLI

  • 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>

About

πŸ‘‹ Hello, World! 🌎 app with flask

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages