Self Contained Automated Test Environment
Run a CentOS 6 image with the following user data https://gist.github.com/viglesiasce/5847752 or with an existing CentOS 6 installation follow the steps below.
yum install python-devel python-setuptools gcc make python-virtualenv java-1.6.0-openjdk.x86_64 git ntp wget unzip
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
sudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
yum install jenkins
chkconfig jenkins on
chkconfig ntpd on
service ntpd start
ntpdate -u pool.ntp.org
iptables -F
iptables -F -t nat
iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080
iptables-save > /etc/sysconfig/iptables
pushd /var/lib
wget https://github.com/eucalyptus/micro-qa/archive/master.zip
unzip master
rsync -va micro-qa-master/ jenkins/
popd
service jenkins start