forked from thanhson1085/DemoCoin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
36 lines (31 loc) · 1.05 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provision "file", source: "~/.ssh/id_rsa", destination: "~/.ssh/id_rsa"
config.vm.provision "file", source: "~/.ssh/id_rsa.pub", destination: "~/.ssh/id_rsa.pub"
config.vm.provision "shell", inline: <<-SHELL
apt-get update && \
apt-get install -y git unzip wget curl ethereum
echo Installing NodeJS 8x ...
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
apt-get install -y nodejs
npm install -g npm@latest
npm install -g nodemon
npm install -g solc
npm install -g ethereumjs-testrpc
npm install -g truffle
SHELL
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.provider "virtualbox" do |vb|
vb.gui = false
vb.memory = 8192
vb.cpus = 2
end
config.vm.define "dev" do |n1|
n1.vm.hostname = "dev"
# port user service
n1.vm.network "forwarded_port", guest: 3000, host: 3000
n1.vm.network "forwarded_port", guest: 8545, host: 8545
end
end