This repository has been archived by the owner on May 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Vagrantfile
34 lines (26 loc) · 1.49 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
config.vm.box = "healthkitbox"
#config.vm.box_url = "ubuntu/trusty64"
config.vm.provision :shell, :inline => "sudo apt-get update"
config.vm.provision :shell, :inline => "sudo apt-get install curl -y"
config.vm.provision :shell, :inline => "sudo apt-get install vim -y"
config.vm.provision :shell, :inline => "curl -sSL https://get.docker.com/gpg | sudo apt-key add -"
config.vm.provision :shell, :inline => "curl -sSL https://get.docker.com/ | sh"
config.vm.provision :shell, :inline => "curl -L https://github.com/docker/compose/releases/download/1.4.0/docker-compose-`uname -s`-`uname -m` > docker-compose; chmod +x docker-compose; sudo mv docker-compose /usr/local/bin/docker-compose"
config.vm.provision :shell, :inline => "sudo usermod -aG docker vagrant"
config.vm.provision :shell, :inline => "git clone https://github.com/andmos/dotfiles"
config.vm.provision :shell, :inline => "cp dotfiles/.bash_profile /home/vagrant; cp dotfiles/.vimrc /home/vagrant"
config.vm.provision :shell, :inline => "echo All done, go vagrant ssh!"
config.vm.forward_port 5002, 5000 # HealthKitServer
config.vm.forward_port 8983, 8983 # Solr
config.vm.forward_port 6379, 6379 # Redis
config.vm.forward_port 3306, 3306 # MySQL
config.vm.forward_port 5432, 5432 # PostgreSQL
end
Vagrant.configure("2") do |config|
config.vm.provider :virtualbox do |virtualbox|
virtualbox.customize ["modifyvm", :id, "--memory", "1024"]
end
end