https://github.com/mtulio/flask-sample
Sample Flask app to be deployed everywhere =p
https://github.com/mtulio/flask-sample
Last synced: 12 months ago
JSON representation
Sample Flask app to be deployed everywhere =p
- Host: GitHub
- URL: https://github.com/mtulio/flask-sample
- Owner: mtulio
- License: apache-2.0
- Created: 2017-06-07T20:39:15.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-15T03:17:18.000Z (almost 9 years ago)
- Last Synced: 2025-02-24T03:17:44.353Z (over 1 year ago)
- Language: Python
- Size: 7.81 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# flask-sample
Sample Flask application to deploy wherever you want.
I can see here some platforms to use.
## Deploy usage
### Docker
* Deploy an image
```bash
sudo docker build -t python-sample-flask .
```
* Run the container
```bash
sudo docker run -d -p 8080:8080 python-sample-flask
```
* Call the app
```bash
$ curl http://localhost:8080
Hello, World! 50efdd315409
```
### ECS
> Considering that you've created an repository named `python-sample-flask`
* Login into AWS ECR
```bash
sudo $(aws ecr get-login --no-include-email --region us-east-1)
```
* Build the image
```bash
sudo docker build -t python-sample-flask .
```
* Tag the image
```bash
sudo docker tag python-sample-flask:latest .dkr.ecr.us-east-1.amazonaws.com/python-sample-flask:latest
```
* Push to AWS ECR
```bash
sudo docker push .dkr.ecr.us-east-1.amazonaws.com/python-sample-flask:latest
```
### Serverless
> TODO
* API Gateway Lambda Proxy
make serverless-apigw
### Zappa
> TODO
### Heroku
> TODO
### Openshift Cloud
> TODO