Created
December 9, 2017 09:20
-
-
Save toshimasa-nanaki/24132029a82f94fdc349a9ae6ff0ff4f to your computer and use it in GitHub Desktop.
Vagrantfileとinit.sh(Redmine動作確認用)
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
#!/bin/sh | |
#パッケージを更新 | |
sudo yum -y update |
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
# coding: utf-8 | |
Vagrant.configure("2") do |config| | |
config.vm.provider :virtualbox do |v| | |
v.name = "centos7-redmine" | |
v.customize ["modifyvm", :id, "--memory", 2048] | |
end | |
config.vm.box = "centos/7" | |
config.vm.hostname = "centos7-redmine" | |
config.vm.network :private_network, ip: "192.168.33.105" | |
config.ssh.forward_agent = true | |
config.vm.synced_folder "share/", "/vagrant", type: "rsync" | |
config.vm.provision "shell", inline: <<-SHELL | |
/vagrant/init.sh | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment