-
Notifications
You must be signed in to change notification settings - Fork 7
Production Installation: Overview
randikathryn edited this page Jan 22, 2014
·
71 revisions
HydraDAM runs on Linux and these production installation instructions have been tested on Ubuntu and CentOS. They may or may not work on other flavors of unix.
Follow the instructions in the order listed below. We recommend using rvm in single-user development environments, however native installation of ruby in production environments is preferred because of complexities that can arise when using rvm under multiple user contexts.
- Set up prerequisites for these instructions.
- Install dependencies (development tools & libraries).
- (CentOS) Disable SELinux.
- Install ruby 2.0 and rubygems 2.0.
- Install java 7.
- Install Tomcat.
- Install a sql db for Fedora.
- Install Fedora.
- Install solr 4.2.
- Install Redis.
- Install ffmpeg.
- Install fits.
- Clone the git repo & install gems The git repo contains the hydradam-specific code. The gems contain other people's code that we use in hydraDAM. We are standing on the shoulders of giants here.
- Install & configure Apache & Passenger Apache and Passenger work together to serve up the hydraDAM web pages. Apache is the generic web server; passenger (https://www.phusionpassenger.com/) manages the multiple processes hydraDAM (a ruby on rails app) generates.
- Create the production sql database The production database stores user data and other information related to hydraDAM.
- Create and configure the yml files The yml files store the confidential information needed to connect the hydradam code to the other elements of the system, including fedora, solr, and redis.
- Configure the rails application to make sure all the parts of the system are working together. This step includes the secret token, the fits path, solr configuration, the temporary transcoding directory, storage management, and more.
- Create an admin user You'll need an admin user to review the resque queues and to administer other users' information.
- Set up resque pool Resque-pool starts and manages a pool of resque workers that handle jobs like transcoding video files and retrieving metadata with fits, so your users can move on to the next page or the next upload while their jobs are in process.
- Test your installation:
- Open a browser, navigate to the home page of your application, and log in
- Click on the Upload button (right side of screen)
- Click on Select files . . .
- In the popup window, select a file from your local drive and click OK
- Click on Start upload - once the file is uploaded, you'll see the Apply Metadata screen
- Change the Title if desired, select a Resource Type, enter a Keyword, enter a Creator, and select a license in the Rights section
- Scroll down and click Save - the resque workers will begin transcoding - if you've uploaded a large file, this may take some time
- Use the dropdown in the upper right corner to move to your Dashboard
- Select your object and confirm that your metadata is correct
- Test the Download and Edit links
- Celebrate! You have a working HydraDAM
Troubleshooting: finding the logs, administering solr, administering fedora, administering resque-pool
Enhancements/Additions
- Log rotation - you may want to rotate the logs for mysql, tomcat, fedora, apache, and the application
- Enable/configure email for password resets
- Firewall to secure Solr and Fedora
- Add FTP functionality Ftp allows you to upload files larger than the http transfer limit. Large video files generally must be uploaded via ftp.
- (CentOS) Incorporating SELinux SELinux offers filesystem security by enforcing rules on CentOS servers. In its default configuration, SELinux will interfere with hydradam. You'll need to configure it to allow the processes hydradam needs if you want to use it on your hydradam server.