-
Notifications
You must be signed in to change notification settings - Fork 10
/
Vagrantfile
38 lines (33 loc) · 1.17 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.define 'simp-rake-helpers_test' do |config|
config.vm.box = "centos/7"
config.vm.provider "virtualbox" do |vb|
vb.memory = "1024"
end
# Install docker (to support beaker)
config.vm.provision "shell", inline: <<-SHELL
yum install --enablerepo=extras -y docker vim-enhanced git libicu-devel tree
usermod -aG dockerroot vagrant
cat <<DOCKAH_DOCKAH_DOCKAH > /etc/docker/daemon.json
{
"live-restore": true,
"group": "dockerroot"
}
DOCKAH_DOCKAH_DOCKAH
chmod 0644 /etc/docker/daemon.json
systemctl start docker
systemctl enable docker
SHELL
# Set up the vagrant user
config.vm.provision "shell", privileged: false, inline: <<-SHELL
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
[ -f install_rvm.sh ] || curl -sSL https://get.rvm.io > install_rvm.sh
bash install_rvm.sh stable '--with-default-gems=bundler beaker rake' --ruby=2.1.9
source /home/vagrant/.rvm/scripts/rvm
cd /vagrant
bundle
SHELL
end
end