Setup scripts for Elastic Bamboo EBS snapshot for RVM, Ruby, and Rails
Setup:
-
Fire up a Bamboo image and create an attached EBS volume as normal.
-
Login to instance, become root.
-
Modify /mnt/bamboo-ebs/bin/customize-extras.sh to include the line:
git clone git://github.com/uceem/bamboo-ebs-ruby.git
bash /mnt/bamboo-ebs/bamboo-ebs-ruby/customize-ruby.sh -
Optionally, run the script (this will make instance load times much faster):
/mnt/bamboo-ebs/bin/customize-extras.sh
-
Generate a snapsnot as usual:
killall java
generateSnapshot.sh -
Configure Bamboo image to use the new snapshot.