An article of this repo: https://blog.studysapuri.jp/entry/Poetry-Docker-Build-and-Run
This is a sample project using:
also, pytest, FastAPI, Terraform are used.
- containerized environment and live updates
- Poetry works fine with Docker volume mount
- infinite PR (Pull Request) environments
- by Cloud Build Trigger
- tuned build process for Cloud Build
- separated configurations of Dockerfile, cloudbuild.yaml
$ make
build build
curl_to_cloud_run curl to Cloud Run (hint: ENV=pr-xxx)
format pysen run format
help help lists
init poetry install
lint pysen run lint
server start server
test test
$ docker run -it -v `pwd`:/work -w /work acidrain/python-poetry poetry new poetry-docker-build-and-run --src
$ cd poetry-docker-build-and-run
$ docker run -it -v `pwd`:/work -w /work acidrain/python-poetry poetry install
see https://github.com/masaki925/cookiecutter--poetry-docker-build-run/tree/main