Skip to content

Commit e8cc5a1

Browse files
committed
Update vagrantfile, setup script and add README.md file
1 parent aaaa5ac commit e8cc5a1

File tree

3 files changed

+48
-1
lines changed

3 files changed

+48
-1
lines changed

README.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Vagrant with golang environment
2+
3+
Simple golang development environment for Vagrant.
4+
5+
**Table of Contents**
6+
7+
- [Requirements](#require)
8+
- [Quickstart](#quickstart)
9+
- [License](#license)
10+
11+
12+
## <a name="require">Requirements</a>
13+
14+
1. You must have installed (Vagrant)[http://www.vagrantup.com/downloads.html]
15+
2. And (VirtualBox)[https://www.virtualbox.org/wiki/Downloads]
16+
17+
## <a name="quickstart"></a>Quickstart
18+
19+
First at all clone our vagrant repository:
20+
21+
``` bash
22+
$> git clone https://github.com/ivan-iver/vagrant_golang.git golang
23+
```
24+
25+
After that you can run your vagrant machine:
26+
27+
```
28+
$ cd golang/
29+
$ vagrant up --provision
30+
```
31+
32+
Then the box will be downloaded for you.
33+
34+
If you wish, you can learn more about it alter a [vagrant file](Vagrantfile) and its [configuration options](ConfigOptions).
35+
36+
## <a name="license"></a>Copyright and license
37+
38+
***
39+
40+
Copyright (c) 2015 Iván Jaimes. See [LICENSE](LICENSE) for details.
41+
42+
43+
[Vagrant]: http://www.vagrantup.com/
44+
[Vagrantfile]: https://github.com/ivan-iver/vagrant_golang/blob/master/Vagrantfile
45+
[ConfigOptions]: http://docs.vagrantup.com/v2/vagrantfile/

Vagrantfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@ VAGRANTFILE_API_VERSION = "2"
77

88
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
99
# 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_url = "/Users/Iver/VirtualBox VMs/ubuntu-14.04.box"
1011
config.vm.box = "golangmx"
1112
config.vm.hostname = "gophers"
1213
config.vm.network "private_network", ip: "10.2.2.205"
1314
config.vm.provision :shell, path: "bin/setup.sh"
1415

1516
config.ssh.forward_agent = true
17+
config.vm.box_check_update = true
1618

1719
config.vm.provider "virtualbox" do |vb|
1820
vb.customize ["modifyvm", :id, "--accelerate3d", "off"]

bin/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
sed -i 's/^mesg n$/tty -s \&\& mesg n/g' /root/.profile
44
apt-get update
55
apt-get upgrade -y
6-
apt-get install nginx mercurial mercurial-git postgresql-9.4-postgis-2.1 postgresql-contrib-9.4 -y
6+
apt-get install git mercurial mercurial-git -y
77

0 commit comments

Comments
 (0)