Skip to content

iver/vagrant-golang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vagrant with golang environment

Simple golang development environment for Vagrant.

Overview

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

  1. You must have installed Vagrant
  2. And VirtualBox

Quickstart

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.

Entry on /etc/hosts

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 and license


Copyright (c) 2015 Iván Jaimes. See LICENSE for details.

Feedback

Feedback is more than welcome; I probably got some things wrong so please tell me about it.