feat: add rust container

This commit is contained in:
2026-08-23 12:04:29 +02:00
parent bdd3c9be82
commit 8e0e2acade
5 changed files with 776 additions and 2 deletions
+20
View File
@@ -0,0 +1,20 @@
#!/bin/sh
set -e
name=$([[ $1 ]] && echo $1 || echo "rust-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