Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

Commit

Permalink
Add experimental OpenGL runtime/vgl images
Browse files Browse the repository at this point in the history
  • Loading branch information
3XX0 committed May 28, 2016
1 parent 771a199 commit 0158f50
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
24 changes: 24 additions & 0 deletions ubuntu-14.04/opengl/runtime/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM ubuntu:14.04
MAINTAINER NVIDIA CORPORATION <digits@nvidia.com>

LABEL com.nvidia.volumes.needed="nvidia_driver"

RUN apt-get update && apt-get install -y --no-install-recommends --force-yes \
libxau6 \
libxdmcp6 \
libxcb1 \
libxext6 \
libx11-6 \
xauth && \
rm -rf /var/lib/apt/lists/*

RUN echo "/usr/local/nvidia/lib" >> /etc/ld.so.conf.d/nvidia.conf && \
echo "/usr/local/nvidia/lib64" >> /etc/ld.so.conf.d/nvidia.conf

RUN mkdir -p /opt/nvidia/lib && \
ln -s /usr/local/nvidia/lib /opt/nvidia/lib/i386-linux-gnu && \
ln -s /usr/local/nvidia/lib64 /opt/nvidia/lib/x86_64-linux-gnu

ENV PATH /usr/local/nvidia/bin:${PATH}
ENV LD_LIBRARY_PATH /usr/local/nvidia/lib:/usr/local/nvidia/lib64:${LD_LIBRARY_PATH}
ENV LD_PRELOAD /opt/nvidia/\$LIB/libGL.so.1:${LD_PRELOAD}
15 changes: 15 additions & 0 deletions ubuntu-14.04/opengl/virtualgl/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM opengl:runtime
MAINTAINER NVIDIA CORPORATION <digits@nvidia.com>

RUN apt-get update && apt-get install -y --no-install-recommends --force-yes \
ca-certificates \
curl \
libxv1 && \
rm -rf /var/lib/apt/lists/*

RUN curl -fsSL -o virtualgl.deb https://sourceforge.net/projects/virtualgl/files/2.5/virtualgl_2.5_amd64.deb/download && \
dpkg -i virtualgl.deb && rm virtualgl.deb

ENV PATH /opt/VirtualGL/bin/:${PATH}

ENTRYPOINT ["/opt/VirtualGL/bin/vglrun"]

0 comments on commit 0158f50

Please sign in to comment.