Installation with an External Database
To install Software Risk Manager with an external database:
- Select a password for the Software Risk Manager admin user and edit your
docker-compose-external-db.yml
file by specifying the password for theSUPERUSER_PASSWORD
parameter. - Edit the
docker-compose-external-db.yml
file by appending&useSSL=true&requireSSL=true
to theDB_URL
parameter. - Edit the
docker-compose-external-db.yml
file as follows:- Enter the database username for the
DB_USER
parameter. - Enter the database password for the
DB_PASSWORD
parameter. - Update the
DB_URL
parameter by specifying your database instance hostname. - Update the
DB_URL
parameter by specifying your Software Risk Manager database name (e.g., "srmdb").The following is an example of aDB_URL
parameter value using hostnamedb-hostname
and database namesrmdb
:"jdbc:mysql://db-hostname/srmdb?sessionVariables=sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'"
If you followed the steps required for secure transport, your connection string will look like the following:"jdbc:mysql://db-hostname/srmdb?sessionVariables=sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'&useSSL=true&requireSSL=true"
- Enter the database username for the
- Follow the HTTPS instructions if your deployment requires TLS/SSL.
- Start Software Risk Manager with the following command:
docker-compose -f ./docker-compose-external-db.yml up -d
You can run the following commands to view Software Risk Manager log data (assumes ansrm-docker-codedx-tomcat-1
container name):docker exec srm-docker-codedx-tomcat-1 tail -f /opt/codedx/log-files/codedx.log docker logs srm-docker-codedx-tomcat-1
Note: If you want to migrate data from an existing Software Risk Manager system, refer to
these instructions.