Skip to content

Instantly share code, notes, and snippets.

@tjdett
Created January 20, 2016 03:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tjdett/65742c08ac6994ab328a to your computer and use it in GitHub Desktop.
Save tjdett/65742c08ac6994ab328a to your computer and use it in GitHub Desktop.
Attempt at Slicer via X11 socket
FROM centos:7
MAINTAINER Tim Dettrick <t.dettrick@uq.edu.au>
RUN SLICER_URL="http://download.slicer.org/bitstream/461634" && \
curl -v -s -L $SLICER_URL | tar xz -C /tmp && \
mv /tmp/Slicer* /opt/slicer
RUN yum install -y mesa-libGLU libSM libXrender libXt fontconfig
RUN mkdir -p /data && chmod a+rwx /data
RUN yum install -y "xorg-x11-fonts-*"
USER nobody
VOLUME /data
WORKDIR /data
ENV QT_X11_NO_MITSHM 1
ENV LIBGL_ALWAYS_INDIRECT 1
ENV HOME /data
ENTRYPOINT ["sh", "-c", "mkdir -p Documents && /opt/slicer/Slicer"]
# Run with:
# docker run -ti --rm -e DISPLAY=$DISPLAY \
# -v /tmp/.X11-unix:/tmp/.X11-unix \
# --user `id -u` \
# slicer-desktop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment