Commit a7c2b974 authored by frozar's avatar frozar

[DOCKER] Add a docker for paraview.

parent 174dcb07
# Documentation link: http://fabiorehm.com/blog/2014/09/11/running-gui-apps-with-docker/
FROM ubuntu:14.04
RUN apt-get update && apt-get install -y python-vtk paraview dbus-x11
## RUN apt-get install -y strace emacs
# Replace 1000 with your user / group id
RUN export uid=1001 gid=1001 && \
mkdir -p /home/developer && \
echo "developer:x:${uid}:${gid}:Developer,,,:/home/developer:/bin/bash" >> /etc/passwd && \
echo "developer:x:${uid}:" >> /etc/group && \
echo "developer ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/developer && \
chmod 0440 /etc/sudoers.d/developer && \
chown ${uid}:${gid} -R /home/developer
USER developer
ENV HOME /home/developer
ENV QT_X11_NO_MITSHM=1
# CMD /usr/bin/paraview
# Interactive run
## docker run -ti --rm -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -u $(id -u):$(id -g) paraview
# Building command
## docker build -t paraview .
docker run --rm -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix paraview
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment