Skip to content

Instantly share code, notes, and snippets.

@ertrzyiks
Last active August 29, 2015 14:07
Show Gist options
  • Save ertrzyiks/9b9b3b6a51c379842bc2 to your computer and use it in GitHub Desktop.
Save ertrzyiks/9b9b3b6a51c379842bc2 to your computer and use it in GitHub Desktop.
Docker and Vagrant configuration on OS X
FROM dockerfile/nginx
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.synced_folder ".", "/vagrant", type: "rsync"
config.vm.provider "docker" do |d|
d.build_dir = "."
d.ports = ["80:80"]
d.vagrant_vagrantfile = "proxy/Vagrantfile.proxy"
end
end
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provision "docker"
config.vm.provision "shell", inline:
"ps aux | grep 'sshd:' | awk '{print $2}' | xargs kill"
config.vm.network "private_network", ip: "192.168.33.10"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment