Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.
/ rails-vagrant Public archive

Template for creating rail virtual machines with vagrant

Notifications You must be signed in to change notification settings

btoone/rails-vagrant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This project will provision a virtual machine using Vagrant. After provisioning, the vm should be packaged into a box and made available for other team members to download.

Doing so will allow a team member to get starting using this vm by simply doing the following steps:

curl -O http://[server]/vm.box       #=> download the vm box
vagrant box add box_name vm.box      #=> adds the vm box

# inside the project directory
vagrant init                         #=> creates vagrantfile (optional)
vagrant up                           #=> start the vm

Provisioning

Before you can package and distribute the vm as a box you'll need to provision it. You can do so by executing the provision.sh script.

The provisioning script will do the following:

bundle install                                  #=> install gems to vendor/bundle
librarian-chef install                          #=> install the cookbooks
vagrant up                                      #=> provision the vm
vagrant package --vagrantfile Vagrantfile.pkg   #=> package the vm
vagrant box add box_name package.box            #=> add box to local boxes

Template

Use git archive to export this template and create a new rails vm project

git archive -o latest.zip HEAD                  #=> creates an archive

About

Template for creating rail virtual machines with vagrant

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published