-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
41 lines (33 loc) · 1.1 KB
/
Vagrantfile
File metadata and controls
41 lines (33 loc) · 1.1 KB
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
39
40
41
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
config.vm.provider "virtualbox" do |vb|
vb.memory = "4096"
vb.cpus = 4
end
config.vm.provision "shell", inline: <<-SHELL
yum update
yum install -y git glibc-static curl vim gcc clang wget
wget https://nodejs.org/dist/v10.15.3/node-v10.15.3-linux-x64.tar.xz
tar --strip-components 1 -xvf node-v* -C /usr/local
SHELL
$script = <<-SHELL
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain \"nightly\"
git clone --recurse-submodules https://github.com/denoland/deno.git
cd deno
sed -i '/default_args/a use_sysroot = false' .gn
SHELL
config.vm.provision "shell", inline: $script, privileged: false
# To build:
# vagrant up
# vagrant ssh
# cd deno
# ./tools/setup.py
# ./tools/build.py
#
# Sometimes I have to run the build twice :(
#
# After a successful build, get the binary out from the host machine:
# scp -i .vagrant/machines/default/virtualbox/private_key -P 2222 vagrant@127.0.0.1:/home/vagrant/deno/target/debug/deno .
end