-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
30 lines (30 loc) · 985 Bytes
/
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
# ------------------------
Vagrant.require_version ">= 2.0.0"
Vagrant.configure("2") do |config|
# ------------------------
# config.vm.box = "hashicorp-vagrant/ubuntu-16.04"
# config.vm.box_version = "1.0.1"
# ------------------------
config.vm.box = "hashicorp/bionic64"
config.vm.box_version = "1.0.282"
# ------------------------
# config.vm.box = "ubuntu/xenial64"
# config.vm.box_version = "v20190123.0.1"
# ------------------------
config.vm.box_check_update = false
config.vm.synced_folder "artefacts/", "/artefacts"
# config.vm.synced_folder "workspace/", "/workspace"
config.vm.synced_folder "data/", "/data", :mount_options => ["ro"]
# ------------------------
config.vm.provider "virtualbox" do |vb|
vb.gui = false
vb.memory = "4096"
# vb.cpus = 4
vb.cpus = `nproc`.to_i
end
# ------------------------
config.vm.provision "shell", inline: <<-SHELL
echo "building image ..."
bash /artefacts/runme.sh
SHELL
end