Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Latest commit

 

History

History
43 lines (29 loc) · 2 KB

README-OLD.md

File metadata and controls

43 lines (29 loc) · 2 KB

This is only an example dockerization of ChemAxon JChem Web Services. We don't suggest to use this exact image in production but it can provide an example to start building your own image.

1. Prerequisites

After settings you should have the following files in the directory:

Dockerfile
docker-compose.yml
license.cxl
LICENSE.txt
README.md
webservcies.war
ws-config.xml

2. Building the image:

  • Run: docker build -t cxn/jchem_webservices:latest .

This will build an image that is called cnx/jchem_webservcies with the tag: latest. This image is based on Tomcat 8.53.34 and uses OpenJDK 8 to run JChem Web Services.

3. Starting a container

  • Run docker run -p 8080:8080 -ti cxn/jchem_webservices:latest

This will start the container and JChem Web Services in Tomcat.

You can connect to the service on http://localhost:8080/webservices/

4. Using docker-compose

JChem Web Services can also be started with docker-compose. You should only do steps from #1 (extended with docker-compose installed) and than simply run docker-compose up

4.1. Alternative config

An alternative config from Martin Mastnim was added so you can directly link the license and config file from docker-compose directory. Use it as docker-compose --file alternative-docker-compose.yml up. Please be aware that docker misses this feature on Windows. pr