forked from joachimhs/EmberFestWebsite
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathVagrantfile
37 lines (30 loc) · 1.25 KB
/
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure('2') do |config|
config.vm.box = 'ubuntu/groovy64' # 20.10
config.vm.hostname = 'emberfest'
config.vm.network :forwarded_port, guest: 4000, host: 4000
config.vm.provision :shell, inline: <<-SCRIPT
apt-get -y update
apt-get -y install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev libffi-dev
SCRIPT
config.vm.provision :shell, privileged: false, inline: <<-SCRIPT
rm -rf ~/.rbenv
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
~/.rbenv/bin/rbenv install 3.2.2
~/.rbenv/bin/rbenv global 3.2.2
SCRIPT
config.vm.provision :shell, privileged: false, inline: <<-SCRIPT
~/.rbenv/shims/gem update --system
~/.rbenv/shims/gem install bundler
~/.rbenv/shims/gem install bundler:2.4.13
SCRIPT
config.vm.provider 'virtualbox' do |v|
v.memory = 2048
v.cpus = 2
end
end