RAMADDA can run under Tomcat or can run stand-alone with just Java. To run under Tomcat download the repository.war file. To run stand alone download the repository.zip file.
The major difference is that when running stand-alone RAMADDA does not support SSL access. To use SSL you should run under Tomcat (or some other Java servlet container) and configure that for SSL access. For more information see the SSL FAQ.
You need to specify the ramadda home directory. This is where it looks for properties files and other resources, where the java derby database is stored and where any uploaded data files are stored.
By default ramadda will use:
<tomcat home>/.unidata/repositoryi.e., the home directory of the process that runs tomcat.
You can override this a number of ways. What ramadda does is look for the property: ramadda_home in a variety of places, in precedence:
<param-value>-Dramadda_home=/home/dir</param-value>
The problem with this is you have to unjar the war and change the web.xml. Then, when you install a
new release you have to repeat the process.
-Dramadda_home=/home/dire.g.:
java -Xmx512m -Dramadda_home=/home/dir
ramadda_home=/home/dir
To run RAMADDA run the ramadda.sh in the release directory. This just does:
java -Xmx512m -jar repository.jarBy default the server is on port 8080. To change the port do:
java -Xmx512m -jar repository.jar -port <some port>
RAMADDA creates a local storage directory in:<home dir>/.unidata/repositoryTo change this do:
java -Xmx512m -jar repository.jar -Dramadda_home=/home/dir
Note: Files here are relative to the top-level repository path. For example, if you have a URL:
http://yourserver.edu/repository/somefile.gif
Then RAMADDA will strip off the "repository" prefix and look for a file in the RAMADDA home dir:
htdocs/somefile.gif
If you had a URL:
http://yourserver.edu/repository/somedir/somefile.gif
Then RAMADDA looks in:
htdocs/somedir/somefile.gif
y<the year>/m<the month>/d<the day>/the filesThere is also an upload directory that holds any anonymously uploaded files.
You can use the wiki text facility (see "Wiki Text in Other Entries") for the description to customize the look and feel. For example, on our main RAMADDA site we have changed the name of the top level Entry to "RAMADDA". We also have this for the description:
<wiki>
Welcome to Unidata's RAMADDA data repository.
RAMADDA is a content management system with a focus on Earth Science data.
More information is available [http://www.unidata.ucar.edu/software/ramadda/index.html here].
===Links:===
{{children title="Links" showhide="false"}}
In the source release the system properties file can be viewed:
/ucar/unidata/repository/resources/repository.properties
To define the database just uncomment the appropriate ramadda.db properties in repository.properties:
ramadda.db=derby #ramadda.db=mysql #ramadda.db=postgresThe mysql database and user/password is defined in the repository.properties file. To change the port or server the database is on and to change the user name/password just edit:
ramadda.db.mysql.url=jdbc:mysql://localhost:3306/repository?zeroDateTimeBehavior=convertToNull ramadda.db.mysql.user=the database user ramadda.db.mysql.password=the database password