File tree Expand file tree Collapse file tree 3 files changed +48
-1
lines changed
Expand file tree Collapse file tree 3 files changed +48
-1
lines changed Original file line number Diff line number Diff line change 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/
Original file line number Diff line number Diff line change @@ -7,12 +7,14 @@ VAGRANTFILE_API_VERSION = "2"
77
88Vagrant . 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" ]
Original file line number Diff line number Diff line change 33sed -i ' s/^mesg n$/tty -s \&\& mesg n/g' /root/.profile
44apt-get update
55apt-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
You can’t perform that action at this time.
0 commit comments