Sign inSign up

iluvmonero/docker-xvfb

By iluvmonero

โ€ขUpdated about 6 years ago

Trying to run GUI application inside Docker container without X server from host

Image
0

10K+

iluvmonero/docker-xvfb repository overview

โ NoVNC-Zoom

Shamelessly copied from this medium postโ 

This project was created to create a virtual desktop in a docker container and hacky join zoom meetings. Free attendence and morning sleep!!!๐Ÿ’ค

โ The project uses:

XVFB: virtual desktop
OpenBox: window manager
X11VNC: VNC server
PulseAudio: Dummy micThe project uses:
XVFB: virtual desktop
OpenBox: window manager
X11VNC: VNC server
PulseAudio: Dummy mic ๐Ÿ˜Ž
NoVNC: Http access to vnc ๐Ÿ˜‹
OpenResty: Automate zoom launch (zoomauth required)
And Zoom ofc ๐Ÿ˜

โ Running the Docker container

docker run -d -p 8080:8080 -e VNC_SERVER_PASSWORD=password --user apps  iluvmonero/docker-xvfb

NoVNC accessed by CONTAINER_IP:8080/
Launch zoom meeting by CONTAINER_IP:8080/zoom?meetid=MEETINGID
To auto-join meeting ZOOMAUTH_URL need to be provided
Check is nginx is working by CONTAINER_IP:8080/test

โ Environmental Vars

ENVDefaultDescription
PORT8080Nginx port for http access
VNC_SERVER_PASSWORDBLANKPassword for vnc access
ZOOMAUTH_URLBLANKtar.gz file that contains .zoom folder contents for authentication
LTIME40Meeting time. Eg. 40 (seconds), 2m (minutes)
PUBLIC_URLlocalhostURL to container , might be helpful to keep container awake
XVFB_RESOLUTION1280x720x16Virtual screen resolution

โ Note

While the VNC_SERVER_PASSWORD argument is optional, it is not if you are using the macOS VNC viewer. If you do not set a password on macOS, you will not be able to connect to the containerโ€™s VNC server.

This container has a non-root user apps created in Dockerfile , root passwd =docker

Please check if your GUI app needed --privileged flag , as some popular apps like chrome need it

Tag summary

Content type

Image

Digest

Size

287.6 MB

Last updated

about 6 years ago

docker pull iluvmonero/docker-xvfb