GithubHelp home page GithubHelp logo

golang-box's Introduction

Golang Box

Packer template to prepare Golang development environment

Description

You can easily setup Golang development environment by the following procedure.

Create Vagrantfile:

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|

  config.vm.define :node do |node|
    node.vm.box = "tkak/centos-7.0-x86_64-golang"
  end

end

Boot VM and SSH login:

$ vagrant up
$ vagrant ssh

Start Golang development:

i.g.)
$ zsh  ## If you want to use zsh

Environment

Box OS Tools
centos-7.0-x86_64-golang CentOS 7.0 x86_64 golang, git, vim + vim-bootstrap, zsh + oh-my-zsh, ghq, peco

Requirement

  • Virtual Box
  • Vagrant
  • Packer

How to make a box image

Make a vagrant box image by using Packer:

$ git clone [email protected]:tkak/golang-box.git
$ cd packer
$ packer build centos-7.0-x86_64.json
$ vagrant box add centos-7.0-x86_64-golang ../builds/virtualbox/centos-7.0-x86_64-golang.box
$ vagrant box list

References

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Run style checks and RSpec tests (bundle exec rake)
  4. Commit your changes (git commit -am 'Add some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create new Pull Request

golang-box's People

Contributors

tkak avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.