Build a new dev image
export UID=$(id -u) export GID=$(id -g); docker compose build
start a dev container
docker compose run dev
If you want to rename the folder ("my package"), you need to rename the folder and write the name in the REPO in the ".env".
While the container itself by default is not persistent, several host directories are mapped into the container including
- repository source code
- ssh keys
- git configuration
- host credentials
- X11 connection
you can use gitconfig within the container, with the same host user
Taken from https://docs.docker.com/compose/cli-command/#install-on-linux
While developing a tool on top of another tool can come with challenges, some may prefer to at least have some simple aliases to reduce the typing boilerplate.
alias builddev="export UID=$(id -u) export GID=$(id -g); docker compose build"
alias rundev="docker compose run dev"
I referenced several repositories in my development environment configuration.