Created
December 19, 2014 23:12
-
-
Save robinwl/7df9204a8f6afd9448cf to your computer and use it in GitHub Desktop.
Vagrant docker fig
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 = "robin/trusty64" | |
config.vm.network "forwarded_port", guest: 80, host: 8080 | |
config.vm.provision "shell", inline: $shell | |
if Vagrant.has_plugin?("vagrant-vbguest") then | |
config.vbguest.auto_update = false | |
end | |
end | |
$shell = <<-CONTENTS | |
apt-get update | |
apt-get install -y docker.io curl | |
curl --silent -L https://github.com/docker/fig/releases/download/1.0.1/fig-`uname -s`-`uname -m` > /usr/local/bin/fig; chmod +x /usr/local/bin/fig | |
echo "cd /vagrant" >> /home/vagrant/.bashrc | |
echo "cd /vagrant" >> /root/.bashrc | |
chmod -x /etc/update-motd.d/* | |
cd /vagrant && fig up -d | |
CONTENTS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment