Skip to content

Docker image to develop OpenGL apps with python. Provides a virtual framebuffer and a VNC server

Notifications You must be signed in to change notification settings

supertorpe/docker-python-opengl-vnc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-python-opengl

Docker image to develop OpenGL apps with python.

The image provides a virtual framebuffer (xvfb), a minimalistic window manager (jwm) and a VNC server (x11vnc), so you can develop opengl apps entirely within the container with no external dependencies.

You only need a VNC client to display the container desktop.

Run container

docker compose up

Now, you can connect your VNC client to localhost:5900 to display the container's desktop.

Opengl Development

Your host folder './code' is mounted on the container's folder './app/code'. You can create .py files there and run them within the container.

You can also use Visual Studio Code extension "Dev containers" to attach vscode to the container and develop from there as if you were coding on the host.

I encourage you to install the vscode extension "Python" so that you can debug your code.

Make sure you create .py files from the host -not from the container-, because the container is running with "root" user, so the files you create from the container will belong to "root" user instead of your current user.

Shutting down the container

docker compose down

About

Docker image to develop OpenGL apps with python. Provides a virtual framebuffer and a VNC server

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published