Skip to content

consortium-horizon/go-leaflet-vm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Consortium Go-Leaflet Vagrant Based Testing Environement

Introduction

This project automates the setup of a Go development environment and checkout latest version github/consortium/go-leaflet

Requirements

How To Build The Virtual Machine

Building the virtual machine is this easy:

host $ git clone https://github.com/consortium-horizon/go-leaflet-vm.git
host $ cd vm-leaflet
host $ vagrant up --provision

If the base box is not present that command fetches it first.

host $ vagrant ssh
Welcome to Ubuntu 14.04 LTS ...
...
vagrant@vagrant:~$

Ports 8080 on guest and forwarded to 8080.

Go to localhost:8080.

What's In The Box

  • Ubuntu 14.04 x64
  • Go

Recommended Workflow

The recommended workflow is

  • edit files in the host computer

  • run within the virtual machine

Your home/www folder is synced to /var/www on the guest.

Virtual Machine Management

When done just log out with and suspend the virtual machine

host $ vagrant suspend

then, resume to hack again

host $ vagrant resume

Run

host $ vagrant halt

to shutdown the virtual machine, and

host $ vagrant up

to boot it again.

You can find out the state of a virtual machine anytime by invoking

host $ vagrant status

Finally, to completely wipe the virtual machine from the disk destroying all its contents:

host $ vagrant destroy # DANGER: all is gone

Please check the Vagrant documentation for more information on Vagrant.

About

Go leaflet vagrantfile & provision script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages