...
- git
- Maven 3+
- Tomcat7 (with the manager turned on)
- Mysql 5.5+
Download and build the source code
...
Code Block |
---|
cd snapshot mvn clean install |
Create the database
Using a mysql client create a database:
Code Block |
---|
CREATE DATABASE 'snapshot' DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_bin; |
Create a DuraCloud User
You will need to create a duracloud user with ROLE_ADMIN permissions in order for the bridge to read data from and write data to DuraCloud. This can be done by your DuraCloud account administrator through https://manage.duracloud.org/
Initialize the application
First you'll need to create an init.json file using the values you setup in previous steps.
Code Block |
---|
{
"originatorEmailAddress" : "<email address>",
"duracloudEmailAddresses" : ["<email address>"],
"dpnEmailAddresses" : ["<email address>"],
"duracloudUsername" : "<duracloud username>",
"duracloudPassword" : "<duracloud password",
"awsAccessKey" : "<aws key>",
"awsSecretKey" : "<aws secret key>",
"databaseUser" : "<database user>",
"databasePassword" : "<database password>",
"databaseURL" : "jdbc:mysql://<database instance>:<database port>/<database name>",
"clean" : "true",
"finalizerPeriodMs" : 60000,
"daysToExpireRestore" : 1
} |
Then execute the following curl command to pass the initialization params to the bridge.
Code Block |
---|
curl -v -X POST -d @/Users/danny/snapshot-init-test-duracloud.json -H "Content-Type: application/json" -H "Accept:application/json" "https://<your bridge host:port>/bridge/init" -u <duracloud.bridge.root.username>:<duracloud.bridge.root.password> |