-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
62 lines (51 loc) · 2.19 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.hostname = "xenial64"
config.vm.network "forwarded_port", guest: 80, host: 80
config.vm.network "forwarded_port", guest: 443, host: 443
config.vm.network "private_network", ip: "192.168.33.10"
config.ssh.forward_x11 = true
config.vm.synced_folder "../../../Github", "/home/vagrant/Github"
config.vm.provider "virtualbox" do |vb|
vb.memory = "4096"
vb.name = "xenial64"
vb.customize [
"modifyvm", :id,
"--vram", "256",
"--cpus", "2"
]
end
config.vm.provision "shell", inline: <<-SHELL
# init
apt-get update
apt remove -y nano
timedatectl set-timezone Asia/Tokyo
apt-get install -y jq unzip
apt install -y colordiff
SHELL
config.vm.provision "file", source: "./config/bash_aliases", destination: "~/.bash_aliases"
# Host-machine setting
# - X server(VcXsrv) install
# - export DISPLAY=localhost:0.0
# Remote-machine setting
# - export DISPLAY=localhost:10.0
config.vm.provision "shell", path: "provision/vscode.sh", privileged: false
config.vm.provision "shell", path: "provision/python3.sh", privileged: false
config.vm.provision "shell", path: "provision/ruby.sh", privileged: false
config.vm.provision "shell", path: "provision/docker.sh", privileged: true
config.vm.provision "shell", path: "provision/nodejs.sh", privileged: false
config.vm.provision "shell", path: "provision/packer.sh", privileged: false
#(required) rubygems
config.vm.provision "shell", path: "provision/tmux.sh", privileged: false
config.vm.provision "shell", path: "provision/terraform.sh", privileged: false
#(required) rugygems, python2,3, node.js
config.vm.provision "shell", path: "provision/neovim.sh", privileged: false
#(required) python3
config.vm.provision "shell", path: "provision/aws.sh", privileged: false
config.vm.provision "shell", path: "provision/ansible.sh", privileged: false
config.vm.provision "shell", inline: <<-SHELL
sudo chown -R vagrant:vagrant /home/vagrant/.config
SHELL
end