653012b63120a7a463d506af3651c6125c046caf
[releng/builder.git] / packer / provision / java-builder.sh
1 #!/bin/bash
2
3 # vim: sw=4 ts=4 sts=4 et tw=72 :
4
5 # The following packages are not needed by all projects, but they are
6 # needed by enough to make them useful everywhere
7 yum install -y @development perl-{Digest-SHA,ExtUtils-MakeMaker} \
8     ant {boost,gtest,json-c,libcurl,libxml2,libvirt,openssl}-devel \
9     {readline,unixODBC}-devel yum-utils
10
11 #Install python3 and dependencies
12 yum install -y python34
13 yum install -y python34-{devel,virtualenv,setuptools,pip}
14
15 # Install python dependencies
16 yum install -y python-{devel,virtualenv,setuptools,pip}
17
18 # Needed by autorelease scripts
19 yum install -y xmlstarlet
20
21 # sshpass for the current deploy test to be runable immediatelly after
22 # build
23 yum install -y sshpass
24
25 # tcpmd5 is wanting to do 32bit ARM cross-compilation and is specifically
26 # requesting the following be installed (note the kernel headers are
27 # going to be the x86_64 package as there aren't separate 32bit and
28 # x86_64 packages for them
29 yum install -y glibc-devel.i686 kernel-headers
30
31 # The following is needed by opendove, if this is to be perfomed against
32 # an EL6 system some of these packages are not availalble (or at the
33 # wrong version) in publically available repositories as such this
34 # should only really be done on an EL7 (or F18+) system
35 yum install -y {jansson,libevent,libnl,libuuid}-devel
36
37 #The following is needed for the vsemprovider build in vtn project.
38 #these packages will enable C# compilation.
39 rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF"
40 #Added the mono tools repository
41 yum-config-manager -y --add-repo http://download.mono-project.com/repo/centos/
42 #install the mono toolchain and nuget
43 yum -y install mono-complete nuget
44 #end changes for vsemprovider in VTN
45
46 # The following installs hashicorp's packer binary which is required  for
47 # the {verify,merge}-packer jobs
48 mkdir /tmp/packer
49 cd /tmp/packer
50 wget https://releases.hashicorp.com/packer/0.10.1/packer_0.10.1_linux_amd64.zip
51 unzip packer_0.10.1_linux_amd64.zip -d /usr/local/bin/
52 # rename packer to avoid conflict with binary in cracklib
53 mv /usr/local/bin/packer /usr/local/bin/packer.io