An early version of a RAMADDA installer is available that does a complete installation of Postgres and RAMADDA.
This runs on the Amazon Linux Image but could (should) run on other Unix-es and in other cloud environments.
14.1.0 RAMADDA Installer
The installer
README describes
the set of steps required to launch and configure an instance through the
Amazon EC2 Dashboard,
and how to download and run the RAMADDA installer on that instance.
An alternative is to use the command line installation script described below.
14.1.1 Amazon EC2 Instances
- Create an Amazon AWS account.
- From the EC2 Dashboard go to the Instances page and select Launch Instance
Choose the standard Amazon Linux AMI and select the machine type
- Create a security group with the following ports:
HTTP port 80
HTTPS port 443
SSH port 22
Optionally open FTP:
Custom TCP Rule port 21
Custom TCP Rule port range 44001 - 44099
- Add a Storage Volume.
Normally, the instance has a smallish volume. This is where /home is mounted. You can add an extra
volume that holds the the database, the RAMADDA home directory and any data you may have. The size depends
on how much data and content you plan to have on your RAMADDA. 100 GB is more than plenty for normal RAMADDA
use. Note the device, e.g., /dev/sdb. This often will show up on the machine as /dev/xvdb.
- Download the PEM file
When you Launch the instance create and save a .pem file. This is what you use to access your server.
The permissions on the pem file need to be 400, e.g.:
chmod 400 ramadda.pem
- Configure your server
#SSH to the machine
ssh -i <.pem file> ec2-user@
##get the installer
wget http://downloads.sourceforge.net/project/ramadda/ramadda2.1b/ramaddainstaller.zip
#Unpack the installer
unzip ramaddainstaller.zip
#run the installer - make sure to give it the absolute path
sudo sh /home/ec2-user/ramaddainstaller/installer.sh
This will walk you through a number of installation steps to setup the directories, and install and configure Java, Postgres and RAMADDA
To start and stop RAMADDA do:
sudo sh ramaddainstaller/ramaddaserver/ramaddainit.sh stop|start|restart
14.1.2 Command Line Amazon Install
The installer also contains an
aws.sh script.n
This script uses the
Amazon Command Line Interface (CLI)
to create and configure an Amazon machine instance running RAMADDA. In just a couple of minutes you can have a server up and running.
Consult the Amazon
CLI documentation.
You will need to set up an Amazon AWS account, create and download an access key file, and install the CLI runtime on your machine.
Once you have the CLI installed run the script:
sh aws.sh
You can kill the script at any time and re-run it without messing things up though you might see some warnings along the way.
Right now, the script works best with the default instance type. Different instance types require running in a VPN and this all rather flummoxed the author. More info about
instance types