diff --git a/README.md b/README.md index 2ae3eb8..6715d32 100644 --- a/README.md +++ b/README.md @@ -1,84 +1,85 @@ C4SCIENCE ========= * Ansible playbook for git infrastructure on openstack INSTALL ------- * You need ansible >= 2.0 ``` cd ~ git clone https://github.com/ansible/ansible.git cd ansible git submodule update --init --recursive sudo python setup.py install sudo pip install shade sudo apt-get install python-nova ``` USAGE ----- * How to use, ``` make status #list instances make up #create instances make clean #destroy instances ``` * You must create an Switch Engines bucket * see https://help.switch.ch/engines/documentation/s3-like-object-storage/ ``` ./s3cmd mb s3://phabricator ``` * you must create a volume for the repo, and attach it to the jump server ``` nova volume-create 100 nova volume-attach /dev/vdb ``` TODO ---- * Shibboleth auth * Volumes for /var/lib/mysql TEST ---- * Some benchmarking examples, ``` ## GIT Read cd /tmp parallel -j 10 git clone ssh://git@86.119.28.215:1234/diffusion/TESTA/test.git \ -- $(for i in $(seq 20); do echo test$i; done) 1> /dev/null -## GIT Write -REPO={A..Z} -# Create 10 repositories +## Conduit API (create repo from remote) +REPO=$(echo {A..Z}) +# Create some repositories for i in $REPO; do echo "{\"name\":\"test\", \"callsign\": \"TEST$i\", \"vcs\": \"git\", \"uri\": \"https://git.epfl.ch/repo/repo-test.git\"}" \ | arc call-conduit repository.create done -# Clone them -cd /tmp -for i in $REPO; do - git clone ssh://git@86.119.28.215:1234/diffusion/TEST$i/test.git test$i -done + +# Clone them (doesnt work) +#cd /tmp +#for i in $REPO; do +# git clone ssh://git@86.119.28.215:1234/diffusion/TEST$i/test.git test$i +#done # Test commit and push -parallel -i -j 10 sh -c 'cd test{}; echo "TEST" > README.md; git commit -am "test"; git push' -- $(echo $REPO) +#parallel -i -j 10 sh -c 'cd test{}; echo "TEST" > README.md; git commit -am "test"; git push' -- $(echo $REPO) ## GIT test lock parallel -i -j 2 sh -c 'cd test{}; git pull; echo "* TEST" >> README.md; git commit -am "test"; git push' -- $(seq 50) ## HTTP ab -C phsid:cz27psxxn2zjxtkw4v2tokhbjy4ix2lrifj6exm3 -C phusr:admin -n 1000 \ -c 10 http://86.119.28.215/diffusion/TESTA/repository/master/ ```