#!/bin/sh
export USER_ID=$(id -u)
export GROUP_ID=$(id -g)
podman run --rm -it \
    --user $USER_ID:$GROUP_ID \
    --userns=keep-id \
    --env NO_AT_BRIDGE=1 \
    --env DISPLAY=$DISPLAY \
    --workdir="/home/$USER" \
    --volume=/tmp/.X11-unix:/tmp/.X11-unix \
    --volume="/etc/group:/etc/group:ro" \
    --volume="/etc/passwd:/etc/passwd:ro" \
    --volume="/etc/shadow:/etc/shadow:ro" \
    --volume="$PWD:/home/$USER:U" \
    ghcr.io/inti-cmnb/kicad9_auto_full:latest kibot -d outputs
