Add a CentOS 6 Box. Installs but compilation is untested
--HG-- rename : vagrantSandbox/initUbunutuScript.sh => vagrantSandbox/initCentOSRHELScript.sh
This commit is contained in:
parent
5572d00013
commit
338173c01e
2 changed files with 41 additions and 0 deletions
9
vagrantSandbox/Vagrantfile
vendored
9
vagrantSandbox/Vagrantfile
vendored
|
@ -39,4 +39,13 @@ Vagrant.configure("2") do |config|
|
|||
end
|
||||
end
|
||||
|
||||
config.vm.define :centos65 do |centos65|
|
||||
centos65.vm.box = "centos65"
|
||||
centos65.vm.box_url = "https://github.com/2creatives/vagrant-centos/releases/download/v6.5.1/centos65-x86_64-20131205.box"
|
||||
centos65.vm.provision :shell do |s|
|
||||
s.args = "centos65"
|
||||
s.path = "initCentOSRHELScript.sh"
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
|
32
vagrantSandbox/initCentOSRHELScript.sh
Executable file
32
vagrantSandbox/initCentOSRHELScript.sh
Executable file
|
@ -0,0 +1,32 @@
|
|||
#! /bin/bash
|
||||
|
||||
boxName=$1
|
||||
|
||||
echo
|
||||
echo "Init script for $boxName"
|
||||
echo
|
||||
|
||||
# some of these packages are already installed. But lets be sure
|
||||
|
||||
neededPackages=(gcc-g++ mercurial git flex bison make ccache rpm-build)
|
||||
bonusPackages=(emacs csh tcsh zsh)
|
||||
|
||||
for p in ${neededPackages[@]}; do
|
||||
yum install -y $p
|
||||
done
|
||||
|
||||
for p in ${bonusPackages[@]}; do
|
||||
yum install -y $p
|
||||
done
|
||||
|
||||
echo "Update mercurial to a more recent version"
|
||||
rpm -Uhv http://pkgs.repoforge.org/mercurial/mercurial-2.2.2-1.el6.rfx.x86_64.rpm
|
||||
|
||||
echo
|
||||
echo "RHEL/CentOS-specific ended. Now doing general stuff"
|
||||
echo
|
||||
|
||||
/vagrant/initGeneralScript.sh
|
||||
|
||||
echo
|
||||
echo "Ended"
|
Reference in a new issue