Seems clean

This commit is contained in:
j 2025-07-26 00:04:42 +10:00
parent 3bf60ffda8
commit fc34525755
5 changed files with 155 additions and 2 deletions

27
run.sh Normal file
View file

@ -0,0 +1,27 @@
#!/bin/bash
docker_run() {
xhost +local:docker
docker run -it --rm \
-u "${UID}:${GID}" \
-v $HOME/Projects:/home/x/Projects \
-v ${HOME}/.Xauthority:/home/x/.Xauthority \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-e DISPLAY=${DISPLAY} \
--device /dev/dri \
--group-add video \
-v /var/run/docker.sock:/var/run/docker.sock \
--entrypoint /usr/bin/tmux \
d:${1}
}
docker_build() {
docker build ./${1} -t d:${1}
}
case "$1" in
*)
docker_build $1 && docker_run $1
;;
esac