Mesa 3D OpenGL Software Rendering (Gallium) - LLVMpipe, and OpenSWR Drivers
2.0K
Minimal Docker container bundled with the Mesa 3D Gallium Drivers: LLVMpipe & OpenSWR, enabling OpenGL support inside a Docker container without the need for a GPU.
| Image | Description |
|---|---|
utensilsunion/opengl | Latest Mesa version |
utensilsunion/opengl:19.0.8 | Mesa version 19.0.8 |
utensilsunion/opengl:18.3.6 | Mesa version 18.3.6 |
utensilsunion/opengl:18.2.8 | Mesa version 18.2.8 |
This image can be built using the supplied Makefile
make
I build this image primarily to extnend from for other projects, but below are some simple examples. This image is already loaded with a trivial entrypoint script.
Extending from this image.
FROM utensilsunion/opengl:19.0.8
COPY ./MyAppOpenGLApp /AnywhereMyHeartDesires
RUN apk add --update my-deps...
Running a simple glxgears test.
docker run utensilsunion/opengl:demos glxgears -info
Running glxgears with OpenSWR
docker run -e GALLIUM_DRIVER=swr utensilsunion/opengl:demos glxgears -info
| Variable | Default Value | Description |
|---|---|---|
XVFB_WHD | 1920x1080x24 | Xvfb demensions and bit depth. |
DISPLAY | :99 | X Display number. |
LIBGL_ALWAYS_SOFTWARE | 1 | Forces Mesa 3D to always use software rendering. |
GALLIUM_DRIVER | llvmpipe | Sets OpenGL Driver llvmpipe, swr, softpipe, and swrast |
| Variable | Default Value | Description |
|---|---|---|
LP_NO_RAST | false | LLVMpipe - If set LLVMpipe will no-op rasterization |
LP_DEBUG | "" | LLVMpipe - A comma-separated list of debug options is accepted |
LP_PERF | "" | LLVMpipe - A comma-separated list of options to selectively no-op various parts of the driver. |
LP_NUM_THREADS | "" | LLVMpipe - An integer indicating how many threads to use for rendering. Zero (0) turns off threading completely. The default value is the number of CPU cores present. |
Content type
Image
Digest
Size
144.8 MB
Last updated
about 7 years ago
docker pull utensilsunion/opengl