sharabhshukla / python-flask-sample-app

Dockerized Python Flask Example application

Home Page:https://codefresh.io/docs/docs/getting-started/create-a-basic-pipeline/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flaskr an example application written in Python/Flask

Flask plus Codefresh

Original source code from https://github.com/pallets/flask/tree/master/examples/tutorial

Docker instructions

To create a docker image execute:

docker build . -t flaskr

To run the docker image execute:

docker run -p 5000:5000 flaskr and visit with your browser http://localhost:5000

To run unit tests inside the container execute:

docker run -it flaskr /bin/sh

and then in the new command promt run

pip install pytest && pytest

To use this project in Codefresh

There is also a codefresh.yml for easy usage with the Codefresh CI/CD platform.

More details can be found in Codefresh documentation

About

Dockerized Python Flask Example application

https://codefresh.io/docs/docs/getting-started/create-a-basic-pipeline/

License:Other


Languages

Language:Python 75.5%Language:HTML 15.8%Language:CSS 7.6%Language:Dockerfile 1.2%