Sign inSign up

simexp/octave

By simexp

•Updated about 9 years ago

Octave, built on top of the minc-toolkit in Ubuntu. We presently use octave 4.2.1

Artifact
Image
3

4.2K

simexp/octave repository overview

GNU Octave⁠ along with a handful of toolboxes.

For the following instructions to work, you need to be on a linux system, with docker installed, and you need to be part of the docker group⁠. The following commands are for LINUX only. Command to run bash (don't start octave)

docker run -i -t --rm --name octavebash -v $HOME:$HOME \
--user $UID:$GID simexp/octave:3.8.1 /bin/bash -c "export \ 
HOME=$HOME; USER=$USER; cd $HOME; source\
 /opt/minc-itk4/minc-toolkit-config.sh; exec bash"

Command to run octave as command line

docker run -i -t --rm --name octavecli -v $HOME:$HOME \
--user $UID:$GID simexp/octave:3.8.1 /bin/bash -c "export \
HOME=$HOME; USER=$USER; cd $HOME; source \
/opt/minc-itk4/minc-toolkit-config.sh; octave"

Command to run octave as GUI

xhost +local:
docker run -i -t --rm --name octavegui  -v /tmp/.X11-unix:/tmp/.X11-unix \
-e DISPLAY=unix$DISPLAY -v $HOME:$HOME --user $UID:$GID \
simexp/octave:3.8.1 /bin/bash -c "export HOME=$HOME; USER=$USER; \
cd $HOME; source /opt/minc-itk4/minc-toolkit-config.sh; octave --force-gui"

Finally, if somehow the process did not exit properly and docker complains that octave is already running when you restart it, type:

docker stop octavegui
docker rm octavegui

Replace octavegui by octavecli or octavebash, depending on the type of session you used.

This image is built using the following Docker file⁠.

Tag summary

Content type

Image

Digest

sha256:64155da38…

Size

1.6 GB

Last updated

over 10 years ago

docker pull simexp/octave