===== 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@imag.fr|Pierre Neyron]] 2015/05/06 18:23//