Sign inSign up

ynishi/python-docker

By ynishi

Updated about 8 years ago

automated build. python-tools is based on same repository.

Image
0

1.3K

ynishi/python-docker repository overview

docker-python

python develop in docker. ready to use popular packages based on awesome-python's list. https://github.com/vinta/awesome-python

dockerhub: https://hub.docker.com/r/ynishi/python-tools/

Usage

build
make build
# with options
make build RESISTORY=myreg IMAGE=myimage
push
make prepush
make push
run python
docker-compose up
docker-compose exec jupyterlab python

or

docker run --rm -v $(pwd):/code ynishi/python-tools python
try sample
docker-compose up
docker-compose exec jupyterlab python sample/${SRC}
common in dev
login jupyterlab
docker-compose up -d
docker-compose logs | grep token
# replace domain to localhost or accessible hostname to container and browse
exec one script
docker-compose exec jupyterlab python ${SCRIPT}
docker run --rm -v $(pwd):/code ynishi/python-tools python ${SCRIPT}
interactive
docker run --rm -it -v $(pwd):/code ynishi/python-tools [bash|ptipyton...]
autopep8 -- formatter
docker run --rm -it -v $(pwd):/code ynishi/python-tools autopep8 --in-place --aggressive --aggressive ${SRC}
update requirements.txt
docker-compose exec jupyterlab python create_requirements.txt
# merge current requirements.txt and requirements.txt.auto
# make build to install into image

LICENSE

  • MIT, see LICENSE

Tag summary

Content type

Image

Digest

Size

2.3 GB

Last updated

about 8 years ago

docker pull ynishi/python-docker