Skip to content

Instantly share code, notes, and snippets.

@michaelwallett
Created February 2, 2015 18:52
Show Gist options
  • Save michaelwallett/49f66f3e7eac4dc9f625 to your computer and use it in GitHub Desktop.
Save michaelwallett/49f66f3e7eac4dc9f625 to your computer and use it in GitHub Desktop.
Vagrant Docker
FROM node:0.10.32-onbuild
EXPOSE 3000
VAGRANTFILE_API_VERSION = "2"
ENV['VAGRANT_DEFAULT_PROVIDER'] = 'docker'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.define "site" do |v|
v.vm.provider "docker" do |d|
d.build_dir = "."
d.ports = ["3000:3000"]
d.vagrant_vagrantfile = "./Vagrantfile.proxy"
end
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 :forwarded_port, guest: 3000, host: 3000
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment