ins-amu / scripts

prepare data for TVB
MIT License
23 stars 12 forks source link

mrview works from docker #65

Open maedoc opened 6 years ago

maedoc commented 6 years ago

just diy, if you install mrtrix without the -nogui option, it works on a Linux host from Docker

docker run --rm -it --net=host \
    -v $HOME/.Xauthority:/root/.Xauthority \
    -e DISPLAY \
    -e QT_X11_NO_MITSHM=1 \
    -v $data:/data
    $image mrview /data/foo/image.nii.gz
timpx commented 6 years ago

oh that's really cool, thanks for sharing! I am going to add that to the docker file

maedoc commented 6 years ago

you use can also use a docker compose file to make running stuff easier:

https://gist.github.com/maedoc/b7b43c45ef1a8ef603879215b8010f0d

enables e.g. docker-compose run python freeview and up pops freeview. Pycharm can also use it for console, running & debug