Sign inSign up

datamoleai/python-runtime

By datamoleai

•Updated over 4 years ago

The basic Python Runtime with Poetry and pyenv support.

Image
0

10K+

datamoleai/python-runtime repository overview

⁠Python Runtime

⁠Usage

⁠How to launch Python Runtime image
docker run \
    --rm -it \
    --volume $(pwd):$(pwd) \
    --workdir $(pwd) \
    --volume pyenv:/root/.pyenv:rw \
    --volume penv:/root/.cache/pypoetry/virtualenvs:rw \
    datamoleai/python-runtime:<version> \
    <your-commands>

⁠Useful commands
  • Create / update env poetry install
  • Install package poetry install <package-name>
docker run \
    --rm -it \
    --volume $(pwd):$(pwd) \
    --workdir $(pwd) \
    --volume pyenv:/root/.pyenv:rw \
    --volume penv:/root/.cache/pypoetry/virtualenvs:rw \
    datamoleai/python-runtime:<version>
    poetry install
  • Run your experiment in the created environment poetry run python <your-exp.py>
docker run \
    --rm -it \
    --volume $(pwd):$(pwd) \
    --workdir $(pwd) \
    --volume pyenv:/root/.pyenv:rw \
    --volume penv:/root/.cache/pypoetry/virtualenvs:rw \
    datamoleai/python-runtime:<version> \
    poetry run python

⁠Available versions

Older:

  • v.1.0.0

Latest: v1.1.2

⁠Reference

Tag summary

Content type

Image

Digest

Size

910.5 MB

Last updated

over 4 years ago

docker pull datamoleai/python-runtime