Overview | Documentation | Community

Blank FedoraSolr Disk Image

Description

This is a Disk Image with Fedora and Solr pre-configured to work with ActiveFedora. All you need to do is download the image, mount it and start Fedora.

Fedora 3.2.1 with demo objects installed
Solr 1.3 with schema.xml from RubyFedora/ActiveFedora 1.0.4

Note: ActiveFedora is not installed on this image. You must download and configure that separately.

Using the Image

Note about this Image and ActiveFedora 1.0.9

We have yet to update the disk image to work with the most recent release of the active-fedora gem (1.0.9). We will post a new disk image shortly. In the meantime, to use the current disk image with version 1.0.9, you have two options:

  1. (preferred) save the new solr schema into /Volumes/fedora/solr/config and restart tomcat
  2. save this config file as solr_mappings.yml in your application's config folder

Download The Image

Download The Image (206MB)
MD5 (fedora-3.2.1-solr-1.3.0-testing.dmg) = 10be91ab50f9af831baa7057e5273b54

This is a compressed disk image. You want to mount a copy of the image rather than the image itself to that you can easily start over from a fresh "install" of fedora and solr. To do this, mount the image with "hdiutil attach <image name> -shadow"

For example:
hdiutil attach fedora-3.2.1-solr-1.3.0-testing.dmg -shadow

This will mount a copy of the disk image at /Volumes/fedora-solr-testing.

Because you mounted the image using the -shadow flag, the data actually gets written to a .shadow file (which you'll find next to the dmg) rather than writing to the disk image itself. To "reset" the image, just delete the shadow file and remount the disk image, et voila! a fresh instance of Fedora & Solr

Environment Variables

Set FEDORA_HOME to /Volumes/fedora-solr-testing/fedora and set CATLINA_HOME to $FEDORA_HOME/tomcat
export FEDORA_HOME=/Volumes/fedora-solr-testing/fedora
export CATLINA_HOME=$FEDORA_HOME/tomcat

Run Fedora

Start Fedora in the foreground

/Volumes/fedora-solr-testing/fedora/tomcat/bin/startup.sh

to see the log:

tail -f /Volumes/fedora-solr-testing/fedora/tomcat/logs/catalina.out

to get out of the log, use ctrl+C

to confirm if Fedora is working, go to:

http://localhost:8080/fedora/describe
http://localhost:8080/fedora/objects/demo:5
http://localhost:8080/solr/admin

(None of these pages should return errors.)

To stop Fedora, simply hit ctrl-c in the window where fedora is running.

sample-bash-profile - Sample Bash Profile - rename to .profile in your home folder (338 Bytes) Matt Zumwalt, 11/26/2008 10:57 AM

Also available in: HTML TXT