Last active
June 18, 2020 04:18
-
-
Save koki-h/8a2990ac49f37124dc90523ef1e635ed to your computer and use it in GitHub Desktop.
Plastic Rails( https://github.com/koki-h/plastic_rails )のデバッグ用Virtualboxを作成するVagrantfile。ruby, bundler, docker (compose)が最初から入る。
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "bento/ubuntu-18.04" | |
config.vm.network "private_network", ip: "192.168.33.10" | |
config.vm.provision "shell", inline: <<-SHELL | |
apt-get install ruby -y | |
gem install bundler | |
curl -fsSL https://get.docker.com -o get-docker.sh | |
sh get-docker.sh | |
usermod -aG docker vagrant | |
systemctl enable docker | |
curl -L "https://github.com/docker/compose/releases/download/1.25.5/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
chmod +x /usr/local/bin/docker-compose | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment