← all projects

pyshed

dockerised python + poetry environments
repo docker poetry python zero-configuration

pyshed

Simple Docker image for running zero configuration Python projects with Poetry dependency management.

Getting python up and running can be difficult. This docker image provides a recent version of Python, with Poetry for packaging and dependency management ready to use for your project, without any additional setup.

(WIP: New container images are pushed to Docker Hub after Dependabot PRs are merged)

Users

In the directory of your python project, run this:

docker run --rm -ti -v "$PWD:/var/app" svandragt/pyshed 

Additional arguments are passed to poetry directly.

Examples

poetry init:

docker run --rm -ti -v "$PWD:/var/app" svandragt/pyshed init

init

poetry install:

docker run --rm -ti -v "$PWD:/var/app" svandragt/pyshed install

install

start django server (visit http://localhost:8000):

docker run -p 8000:8000 --rm -ti -v "$PWD:/var/app" svandragt/pyshed run ./manage.py runserver 0.0.0.0:8000

runserver