A web application for generating chemical structure depictions from SMILES.
An image is available on DockerHub, https://hub.docker.com/r/simolecule/cdkdepict/. To launch a CDK Depict web serivce running on 8081:
$ docker run -p 8081:8080 simolecule/cdkdepict:latest
You can download prebuilt release from GitHub, this is a runnable WAR and will launch a standalone server using Spring Boot:
$ mvn clean install
This generates a web archive (WAR) and a runnable java archive (JAR) in the target directory. The WAR file can be deployed to an application server (e.g. TomCat, Jetty, GlassFish, JBOSS) whilst the JAR launches it's own embedded server.
$ target/cdkdepict-1.10.war
When launching the embedded application the HTTP port is optional (default: 8080). Run the following command and access the site 'http://localhost:8081' by web browser.
$ java -Dserver.port=8081 -jar ./cdkdepict-webapp/target/cdkdepict-webapp-10.war
When running your own CDK Depict it's useful to enable caching of the generated
content. To enable caching you need to add the following setting to either the
WebApp or TomCat's global context.xml
:
<Valve className="org.apache.catalina.authenticator.BasicAuthenticator"
disableProxyCaching="false" />
A docker container (using alpine linux) can be built and run as follows:
$ cd docker && ./build.sh
$ docker run -p 8180:8080 cdkdepict
LGPL v2.1 or later