forked from citahub/cita
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
30 lines (24 loc) · 884 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
$set_environment_variables = <<SCRIPT
tee "/etc/profile.d/cita_boot.sh" > "/dev/null" <<EOF
export USING_VAGRANT=1
export VAGRANT_DATA_PATH=/tmp/citadata
EOF
SCRIPT
Vagrant.configure(2) do |config|
config.vm.box = "cryptape/easy_cita"
config.vm.box_version = "0.0.1"
config.ssh.insert_key = false
# Got error "Warning: Authentication failure. Retrying..." ?
# Uncomment below lines, run `vagrant reload; vagrant ssh` again. And enter password.
# config.ssh.username = "vagrant"
# config.ssh.password = "vagrant"
config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'"
config.vm.provider "virtualbox" do |v|
v.memory = 4096
v.cpus = 4
v.customize [ "modifyvm", :id, "--uartmode1", "disconnected" ]
end
config.vm.provision "shell", inline: $set_environment_variables, run: "always"
end