Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simplydemo/hello-python-flask
Python flask 프레임워크로 API 서버를 구성하는 샘플 프로젝트 입니다.
https://github.com/simplydemo/hello-python-flask
Last synced: about 5 hours ago
JSON representation
Python flask 프레임워크로 API 서버를 구성하는 샘플 프로젝트 입니다.
- Host: GitHub
- URL: https://github.com/simplydemo/hello-python-flask
- Owner: simplydemo
- License: apache-2.0
- Created: 2023-08-29T17:53:19.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-04T00:54:11.000Z (about 1 year ago)
- Last Synced: 2024-04-24T12:00:59.022Z (7 months ago)
- Language: Dockerfile
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hello-python-flask
python flask 프레임워크로 Web 서비스 프로젝트 템플릿을 구성 합니다.## Install packages
```
pip install flask
```## Run
```
python3 app.py
```## Build Image
```
# for multiple CPU architecture
# docker buildx create --name builder --use
# docker buildx inspect builder
# docker buildx build --platform=linux/arm64,linux/amd64 --builder=builder -t symplesims/hello-python:latest -f ./cicd/docker/Dockerfile .
docker build -t symplesims/hello-python:latest -f ./cicd/docker/Dockerfile .
```## Run container
```
docker run --rm --name=helloworld -p 8050:8050 symplesims/hello-python:latest
```## Push to docker hub
```
docker login -udocker push symplesims/hello-python:latest
```## Kubernetes
Kubernetes 클러스터를 대상으로 hello 애플리케이션을 배포합니다.### Deploy Pod
```
kubectl apply -f https://raw.githubusercontent.com/simplydemo/hello-python-flask/main/cicd/k8s/hello-po.yaml
```### Deploy Service
```
kubectl apply -f https://raw.githubusercontent.com/simplydemo/hello-python-flask/main/cicd/k8s/hello-svc-deploy.yaml
```