Monthly Archives: April 2015

Testing if a jenkins container finished booting

When running Jenkins as a docker container for test purposes, it is necessary to verify the Jenkins master is fully functional before running the first test cases. The http interface can be tested with a call to the API such … Continue reading

Posted in jenkins | Leave a comment

DNS spoofing with RPZ and bind9

When two web services reside on the same LAN, it may be convenient to spoof DNS entries to use the LAN IP instead of the public IP. It can be done using RPZ and bind9. For instance can be … Continue reading

Posted in Uncategorized | Leave a comment

Mirror github pull requests locally

Each GitHub pull request is associated with a reference in the target repository. For instance the commit sent to pull request 3948 is the reference refs/pull/3948/head. If GitHub successfully merges the pull request in the target branch, another reference is … Continue reading

Posted in git, gitlab | Leave a comment

Using a cloud image with kvm

It would be convenient to have a virt-builder oneliner such as $ virt-builder –arch i386 –ssh-inject ~/.ssh/ fedora-21 to get an image suitable to run and login with $ qemu-kvm -m 1024 -net user,hostfwd=tcp::2222-:22 \ -drive file=fedora-21.qcow2 & $ ssh … Continue reading

Posted in Uncategorized | 2 Comments

Ceph make check in a ram disk

When running tests from the Ceph sources, the disk is used intensively and a ram disk can be used to reduce the latency. The kernel must be rebooted to set the ramdisk maximum size to 16GB. For instance on Ubuntu … Continue reading

Posted in ceph | Leave a comment