Skip to content

Instantly share code, notes, and snippets.

@okeefm
Created August 28, 2014 14:41
Show Gist options
  • Save okeefm/91a35f5b02734f9cffd5 to your computer and use it in GitHub Desktop.
Save okeefm/91a35f5b02734f9cffd5 to your computer and use it in GitHub Desktop.
# -*- 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
# -*- 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
#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