Add ArchLinux vagrant-machine. Not yet tested
This commit is contained in:
parent
d1779cf0d9
commit
43d54db667
4 changed files with 54 additions and 0 deletions
|
@ -72,6 +72,9 @@
|
|||
compiling Foam
|
||||
- opensuse13 :: OpenSUSE 13.1 machine. The current LTS-version of
|
||||
OpenSUSE
|
||||
- archlinux :: An ArchLinux-machine. Might take a long time during
|
||||
provisioning as the script updated the full
|
||||
OS.
|
||||
Some machines (read: the BSD-boxes) need the =VirtualBox Extension
|
||||
Pack= installed (because they have USB 2.0)
|
||||
* Scripts in the machine
|
||||
|
|
10
vagrantSandbox/Vagrantfile
vendored
10
vagrantSandbox/Vagrantfile
vendored
|
@ -154,4 +154,14 @@ Vagrant.configure("2") do |config|
|
|||
opensuse13.vm.hostname="opensuse13."+config.vm.hostname
|
||||
end
|
||||
|
||||
config.vm.define :archlinux do |archlinux|
|
||||
archlinux.vm.box = "terrywang/archlinux"
|
||||
archlinux.vm.box_check_update = true
|
||||
archlinux.vm.provision :shell do |s|
|
||||
s.args = "archlinux"
|
||||
s.path = "initArchlinuxScript.sh"
|
||||
end
|
||||
archlinux.vm.hostname="archlinux."+config.vm.hostname
|
||||
end
|
||||
|
||||
end
|
||||
|
|
40
vagrantSandbox/initArchlinuxScript.sh
Executable file
40
vagrantSandbox/initArchlinuxScript.sh
Executable file
|
@ -0,0 +1,40 @@
|
|||
#! /bin/bash
|
||||
|
||||
boxName=$1
|
||||
|
||||
echo
|
||||
echo "Init script for $boxName"
|
||||
echo
|
||||
|
||||
echo
|
||||
echo "Full update of the system"
|
||||
echo
|
||||
|
||||
pacman -Syu
|
||||
|
||||
yaourt --noconfirm -S rpm-org
|
||||
|
||||
neededPackages=(gcc-fortran ccache mercurial bison flex git )
|
||||
bonusPackages=(emacs tcsh)
|
||||
thirdpartyPackages=(openmpi cmake hwloc)
|
||||
|
||||
for p in ${neededPackages[@]}; do
|
||||
pacman --noconfirm -S $p
|
||||
done
|
||||
|
||||
for p in ${bonusPackages[@]}; do
|
||||
pacman --noconfirm -S $p
|
||||
done
|
||||
|
||||
for p in ${thirdpartyPackages[@]}; do
|
||||
pacman --noconfirm -S $p
|
||||
done
|
||||
|
||||
echo
|
||||
echo "Archlinux-specific ended. Now doing general stuff"
|
||||
echo
|
||||
|
||||
/vagrant/initGeneralScript.sh
|
||||
|
||||
echo
|
||||
echo "Ended"
|
|
@ -12,6 +12,7 @@ do
|
|||
else
|
||||
echo "Copying $target from skeleton"
|
||||
cp -r "/vagrant/skel/$f" $target
|
||||
chown -R vagrant:vagrant $target
|
||||
fi
|
||||
done
|
||||
|
||||
|
|
Reference in a new issue