Skip to content

Instantly share code, notes, and snippets.

@rtyler
Last active July 9, 2019 21:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtyler/767cfab0e50d7d79100b52cf0a13427a to your computer and use it in GitHub Desktop.
Save rtyler/767cfab0e50d7d79100b52cf0a13427a to your computer and use it in GitHub Desktop.
#!/bin/sh
ZOOMHOME=$HOME/scratch/zoom
# To make audio work, pulseaudio needs to be configured to listen on the
# network via paprefs
exec docker run --rm \
--net host \
--cpuset-cpus 2 \
-u $(id -u):$(id -g) \
-v $ZOOMHOME:$ZOOMHOME \
-v /etc/machine-id:/etc/machine-id \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v /dev/video0:/dev/video0 \
-v /dev/shm:/dev/shm \
--device /dev/snd \
--device /dev/dri \
--device /dev/video0 \
--device /dev/video1 \
--group-add audio \
--group-add video \
-e PULSE_SERVER=localhost \
-e DISPLAY=unix${DISPLAY} \
-e HOME=$ZOOMHOME \
rtyler/zoom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment