19 lines
458 B
Bash
Executable File
19 lines
458 B
Bash
Executable File
#!/bin/sh
|
|
|
|
name=$([[ $1 ]] && echo $1 || echo "devcontainer")
|
|
mount=$([[ $2 ]] && echo $2 || echo "$HOME/projects/")
|
|
|
|
echo "
|
|
=> Mounting folder $mount 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-base
|