Merge "Update automated project templates"
[releng/builder.git] / vagrant / integration-robotframework / bootstrap.sh
1 #!/bin/bash
2
3 # vim: sw=4 ts=4 sts=4 et tw=72 :
4
5 yum clean all
6 # Add the ODL yum repo
7 yum install -q -y https://nexus.opendaylight.org/content/repositories/opendaylight-yum-epel-6-x86_64/rpm/opendaylight-release/0.1.0-1.el6.noarch/opendaylight-release-0.1.0-1.el6.noarch.rpm
8 yum update -q -y
9
10 yum install -q -y java-1.7.0-openjdk-devel git perl-XML-XPath
11
12 # The following are known requirements for our robotframework environments
13 yum install -q -y python-{devel,importlib,requests,setuptools,virtualenv,docker-py} \
14     robotframework{,-{httplibrary,requests,sshlibrary}}
15
16 # To handle the prompt style that is expected all over the environment
17 # with how use use robotframework we need to make sure that it is
18 # consistent for any of the users that are created during dynamic spin
19 # ups
20 echo 'PS1="[\u@\h \W]> "' >> /etc/skel/.bashrc