How I work with oar-docker

(see also oar-docker)

I'm currently using Debian 8 (jessie) as my operating system, and since I do not like to install python packages in my system outside of Debian packaging, I use the –user option of pip.

But first I need to install pip from Debian… Then I use it to install the latest version from python:

$ sudo apt-get install python-pip
$ /usr/bin/pip --version
pip 1.5.6 from /usr/lib/python2.7/dist-packages (python 2.7)
$
$ pip install --user --upgrade pip
$ export PATH=~/.local/bin:$PATH
$ pip --version
pip 6.1.1 from /home/neyron/.local/lib/python2.7/site-packages (python 2.7)

(add .local/bin to your PATH variable in your .bashrc if no there already)

I can then install oar-docker

$ pip install --user oar-docker

Then I use oardocker directly in OAR sources:

$ cd scm/OAR/oar/
$ oardocker init -e jessie
[...]
$ oardocker build
[...]
[...]
[...]
$ oardocker install .
[...]
$ oardocker start -v $PWD:/mnt
[...]

Then I can play with my nodes:

$ oardocker connect frontend
docker$ oarsub -I
[...]

And even update my install of OAR (does not survive a oardocker stop/start)

$ oardocker connect server
docker$ sudo -s -H
root$ cd /mnt
root$ make server-clean server-install
[...]

Finally, the drawgantt svg web interface is here: http://localhost:48080/drawgantt-svg/

Pierre Neyron 2015/05/06 18:23

wiki/how_i_work_with_oar-docker.txt · Last modified: 2015/06/11 20:24 by bzizou
Recent changes RSS feed GNU Free Documentation License 1.3 Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki