Simple golang development environment for Vagrant.
This project aims to facilitate the use of golang
avoiding Operative System dependence issues, in this way we can focus on our development rather than installation configuration issues. You should be note that it is a project aimed at beginner developer so you do not expect anything advanced.
Tools on the box
About tools
Go, also commonly referred to as golang, is a programming language developed at Google in 2007 by Robert Griesemer, Rob Pike, and Ken Thompson. Designed primarily for systems programming, it is a compiled, statically typed language in the tradition of C and C++, with garbage collection, various safety features and CSP-style concurrent programming features added.
Vagrant is computer software that creates and configures virtual development environments. It can be seen as a higher-level wrapper around virtualization software such as VirtualBox, VMware, KVM and Linux Containers (LXC), and around configuration management software such as Ansible, Chef, Salt, and Puppet.
Source: Wikipedia
Table of Contents
- You must have installed Vagrant
- And VirtualBox
First at all clone our vagrant repository:
$ git clone https://github.com/iver/vagrant_golang.git golang
After that you can run your vagrant machine:
$ cd golang/
$ vagrant up --provision
Then the box will be downloaded for you.
If you wish, you can learn more about it alter a vagrant file and its configuration options.
How to add an entry to your /etc/hosts file on the host system.
You can use the vagrant pluging hostupdater:
You can install it with:
$ vagrant plugin install vagrant-hostsupdater
You currently only need the hostname and a :private_network network with a fixed IP address.
config.vm.network "private_network", ip: "10.2.2.205"
config.hostsupdater.aliases = ["vm.iver.mx", "gophers.iver.mx"]
This IP address and the hostname will be used for the entry in the /etc/hosts file.
More information about it on vagrant-hostupdater page
Copyright (c) 2015 Iván Jaimes. See LICENSE for details.
Feedback is more than welcome; I probably got some things wrong so please tell me about it.