💻 A Virtual Machine for a ruby on rails developer
- apt / apt-get
- htop
- git
- oh_my_zsh
- rbenv
- redis
- nginx
- elastic-search
- postgresql
- mysql
- ruby 2.3.0
- my projects from github
- my dotfiles project
- timezone, locale
- neobundle for vim
- nodejs with npm
- VirtualBox
- Vagrant
- Chef-dk
- Berk
- local home called
projects
in the home directory:~/projects
The install process is taking about: 50 min
- Download and Install
Virtual Box
- virtual machine provider - Download and Install
Vagrant
- virtualization tool - Download and Install
Chef-dk
- chef tools - Create a projects folder (sync folder) using:
mkdir ~/projects
- Download the a project zip file from github download zip button
- Install the ruby-on-rails-dev-box:
vagrant up
- Connect to the virtual machine:
vagrant ssh
- Copy the ssh key with
pbcopy < ~/.ssh/id_rsa.pub
and add it to the github settings - Test github connection:
ssh -T [email protected]
vagrant <command>
Command | Description |
---|---|
up | starts the virtual machine |
status | check the status for the virtual machine |
ssh | connect to the virtual machine by ssh |
halt | stops the virtual machine |
provision | run the provision commands to the virtual machine, in this case the chef-solo |
suspend | save the current status of the virtual machine and hibernate it |
resume | resume the virtual machine from suspension |
destroy | destroy the virtual machine |
the host computer and the virtual machine share a folder by nfs
(more efficient) in both by the path: ~/projects/
Port | What is for |
---|---|
80 | nginx http |
443 | nginx https |
3000 | rails server |
5432 | postgresql |
6379 | redis |
9200 | elastic search |