Last active
August 29, 2015 14:07
-
-
Save ertrzyiks/9b9b3b6a51c379842bc2 to your computer and use it in GitHub Desktop.
Docker and Vagrant configuration on OS X
This file contains hidden or 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
FROM dockerfile/nginx |
This file contains hidden or 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
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 |
This file contains hidden or 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
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