docker rm $(docker ps -a -q|head -n1) docker rm $(docker ps -a -q|head -n1) ... docker images |awk '{print "docker rmi " $3}' |bash rm -rf .oardocker
cd ~ virtualenv oar-venv source oar-venv/bin/activate # Install de oardocker dans le virtualenv cd ~/git/oar-docker pip install . # ou "pip install -e ." pour le mode "editable"
mkdir ~/oar-jessie cd ~/oar-jessie # ou: cd ~/oar-jessie && rm -rf .oardocker oardocker init -f -e jessie oardocker build oardocker install ~/git/oar/
mkdir ~/oar3-dev cd ~/oar3-dev ou: cd ~/oar3-dev && rm -rf .oardocker oardocker init -f -e oar3-dev build
* Charger l'environnement
source ~/oar-venv/bin/activate
* Lancement des containers
cd ~/oar3-dev oardocker start -n 2 -v ~/git/oar3:/home/docker/oar3 -v ~/git/oar:/home/docker/oar
* Connexion frontend
oardocker connect frontend
* Arret des containers
oardocker stop
oardocker connect frontend cd /home/docker/oar3 pip install -e .
oardocker connect frontend cd /home/docker/oar3 ./runapi.py --old-api-proxy docker:docker@localhost:6668/oarapi-priv
oardocker connect frontend cd /home/docker/oar/tests/rspec make APIURI=http://docker:docker@localhost:6668/newoarapi-priv/ MODE=oar3 format_checking ''Attention au / final dans l'url, il est important''
tox -e py27-memory oar tests