genvangelion / python-dev-env-docker

Simple repo that allows you to get up and running with a clean python environment quickly.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A clean environment with a nice shell for Python development.

Handy commands

docker shell with underprivileged user

bin/cli

docker shell with root user

bin/root-cli

sets up a development-capable environment

docker compose up|down

rebuild the docker container

docker compose build

activate the venv environment from within the cli

source /work/.venv/bin/activate

Notes

This container inherits from python:3.9.

This docker container mounts the current directory into /work, where all the things happen.

It also has an underprivileged user and a root user.

It sets the gid and uid of the underprivileged user to 1000 and 1000, which is a common uid/gid combo for the first user on a system.

This allows you to edit your files without the mess of permissions issues from within this folder.

You'll want to take a look at the bash script that the container ultimately runs bin/runner for an example of how to bootstrap your app.

About

Simple repo that allows you to get up and running with a clean python environment quickly.


Languages

Language:Shell 37.6%Language:Dockerfile 32.2%Language:Jupyter Notebook 24.9%Language:Python 5.3%