Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/samuell/devbox-base
A Vagrant box (Virtualbox or Docker as providers and Ansible provisioning) base image, to use as template for setting up specialized development environments.
https://github.com/samuell/devbox-base
Last synced: about 2 months ago
JSON representation
A Vagrant box (Virtualbox or Docker as providers and Ansible provisioning) base image, to use as template for setting up specialized development environments.
- Host: GitHub
- URL: https://github.com/samuell/devbox-base
- Owner: samuell
- Created: 2015-03-04T17:49:55.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-04T17:50:10.000Z (almost 10 years ago)
- Last Synced: 2024-10-08T20:06:09.162Z (3 months ago)
- Language: Shell
- Size: 109 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DevBox-Base
*With Docker or Virtualbox as provider and Ansible provisioning*A Vagrant box (Virtualbox or Docker as providers and Ansible provisioning)
base image, to use as template for setting up specialized development environments.## Prerequisites
- [Vagrant](https://www.vagrantup.com/)
- [Ansible](http://www.ansible.com/)
- [VirtualBox](https://www.virtualbox.org/) (Not required if you use Docker as provider!)
- [Docker](https://www.docker.com) (Not required if you use Virtualbox as provider!)### Installing the requirements in Ubuntu (tested with 14.04)
1. Install Virtualbox:
```bash
sudo apt-get install virtualbox
```2. Install Docker:
```bash
sudo apt-get install docker.io
```3. Install a recent version of ansible:
```bash
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](https://www.vagrantup.com/downloads.html)5. ... and then installing it with:
```bash
sudo dpkg -i
```## Setup and Usage
#### Clone the github repository:
```bash
git clone [email protected]:samuell/devbox-base
cd devbox-base
```#### Bring up the VM
With docker provider (Expect it to take at least ~8m):
```bash
vagrant up docker
```With VirtualBox provider (Expect it to take at least ~20m):
```bash
vagrant up virtualbox
```#### Log in to the VM
With docker provider:
```bash
vagrant ssh docker
```With VirtualBox provider:
```bash
vagrant ssh virtualbox
```#### 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:```bash
vagrant ssh-config [docker | virtualbox]
```Note the hostname and port number (and identity file, if you with),
and run, for example:```bash
scp -i -P \
~/.ssh/id_rsa_ \
vagrant@:/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:```bash
ssh-agent bash -l
ssh-add ~/.ssh/id_rsa_
```- Autocompletion will happen automatically
- If you have turned off the YouCompleteMe role, you will get autocompletion with ``## Known issues
- 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.## References
- [Vagrant & Ansible Quickstart Tutorial](http://adamcod.es/2014/09/23/vagrant-ansible-quickstart-tutorial.html)