Skip to content

Instantly share code, notes, and snippets.

@amcorreia
Created May 5, 2015 01:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amcorreia/773fed34ca59d2260374 to your computer and use it in GitHub Desktop.
Save amcorreia/773fed34ca59d2260374 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"
#Check if you have the good Vagrant version to use docker provider...
Vagrant.require_version ">= 1.6.0"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
ENV['VAGRANT_DEFAULT_PROVIDER'] = 'docker'
# Every Vagrant virtual environment requires a box to build off of.
#config.vm.box = "debian"
config.vm.hostname = "HOSTNAME"
# config.vm.box_check_update = false
config.ssh.forward_agent = true
config.vm.network "forwarded_port", guest: 80, host: 8080
config.vm.synced_folder "..", "/vagrant_data"
config.vm.provider "docker" do |d|
d.build_dir = "."
d.name = "HOSTNAME"
d.has_ssh = true
end
config.ssh.port = 22
config.vm.provision :shell, path: "bootstrap.sh"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment