-
Notifications
You must be signed in to change notification settings - Fork 3
/
Vagrantfile
38 lines (29 loc) · 979 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
31
32
33
34
35
36
37
38
# frozen_string_literal: true
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = 'ubuntu/trusty64'
config.vm.network :private_network, ip: '172.16.248.110'
config.vm.provider 'virtualbox' do |vb|
vb.memory = '2048'
end
config.vm.provision 'shell', privileged: false, inline: <<-SHELL
# Repositories
sudo apt-add-repository ppa:brightbox/ruby-ng
# Dependencies / Utilities
sudo apt-get update
sudo apt-get install -y screen curl git build-essential libssl-dev libpq-dev
# Ruby
sudo apt-get install ruby2.5 ruby2.5-dev
# Node
# if [ ! -f /home/vagrant/.nvm/nvm.sh ]
# then
# \\curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.0/install.sh | bash
# fi
# export NVM_DIR="/home/vagrant/.nvm"
# [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
# # Node and it's packages
# nvm install `cat .nvmrc`
# npm install --no-bin-links
SHELL
end