Created
          January 20, 2016 03:21 
        
      - 
      
- 
        Save tjdett/65742c08ac6994ab328a to your computer and use it in GitHub Desktop. 
    Attempt at Slicer via X11 socket
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | FROM centos:7 | |
| MAINTAINER Tim Dettrick <[email protected]> | |
| 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