feat: make container updates easier

This commit is contained in:
Job
2024-09-28 17:56:33 +02:00
parent 7a63471603
commit 54865b536a
4 changed files with 24 additions and 4 deletions

15
enter.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/sh
name="${1:-dev}"
podman container rm -f -t 1 "$name"
podman run -it \
--name "$name" \
-v /run/user/1000/wayland-0:/run/user/1000/wayland-0 \
-v "$SSH_AUTH_SOCK":/run/user/1000/ssh-auth-sock \
-v ~/Documents:/home/user/Documents \
-v ~/.ssh:/home/user/.ssh \
-v ~/.config/git:/home/user/.config/git \
-v ~/.config/github-copilot:/home/user/.config/github-copilot \
-v "$name"-local:/home/user/.local \
--security-opt label=disable \
--userns=keep-id \
dev