Skip to content

Base Vagrant to ease the provision of Ruby based application development environment

License

Notifications You must be signed in to change notification settings

mkdika/vagrant-ruby-dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vagrant Ruby Apps Development

License: MIT

This is my standard Vagrant VM for ease the provision of Ruby based application development environment.

Stacks

  • Vagrant box base: ubuntu/bionic64 (Ubuntu 18.04LTS)
  • Ruby 2.5.3
  • Python3 & Pip3
  • Postgresql: 10

This repository will maintain and update overtime.

Usage

Copy the Vagrantfile and provision/ folder to wherever your project root directory or as your own customize usage.

Running

# To create, start and provision Vagrant for the first time
vagrant up

# To re-provision Vagrant (need to 'vagrant up' beforehand)
vagrant provision

# To remote (ssh) inside Vagrant
vagrant ssh

# To stop Vagrant
vagrant halt

# To check Vagrant status
vagrant status

# To destroy (remove) Vagrant
vagrant destroy

Customization

  • Hardware specs

    Vagrant vm specs by default is:

    • CPUs: 2
    • Memory: 2GB
    • Storage: 10GB

    You can customize it by set the environment variable in host OS, as:

    • VAGRANT_CPUS, for number of CPUs. eg. VAGRANT_CPUS=4
    • VAGRANT_MEMORY, for number of memory in MB. eg. VAGRANT_MEMORY=4096
    • VAGRANT_STORAGE, for number of storage. eg. VAGRANT_STORAGE=20GB

    You will need to pre-install Vagrant's disksize plugin in order to ease the storage size customization. To install the plugin, run:

    vagrant plugin install vagrant-disksize

    Destroy and re-up Vagrant if been exists.

License

License under the MIT license. See LICENSE file.

About

Base Vagrant to ease the provision of Ruby based application development environment

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published