Deploying the application¶
Read this before deploying the application.
Before deploying the application make sure your system fulfils the installation requirements and your database is properly configured.
Deploying to Tomcat¶
Follow these steps to deploy Compound Registration to Tomcat:
-
Configure Tomcat connector as needed in the server.xml within the Tomcat conf folder.
- When Tomcat 8.5 and Internet Explorer 11 or Edge web browsers are used, the following line should be added to the context.xml:
- When Tomcat 8.5 and Internet Explorer 11 or Edge web browsers are used, the following line should be added to the context.xml:
-
Make sure you copied the proper JDBC driver as described on this page.
-
When deploying Compound Registration before version 23.14.0 you will also need to include the following libraries to be able to use the email notification:
- JavaMail API library (e.g. mail-1.4.7.jar)
-
Activation library (e.g. activation-1.1.1.jar)
Copy the downloaded jar files to your
$TOMCAT_HOME/libfolder.
-
Delete the build number from the downloaded .war file name, rename as RegistryCxn.war and then copy it into the Tomcat webapps folder. Restart Tomcat. It will detect the newly added war file and extract it automatically.
- After a successful deployment, the application can be started. By default, you can access the application at the following URL: http://yourhost:8080/RegistryCxn/client/. If everything went well you'll see the Compound Registration Wizard, that helps you to upload your the license file, set up your database connection and create the first user of Compound Registration.
Notes :
- Update user defined checker configuration files in the
$HOME/.chemaxonfolder with the provided ones, if needed. - Integration with other services, such as LDAP, Active Directory, SAML SSO, downstream databases, can be configured by changing the content of the
registry.propertiesfile. Visit the Configuration Guide for more information. You can also find an example property file at$TOMCAT_HOME/webapps/RegistryCxn/WEB-INF/classes/registry.example.properties.
Deploy and Install with Docker¶
Get docker image
-
Acquire credentials using the guide found on this page by performing the Create your Chemaxon Account and Generate your Identity Token steps.
-
Authenticate to the registry using the following command:
-
Provide your email address and identity token when prompted for username and password.
-
Now you can pull the docker image:
If you are using Oracle as database, you need to download an Oracle JDBC driver and include it into the docker image
Follow these steps to include Oracle JDBC driver into the docker image :
-
Download the recommended JDBC driver from here: https://www.oracle.com/database/technologies/appdev/jdbc-downloads.html (e.g.
ojdbc11.jar) -
Pull the Compound Registration image you would like to use from here: https://download.chemaxon.com/compound-registration
-
Create a file with name
Dockerfile(without extension) with the following content:Save this file next to the downloaded driver (e.g.
ojdbc11.jar) in an empty folder. -
Run the following command, which will build the docker image:
Our image contains Compound Registration and its command line tool. During docker run , if you provide an argument, the command line tool will run it as a command, otherwise Compound Registration application will start.
Follow these steps to install and run Compound Registration in docker container:
-
Create an
env.listfile that contains database connection parameters:postgresql_example_env.list
oracle_example_env.list
-
Create the database schema for Compound Registration using the created
env.list: -
Create an admin user:
-
Add the license URL to the
env.listfile. Please make sure that the given Chemaxon license is available via file server over HTTP/HTTPS. You can skip this and upload the license later from the Application UI on the Administration Page, but it is not recommended as it will be saved inside the container, and you would have to re-upload it if the container is re-created.
add toenv.list -
Run Compound Registration
With these steps you have Compound Registration running, you can skip the "Install through the Wizard" step from the deployment guide.