Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codefresh-contrib/python-flask-sample-app
Dockerized Python Flask Example application
https://github.com/codefresh-contrib/python-flask-sample-app
codefresh docker flask python
Last synced: about 17 hours ago
JSON representation
Dockerized Python Flask Example application
- Host: GitHub
- URL: https://github.com/codefresh-contrib/python-flask-sample-app
- Owner: codefresh-contrib
- License: other
- Created: 2018-03-31T04:30:28.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-11-22T00:14:36.000Z (12 months ago)
- Last Synced: 2024-08-03T06:01:45.464Z (4 months ago)
- Topics: codefresh, docker, flask, python
- Language: Python
- Homepage: https://codefresh.io/docs/docs/getting-started/create-a-basic-pipeline/
- Size: 80.1 KB
- Stars: 87
- Watchers: 4
- Forks: 785
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
## Flaskr an example application written in Python/Flask
![Flask plus Codefresh](docker-flask-codefresh.jpg)
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](codefresh.yml) for easy usage with the [Codefresh](codefresh.io) CI/CD platform.
More details can be found in [Codefresh documentation](https://codefresh.io/docs/docs/getting-started/create-a-basic-pipeline/)
#Edit 3