Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To set up this application we will assume that you have the following tools installed on the target instance:

  1. Git
  2. Java 11+git
  3. Maven 3+
  4. Tomcat7 Tomcat8.5 (with the manager turned on)
  5. Mysql 5.57+

Download and build the source code

...

Code Block
sudo mkdir /var/log/duracloud
sudo chown tomcat7tomcat /var/log/duracloud

Setup Tomcat

...

  1. duracloud.bridge.root.username - the username used for initializing the instance (default root).
  2. duracloud.bridge.root.password - the password used for initializing the instance (default rpw).
  3. duracloud.bridge.root.email - an email associated with the root account that will send email regarding bridge server events.
  4. duracloud.bridge.root.dir - a directory that will receive data as well as store non-database application state and settings.
  5. duracloud.bridge.threads-per-job - max threads per job, recommended number is available CPU processors minus 1 (or fewer).

Add the parameters to your JAVA_OPTS environmental variable

Code Block
JAVA_OPTS="$JAVA_OPTS -Dduracloud.bridge.root.username=<your username> -Dduracloud.bridge.root.password=<your password> -Dduracloud.bridge.root.email=<your email> -Dduracloud.bridge.root.dir=<your root dir>"

Create a System environment variable to allow the AWS client to know your preferred region 

Code Block
export AWS_REGION=us-east-1

Build and deploy the source

...

Code Block
CREATE DATABASE 'snapshot'`snapshot` DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_bin;

...

<duracloud.bridge.root.dir>/duracloud-bridge-init.dat. This encrypted file contains the credentials you used to initialize the app. It will be read as soon as tomcat starts up in order to allow the service to start up without needing further intialization (as in the case of, for example, an unexpected server restart).