Skip to content

Commit db6d1f0

Browse files
committed
Add vagrantfile and setup script
0 parents  commit db6d1f0

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

Vagrantfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+
6+
VAGRANTFILE_API_VERSION = "2"
7+
8+
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
9+
# config.vm.box_url = "https://github.com/ivan-iver/vagrant_golang/releases/download/v0.1-alpha/golangmx_v0.1-alpha.box"
10+
config.vm.box = "golangmx"
11+
config.vm.hostname = "gophers"
12+
config.vm.network "private_network", ip: "10.2.2.205"
13+
config.vm.provision :shell, path: "bin/setup.sh"
14+
15+
config.ssh.forward_agent = true
16+
17+
config.vm.provider "virtualbox" do |vb|
18+
vb.customize ["modifyvm", :id, "--accelerate3d", "off"]
19+
vb.customize [ "guestproperty", "set", :id, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold", 10000 ]
20+
vb.memory = 1024
21+
vb.cpus = 2
22+
end
23+
end

bin/setup.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
sed -i 's/^mesg n$/tty -s \&\& mesg n/g' /root/.profile
4+
apt-get update
5+
apt-get upgrade -y
6+
apt-get install nginx mercurial mercurial-git postgresql-9.4-postgis-2.1 postgresql-contrib-9.4 -y
7+

0 commit comments

Comments
 (0)