Project Oscar is a Drupal development environment, in a jiffy.
It provides a stack of installed and configured services, and all the tools
you'll need to get building sites straight away.
Project Oscar requires:
- VirtualBox
http://www.virtualbox.org/ - Vagrant
http://vagrantup.com/
- A Drupal VM
Provides a web server, database, Drush, PHPMyAdmin, and local tools. - A services VM (in progress, coming soon!)
Provides Solr and Graylog2. - A test VM (in progress, coming soon!)
Provides a test platform for running Selenium and other browser-based tests.
-
Preparation (you only need to do this once):
-
Install VirtualBox.
-
Install Vagrant.
-
Download Oscar's base box.
vagrant box add oscar https://github.com/downloads/manarth/oscar/project_oscar.box
Right now, this URL assumes working from the dev build of project oscar.
Future stable releases will be published on a separate URL.
-
-
Project preparation:
- Choose a directory to work in.
We'll use ~/Development/drupaldev in this example, and assume this directory
does not yet exist. mkdir -p ~/Development/drupaldev
cd ~/Development/drupaldev
- Choose a directory to work in.
-
wget https://raw.github.com/manarth/oscar/master/Vagrantfile
or
curl https://raw.github.com/manarth/oscar/master/Vagrantfile > Vagrantfile
This is a replacement for
vagrant init oscar
.
This creates a file in the working directory calledVagrantfile
, which
contains the instructions for Vagrant to build the oscar environment.
Thewget
command is used instead ofvagrant init
, because the default
Vagrantfile only contains a single box instance, whilst Oscar uses 3. -
vagrant up
This starts the build process: creating the VMs defined by oscar, and
provisioning them with puppet.
@TODO.
Explain how to use vagrant ssh
, control Oscar with the new (and not-yet-
published Drush commands to build vhosts/drupal environments), etc.