Simple Python Flask app for the sake of demonstrating CI/CD with Jenkins. Shamelessly stolen from:
The basic blog app built in the Flask tutorial_.
.. _tutorial: https://flask.palletsprojects.com/tutorial/
docker build -t python_example:latest .docker run -it python_example:latest /bin/bashdocker run -it -v $(pwd):/opt/app python_example:latest /bin/bashdocker run python_example:latest Install Flaskr
pip install -e .flask --app flaskr init-db
flask --app flaskr run --debugOpen http://127.0.0.1:5000 in a browser.
docker run python_example:latest pytestpytestRun with coverage report::
coverage run -m pytest
coverage report
coverage html # open htmlcov/index.html in a browser