serhii.net

In the middle of the desert you can say anything you want

UNLISTED

05 Sep 2024

Slicer deployment

Basic case:

docker run -p 8888:8888 -p 49053:49053 -v "$PWD":/home/sliceruser/work --rm -ti lassoan/slicer-notebook:latest

Running the application:

Other bits

Slicer-jupyter

docker run -p 8888:8888 -p 49053:49053 -v "$PWD":/home/sliceruser/work --rm -ti lassoan/slicer-notebook:latest

docker exec -it 0c1b5c249378 bash

(but it stops when I close the terminal)

OK OK OK THEN

then

  • disable any kind of login/token on jupyter
CMD ["sh", "-c", "./Slicer/bin/PythonSlicer -m jupyter notebook --port=$JUPYTERPORT --ip=0.0.0.0 --no-browser --NotebookApp.default_url=/lab/ --NotebookApp.token=''"]
  • start that thing
  • go directly to /desktop
  • PROBLEM: multiple users using the same instance?… damn

Fazit:

  • Running Slicer inside x11 on :8080 is absolutely doable, and including a menu etc. for file upload can be done as well.
    • (SlicerDocker examples.)
Nel mezzo del deserto posso dire tutto quello che voglio.
comments powered by Disqus