This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo mount -o loop VBoxGuestAdditions.iso /mnt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ wget -O VBoxGuestAdditions.iso {isoのURL} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.vm.synced_folder '.', '/vagrant', disabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.vm.synced_folder '.', '/app', type: :nfs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.vm.provision "ruby", type: "ansible_local" do |ansible| | |
ansible.playbook = 'playbooks/ruby.yml' | |
ansible.install = true | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.vm.provision "ruby", type: "ansible_local" do |ansible| | |
ansible.playbook = 'playbooks/ruby.yml' | |
ansible.install = true | |
ansible.provisioning_path = '/app' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ "$(grep 'GOROOT' ${HOME}/.bashrc)" == "" ]; then | |
echo 'export GOROOT=/usr/lib/golang' >> ${HOME}/.bashrc | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo 'export GOROOT=/usr/lib/golang' >> ${HOME}/.bashrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "google_compute_instance" "default" { | |
name = "test" | |
machine_type = "f1-micro" | |
zone = "us-east1-a" | |
disk { | |
image = "centos-7-v20170719" | |
} | |
network_interface { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "google_compute_instance" "default" { | |
name = "test" | |
machine_type = "f1-micro" | |
zone = "us-east1-a" | |
disk { | |
image = "centos-7-v20170719" | |
} | |
network_interface { |