Created
December 18, 2017 20:38
-
-
Save rmarianski/e6110ffc81e4a94b51827fcaad41bfed to your computer and use it in GitHub Desktop.
zoom docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:16.04 | |
RUN \ | |
apt-get update && \ | |
apt-get install -qy curl libnss3 libxcursor1 libxtst6 libxss1 libxrandr2 libasound2 && \ | |
curl -sL 'https://zoom.us/client/latest/zoom_amd64.deb' > /tmp/zoom_amd64.deb && \ | |
apt-get install -qy /tmp/zoom_amd64.deb && \ | |
rm /tmp/zoom_amd64.deb | |
ARG user=dev | |
ARG uid=1000 | |
ARG gid=1000 | |
RUN addgroup --gid $gid $user && \ | |
adduser --uid $uid --gid $gid --system $user | |
USER $user | |
ENV HOME /home/$user | |
CMD /usr/bin/zoom |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
uid=1000 | |
dockerUsername=dev | |
containerName=rmarianski/zoom | |
docker run -it \ | |
-e DISPLAY=$DISPLAY -e QT_X11_NO_MITSHM=1 \ | |
-v /tmp/.X11-unix:/tmp/.X11-unix \ | |
-v /dev/snd:/dev/snd \ | |
-v /dev/shm:/dev/shm \ | |
-v /etc/machine-id:/etc/machine-id \ | |
-v /run/user/$uid/pulse:/run/user/$uid/pulse \ | |
-v /var/lib/dbus:/var/lib/dbus \ | |
-v ~/.pulse:/home/$dockerUsername/.pulse \ | |
--privileged \ | |
$containerName |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment