Merge pull request #33 from balena-io/improve-vagrant

vagrant: Add missing Node dependency
This commit is contained in:
Rich Bayliss 2019-01-10 11:01:42 +00:00 committed by GitHub
commit 7332b6971e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

3
Vagrantfile vendored
View File

@ -26,6 +26,9 @@ Vagrant.configure('2') do |config|
touch /home/vagrant/.bashrc
grep -Fxq 'source /home/vagrant/openbalena/.openbalenarc' /home/vagrant/.bashrc || echo 'source /home/vagrant/openbalena/.openbalenarc' >> /home/vagrant/.bashrc
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
source "/home/vagrant/.nvm/nvm.sh" # This loads nvm
nvm install 10.15.0 && nvm use 10.15.0
SCRIPT
config.vm.provision :shell, privileged: false, inline: $provision