Created
August 28, 2014 14:41
-
-
Save okeefm/91a35f5b02734f9cffd5 to your computer and use it in GitHub Desktop.
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 : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
if Vagrant.has_plugin?("vagrant-proxyconf") | |
config.proxy.http = "http://proxy:80" | |
config.proxy.https = "http://proxy:80" | |
config.proxy.no_proxy = "localhost,127.0.0.1" | |
end | |
config.vm.box_download_insecure = true | |
end |
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 : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
# VAGRANTFILE_API_VERSION = "2"' | |
#VirtualBox Docker backing Vagrantfile | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "3scale/docker" | |
config.vm.provision "docker" | |
config.vm.provision "shell", inline: | |
"ps aux | grep 'sshd:' | awk '{print $2}' | xargs kill" | |
end |
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
#Main Vagrantfile | |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# All Vagrant configuration is done here. | |
config.vm.define "app" do |app| | |
app.vm.provider "docker" do |d| | |
d.vagrant_vagrantfile = "./docker/Vagrantfile" | |
d.image = "dockerfile/mongodb" | |
d.name = "app_db" | |
d.expose = [27017] | |
d.remains_running = true | |
end | |
app.vm.provider "docker" do |d| | |
d.vagrant_vagrantfile = "./docker/Vagrantfile" | |
d.build_dir = "./docker" | |
d.name = "app" | |
d.ports = ["8080:80"] | |
end | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment