DaMsTaR's picture
Upload 29 files
2bf3ef1 verified
raw
history blame contribute delete
396 Bytes
IMAGE_NAME=gaze-tracking
# allow root access to x server
xhost local:root
# build and run docker image
([ "$(docker images -q ${IMAGE_NAME})" == "" ] && docker build -t ${IMAGE_NAME} . )
([ "$(docker images -q ${IMAGE_NAME})" != "" ] && \
docker run --rm --device /dev/video0 \
-e DISPLAY=${DISPLAY} \
-v /tmp/.X11-unix:/tmp/.X11-unix \
--env="QT_X11_NO_MITSHM=1" \
-it ${IMAGE_NAME} bash)