Skip to content

Commit 2ccd419

Browse files
committed
Add Vagrantfile for development
1 parent 0f85cdd commit 2ccd419

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
.DS_Store
2+
/.vagrant

Vagrantfile

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# -*- mode: ruby -*-
2+
# vi: set ft=ruby :
3+
4+
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
5+
VAGRANTFILE_API_VERSION = '2'
6+
7+
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
8+
config.vm.box = 'boxcutter/ubuntu1604'
9+
config.ssh.forward_agent = true
10+
11+
config.vm.provider 'vmware_fusion' do |v|
12+
v.vmx['memsize'] = '1024'
13+
v.vmx['numvcpus'] = '2'
14+
end
15+
16+
config.vm.provision :shell, path: 'dev/install-vagrant.sh'
17+
end

dev/install-vagrant.sh

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
set -ex
3+
apt-get update
4+
apt-get install -y apt-transport-https ca-certificates
5+
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
6+
echo deb https://apt.dockerproject.org/repo ubuntu-xenial main | tee /etc/apt/sources.list.d/docker.list
7+
8+
apt-get update
9+
apt-get install -y docker-engine
10+
service docker start
11+
systemctl enable docker
12+
13+
usermod -aG docker vagrant

0 commit comments

Comments
 (0)