-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
36 lines (27 loc) · 1004 Bytes
/
Vagrantfile
File metadata and controls
36 lines (27 loc) · 1004 Bytes
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
$dev_path='/tmp/metalware'
$script = <<SCRIPT
# Login as root and change to project dir.
echo 'sudo su -' >> /home/vagrant/.bashrc
echo 'cd #{$dev_path}' >> /root/.bashrc
export alces_OS=el7
curl -sL http://git.io/metalware-installer | /bin/bash
echo "pathmunge /opt/metalware/opt/ruby/bin" > /etc/profile.d/metalware-ruby.sh
. /etc/profile
cd #{$dev_path}
bundle install
yum install -y vim tree
SCRIPT
Vagrant.configure(2) do |config|
config.vm.box = 'centos/7'
config.vm.network "private_network", type: 'dhcp'
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.synced_folder '.', $dev_path
config.vm.synced_folder '../underware', '/tmp/underware'
config.vm.provision 'shell', inline: $script
end