Added scripts for Manjaro test

This commit is contained in:
Salvador E. Tropea 2022-09-26 08:14:46 -03:00
parent 8fe368b66b
commit 4371dff5b5
2 changed files with 15 additions and 0 deletions

2
manjaro/run_shell.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
docker run --rm -it setsoft/kicad_auto:manjaro_k6 /bin/bash

13
manjaro/run_shell_same_user.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh
export USER_ID=$(id -u)
export GROUP_ID=$(id -g)
docker run --rm -it -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY \
--user $USER_ID:$GROUP_ID \
--env NO_AT_BRIDGE=1 \
--workdir="/home/$USER" \
--volume="/etc/group:/etc/group:ro" \
--volume="/home/$USER:/home/$USER:rw" \
--volume="/etc/passwd:/etc/passwd:ro" \
--volume="/etc/shadow:/etc/shadow:ro" \
--volume="/home/$USER:/home/$USER:rw" \
setsoft/kicad_auto:manjaro_k6 /bin/bash