All Projects → samuell → Devbox Golang

samuell / Devbox Golang

A Vagrant box with Ansible provisioning for setting up a vim-based Go(lang) development environment

Programming Languages

shell
77523 projects
golang
3204 projects

Projects that are alternatives of or similar to Devbox Golang

Vagrant Box Templates
Stars: ✭ 100 (+19.05%)
Mutual labels:  ansible, vagrant, virtualbox
Rhcsa8env
This is a RHCSA8 study environment built with Vagrant/Ansible
Stars: ✭ 108 (+28.57%)
Mutual labels:  ansible, vagrant, virtualbox
Drupal Vm
A VM for Drupal development
Stars: ✭ 1,348 (+1504.76%)
Mutual labels:  ansible, vagrant, virtualbox
Packer Ubuntu 1404
DEPRECATED - Packer Example - Ubuntu 14.04 Vagrant Box using Ansible provisioner
Stars: ✭ 81 (-3.57%)
Mutual labels:  ansible, vagrant, virtualbox
Kube Ansible
Build a Kubernetes cluster via Ansible playbook. 🔧 🔧 🔧
Stars: ✭ 354 (+321.43%)
Mutual labels:  ansible, vagrant, virtualbox
Beetbox
Pre-provisioned L*MP stack
Stars: ✭ 94 (+11.9%)
Mutual labels:  ansible, vagrant, virtualbox
Packer Ubuntu 1804
This build has been moved - see README.md
Stars: ✭ 101 (+20.24%)
Mutual labels:  ansible, vagrant, virtualbox
Packer Centos 6
This build has been moved - see README.md
Stars: ✭ 78 (-7.14%)
Mutual labels:  ansible, vagrant, virtualbox
Packer Centos 7
This build has been moved - see README.md
Stars: ✭ 223 (+165.48%)
Mutual labels:  ansible, vagrant, virtualbox
Packer Templates
Scripts and Templates used for generating Vagrant images
Stars: ✭ 219 (+160.71%)
Mutual labels:  ansible, vagrant, virtualbox
Trellis
WordPress LEMP stack with PHP 8.0, Composer, WP-CLI and more
Stars: ✭ 2,295 (+2632.14%)
Mutual labels:  ansible, vagrant, virtualbox
Splunkenizer
Ansible framework providing a fast and simple way to spin up complex Splunk environments.
Stars: ✭ 73 (-13.1%)
Mutual labels:  ansible, vagrant, virtualbox
Packer Boxes
Jeff Geerling's Packer build configurations for Vagrant boxes.
Stars: ✭ 495 (+489.29%)
Mutual labels:  ansible, vagrant, virtualbox
Molecule Ansible Docker Aws
Example project showing how to test Ansible roles with Molecule using Testinfra and a multiscenario approach with Docker, Vagrant & AWS EC2 as infrastructure providers
Stars: ✭ 72 (-14.29%)
Mutual labels:  ansible, vagrant, virtualbox
Ansible Phoenix
[Unmaintained] Develop and deploy a Phoenix app using Ansible!
Stars: ✭ 37 (-55.95%)
Mutual labels:  ansible, vagrant
Workstations
Vagrant virtual workstations and development environments with Visual Studio, Docker, IIS and SQL Server on Windows for .NET development
Stars: ✭ 45 (-46.43%)
Mutual labels:  vagrant, virtualbox
Metta
An information security preparedness tool to do adversarial simulation.
Stars: ✭ 867 (+932.14%)
Mutual labels:  vagrant, virtualbox
Vagrant Centos7 Ansible Lamp
Ansible example using Vagrant to deploy Centos7 server with Apache2.4.6, PHP7 (with xdebug), mariaDB5.5 and phpmyadmin to local VM.
Stars: ✭ 41 (-51.19%)
Mutual labels:  ansible, vagrant
Ansible Role Packer rhel
Ansible Role - Packer RHEL/CentOS Configuration for Vagrant VirtualBox
Stars: ✭ 45 (-46.43%)
Mutual labels:  ansible, virtualbox
Ansible Windows Docker Springboot
Example project showing how to provision, deploy, run & orchestrate Spring Boot apps with Docker Windows Containers on Docker Windows native using Packer, Powershell, Vagrant & Ansible
Stars: ✭ 58 (-30.95%)
Mutual labels:  ansible, vagrant

DevBox-Golong

Vagrant box backed by Docker or Virtualbox, with Ansible provisioning

A Vagrant box (Virtualbox or Docker as providers) with Ansible provisioning for setting up a Vim-based Golang development environment.

Screenshot

Note: There are currently problems with the docker version of the script, so please use the virtualbox version until this is solved!

Ingredients

Optional ingredients

Uncomment roles in playbook.yml to enable these.

Prerequisites

Installing the requirements in Ubuntu (tested with 14.04)

  1. Install Virtualbox:

    sudo apt-get install virtualbox
    
  2. Install Docker:

    sudo apt-get install docker.io
    
  3. Install a recent version of ansible:

    sudo apt-get install ansible/trusty-backports
    

    (if you ubuntu version is "trusty", otherwise, replace it with your appropriate version)

  4. Install Vagrant, by first downloadng the proper .deb file from vagrantup.com

  5. ... and then installing it with:

    sudo dpkg -i <deb-file>
    

Setup and Usage

Clone the github repository:

git clone [email protected]:samuell/devbox-golang
cd devbox-golang

Bring up the VM

With docker provider (Expect it to take at least ~8m):

vagrant up docker

With VirtualBox provider (Expect it to take at least ~20m):

vagrant up virtualbox

Log in to the VM

With docker provider:

vagrant ssh docker

With VirtualBox provider:

vagrant ssh virtualbox

Create a repository for uploading to github:

mkcd ~/code/go/src/github/<user>/<repo>
git init .

Now, start coding!

vim main.go

A tip on how you can upload your existing git ssh keys to the new vm:

With the following command you can get the info you need to run scp against the machine:

vagrant ssh-config [docker | virtualbox]

Note the hostname and port number (and identity file, if you with), and run, for example:

scp -i <identity-file-path> -P <portno> \
	~/.ssh/id_rsa_<whateveryounamedit> \
	[email protected]<hostname>:/home/vagrant/.ssh/

Then, sometimes, in order to get the new key activated in your shell after logging in to the vm, you might need to do:

ssh-agent bash -l
ssh-add ~/.ssh/id_rsa_<whateveryounamedit>
  • Autocompletion will happen automatically
  • If you have turned off the YouCompleteMe role, you will get autocompletion with <C-x><C-o>

Known issues

  • GDB Breakpoints don't take, unless you follow the advice given here. That is, in short, do this on your Host machine, if you run Ubuntu:

    sudo apt-get install apparmor-utils
    sudo echo 'aa-complain /etc/apparmor.d/docker' >> /etc/rc.local
    sudo aa-complain /etc/apparmor.d/docker
    

    The problem seems to be that ptrace is not given access to the process otherwise.

  • There are some really red message from the docker daemon when running vagrant halt. Everything seems to work as expected though (including the shutdown)

  • There are some red message on vagrant up, but they are nothing serious, and can be ignored for now.

  • When building Go 1.5 dev, the build will end with a lot of error messages, but that is from the tests after the build. The build itself seems to work, largely.

References

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].