-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
38 lines (31 loc) · 1.29 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
35
36
37
38
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
# To run on your local machine:
config.vm.provider :virtualbox do |provider|
config.vm.box = "ubuntu/trusty64"
config.vm.network "forwarded_port", guest: 5001, host: 5001
end
# To run on Amazon AWS
config.vm.provider :aws do |provider, override|
# You can create access keys via the Amazon AWS dashboard, the code
# below assumes you store these values on your development machine
# as environment variables
provider.access_key_id = ENV["AWS_ACCESS_KEY"]
provider.secret_access_key = ENV["AWS_SECRET_KEY"]
provider.keypair_name = ENV["AWS_KEYPAIR_NAME"]
provider.security_groups = [ENV["AWS_SECURITY_GROUP"]]
provider.subnet_id = ENV["AWS_PROVIDER_ID"]
# Set the type of instance:
provider.instance_type = "t2.micro"
# Ubuntu Server 14.04 LTS (HVM), SSD Volume Type - ami-d05e75b8
provider.ami = "ami-d05e75b8"
provider.region = "us-east-1"
# Set the private key so you can connect to the instance (see AWS docs)
override.vm.box = "dummy"
override.ssh.username = "ubuntu"
override.ssh.private_key_path = ENV["AWS_KEYPAIR_PRIVATEKEY_PATH"]
end
# Run the provisioning script to install dependencies
config.vm.provision :shell, path: "provision.sh"
end