Skip to content

Commit

Permalink
Vagranfile added for vagrant
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfredo Baldoceda committed Sep 22, 2015
1 parent 02bc6ca commit bd93f1c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
node/node_modules
.DS_Store

node/npm-debug.log
node/npm-debug.log
.vagrant
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ For a detailed explanation of the workflow used in this repository, refer to [th
For a detailed overview of Containers and Docker, refer to [this post from my blog](http://anandmanisankar.com/posts/container-docker-PaaS-microservices/):
[http://anandmanisankar.com/posts/container-docker-PaaS-microservices/](http://anandmanisankar.com/posts/container-docker-PaaS-microservices/)


A Vagrantfile has been added for developing purposes, just install vagrant and run "vagrant up":
[https://www.vagrantup.com/downloads.html](https://www.vagrantup.com/downloads.html)
20 changes: 20 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

unless Vagrant.has_plugin?("vagrant-docker-compose")
system("vagrant plugin install vagrant-docker-compose")
puts "Dependencies installed, please try the command again."
exit
end

Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
#config.vm.box = "box-cutter/centos70-docker"

config.vm.network(:forwarded_port, guest: 80, host: 9080)

config.vm.provision :shell, inline: "apt-get update"
#config.vm.provision :shell, inline: "yum clean all; yum makecache fast; yum -y update"
config.vm.provision :docker
config.vm.provision :docker_compose, yml: "/vagrant/docker-compose.yml", rebuild: true, project_name: "myproject", run: "always"
end

0 comments on commit bd93f1c

Please sign in to comment.