Created
February 2, 2015 18:52
-
-
Save michaelwallett/49f66f3e7eac4dc9f625 to your computer and use it in GitHub Desktop.
Vagrant Docker
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
FROM node:0.10.32-onbuild | |
EXPOSE 3000 |
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
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 |
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
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