Files

19 lines
465 B
Bash
Executable File

#!/bin/sh
name=$([[ $1 ]] && echo $1 || echo "python")
mount=$([[ $2 ]] && echo $2 || echo "$HOME/projects/")
echo "
=> Mounting folder to /mnt (in container)
=> Starting container
"
docker run -it \
-v $mount:/mnt \
-v ~/.config/fish:/root/.config/fish \
-v ~/projects/system/dotfiles/scripts/:/root/projects/system/dotfiles \
--name $name \
--hostname jh-dev-container-$name \
-w /mnt \
git.janishutz.com/registry/dev-container-python