...
To set up this application we will assume that you have the following tools installed on the target instance:
- Git
- Java 11+git
- Maven 3+
- Tomcat7 Tomcat8.5 (with the manager turned on)
- Mysql 5.57+
Download and build the source code
...
Code Block |
---|
sudo mkdir /var/log/duracloud sudo chown tomcat7tomcat /var/log/duracloud |
Setup Tomcat
...
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
...
<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).