- python 3.8
pip install --user -r requirements.txt
- 安裝虛擬環境
pip install virtualenv
- 建立虛擬環境
virtualenv -p <python3_path> venv
- 進入虛擬環境
source venv/bin/activate
- 安裝lib
pip install --user -r requirements.txt
python app.py
python -m unittest discover -s ./test --pattern '*.py'
- 上版前,請更新requirements.txt
pip freeze > requirements.txt
- build docker image 指令
docker build . -t google_pipline
docker run google_pipline python app.py conf/application.yml {version}