Chef cookbooks for GemStone
Most of the commands here have been taken from:
Vagrant Install Instructions
First - you need to have the following installed on your system:
- A Lucid 64bit vagrant box named lucid64 ( vagrant box add base http://files.vagrantup.com/lucid64.box )
Clone the project if you haven't already:
Then from the project root run the following command. This will try to update your RubyGems, install and
run Bundler, and copy example files.
Now open up roles/gemstone.rb and copy your public ssh key (probably ~/.ssh/id_rsa.pub or ~/.ssh/id_dsa.up) into the file - about half way down.
You can check out Vagrantfile for information about the virtual-box. The code is mainly in the cookbooks/gemstone/recipes/ directory.
Now if rake setup ran well - run the following to setup your vagrant box (this also reboots the box for some GemStone settings).
This will take a while - you'll see the progress of the Vagrant and Chef as its running.
rake va[up] && rake va[reload]
Check out Rakefile (or just run rake -T) to check out the rake tasks You can check out Vagrantfile for information about the virtual-box. The code is mainly in the cookbooks/gemstone/recipes/ directory.
Once the setup is all done - you should be able to pull up http://localhost:8888/ and see the default SeaSide site.
You can also run this to open up an X11 session:
To ssh into the Vagrant box as glass - as soon as you get your prompt you can open up a screen
session just by typing 's' - an alias for start_screen which starts a new session if none is found, or attaches to a shared session if one is already running.
Here are the current rake commands (found in Rakefile):
rake gemtools # Open remote GemTools in local X11
rake setup # Install needed gems and copy example files
rake ssh # SSH into vagrant box as glass
rake va[cmd] # Vagrant commands using bundle exec
(MIT License) - Copyright (c) 2010 JohnnyT