/devbox

ubuntu virtual machine for developers provisioned with git, python, lamp, nodejs, docker, aws-cli and terraform development

Primary LanguageShell

DevBox

Installation

vagrant up

The build process feedback can be found in file ~/vm_build.log inside devbox.

git version 2.7.4
Python 2.7.12
pip 8.1.1 from /usr/lib/python2.7/dist-packages (python 2.7)
Python 3.5.2
pip 8.1.1 from /usr/lib/python3/dist-packages (python 3.5)
curl 7.47.0 (x86_64-pc-linux-gnu) libcurl/7.47.0 GnuTLS/3.4.10 zlib/1.2.8 libidn/1.32 librtmp/2.3
PHP 7.0.30-0ubuntu0.16.04.1 (cli) ( NTS )
Server version: Apache/2.4.18 (Ubuntu) Server built: 2018-04-18T14:53:04
mysql Ver 14.14 Distrib 5.7.22, for Linux (x86_64) using EditLine wrapper
ii  phpmyadmin                       4:4.5.4.1-2ubuntu2                         all          MySQL web administration tool
nodejs v10.4.1
npm 6.1.0
bower 1.8.4
gulp [03:13:15] CLI version 3.9.1
Docker version 18.03.1-ce, build 9ee9f40
docker-compose version 1.21.2, build a133471
aws-cli/1.15.40 Python/3.5.2 Linux/4.4.0-122-generic botocore/1.10.40
Terraform v0.11.7

Available provisions

Remote SSH into devbox

ssh-keygen -t rsa

You will see something like this

Your identification has been saved in /Users/kumar/.ssh/id_rsa.
Your public key has been saved in /Users/kumar/.ssh/id_rsa.pub.

Copy the content of id_rsa.pub and append it to ~/.ssh/authorized_keys in the vm

vagrant ssh
vagrant@devbox:~$ copied_public_key >> ~/.ssh/authorized_keys

Replace copied_public_key with with your own public key. ssh vagrant@127.0.0.1 -p 2222

Alias for easy ssh

dev() {
    cd /path/to/devbox
    vagrant ssh
}

This will add dev command alias to ssh into devbox

References