Giter VIP home page Giter VIP logo

dsi-studio-docker's Introduction

Docker Cloud Automated build Docker Cloud Build Status Docker Pulls

dsi-studio-docker

DSI Studio in a Docker container.

Requirements

  • Docker
  • An X11 socket

Quickstart

Assuming that you are able to run docker commands without sudo, run below command from the directory ($PWD) which stores the datasets or images. In the (dockerized) DSI Studio, these datasets or images can be browsed under /data directory.

docker run -ti --rm -e DISPLAY=$DISPLAY \
                    -v /tmp/.X11-unix:/tmp/.X11-unix \
                    -v $PWD:/data \
                    manishka/dsi-studio-docker:latest 

Help! I started the container but I don't see the DSI Studio screen

You might have an issue with the X11 socket permissions since the default user used by the base image has an user and group ids set to 1000, in that case you can run either create your own base image with the appropriate ids or run below command on your machine and try again.

xhost +

over SSH with X11Forwarding

If you are running docker remotely with ssh and see the error

qt.qpa.xcb: could not connect to display localhost:64.0 qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: linuxfb, minimal, offscreen, vnc, xcb.

you may need additional docker parameters --net host -v $HOME/.Xauthority:/root/.Xauthority:rw

docker run -ti --rm -e DISPLAY=$DISPLAY \
                    --net host  -v $HOME/.Xauthority:/root/.Xauthority:rw \
                    -v /tmp/.X11-unix:/tmp/.X11-unix \
                    -v $PWD:/data \
                    manishka/dsi-studio-docker:latest 

dsi-studio-docker's People

Contributors

dmd avatar maksteel avatar willforan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dsi-studio-docker's Issues

last updated over a year ago

could/should there be a newer build?

ideally if builds could be tagged with the version of dsi studio (or at least the date) to discriminate between them and being able to pull previous one, would be nice

cannot build from Dockerfile

When building from the Dockerfile:

Step 17/33 : RUN source /opt/qt512/bin/qt512-env.sh && qmake ../src && make
 ---> Running in 1e7bea85745c
Info: creating stash file /dsistudio/build/.qmake.stash
/opt/qt512/bin/uic: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
/opt/qt512/bin/uic: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
/opt/qt512/bin/uic: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
/opt/qt512/bin/uic: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
/opt/qt512/bin/uic: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
/opt/qt512/bin/uic: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
/opt/qt512/bin/uic: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
/opt/qt512/bin/uic: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
/opt/qt512/bin/uic: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
/opt/qt512/bin/uic: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
/opt/qt512/bin/uic: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
/opt/qt512/bin/uic: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
/opt/qt512/bin/uic: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
/opt/qt512/bin/uic: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
/opt/qt512/bin/uic: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
/opt/qt512/bin/uic: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
/opt/qt512/bin/uic: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
/opt/qt512/bin/uic: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
/opt/qt512/bin/uic ../src/mainwindow.ui -o ui_mainwindow.h
/opt/qt512/bin/uic: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
make: *** [ui_mainwindow.h] Error 127
Makefile:6207: recipe for target 'ui_mainwindow.h' failed
The command '/bin/bash -c source /opt/qt512/bin/qt512-env.sh && qmake ../src && make' returned a non-zero code: 2

'Qt_5.12' not found

When attempting to use the dsi-studio docker image the following message appears:

Host: Centos 7.6

docker run -ti manishka/dsi-studio-docker

/opt/dsistudio/dsi_studio: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version Qt_5.12' not found (required by /opt/dsistudio/dsi_studio) /opt/dsistudio/dsi_studio: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version Qt_5.12' not found (required by /opt/qt512/lib/libQt5OpenGL.so.5)
/opt/dsistudio/dsi_studio: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version Qt_5.12' not found (required by /opt/qt512/lib/libQt5Charts.so.5) /opt/dsistudio/dsi_studio: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version Qt_5.12' not found (required by /opt/qt512/lib/libQt5Widgets.so.5)
/opt/dsistudio/dsi_studio: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.12' not found (required by /opt/qt512/lib/libQt5Gui.so.5)

What can be done to go about using the docker image?

Cannot open fiber tracking section

Hi! what a coincidence I was also working on that yesterday.

Although I had a different approach since I was simply copying the binary instead of running it inside the container.

What do you think that are the pros and cons from running it inside than use it just for building?

I tried to run it as you suggested but gettin an
Unrecognized OpenGL version when trying to open the fiber tracking section
Any suggestions?

note about ssh -X: --net host -v $HOME/.Xauthority:/root/.Xauthority:rw

If I ssh -X to a the docker host, I need the additional docker options --net host -v $HOME/.Xauthority:/root/.Xauthority:rw to get the GUI on X11 forwarding over ssh in docker. This in addition to host +x on local.

The host +x in the readme is super helpful. Does a ssh+docker parameter tip fall on that side of the helpful vs intimidating/too niche balance?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.