
Initial Release
This is a minimal end-to-end Java sample that connects to an InterSystems IRIS Cloud Document
deployment using TLS, creates a collection, inserts a few documents, lists them, and runs
a shorthand query.
It is packaged to run easily in Docker with configuration via environment variables.
pom.xml – Maven build with intersystems-document dependency and shade pluginsrc/main/java/... – CloudDocDemo.java demo programSSLConfig.properties – TLS configuration for the Java clientDockerfile – Multi-stage build producing a runnable containerdocker-entrypoint.sh – Imports the certificate into a keystore and runs the appdocker-compose.yml – Optional convenience wrapper.env.sample – Sample environment variable file for docker composeDownload the X.509 certificate for your Cloud Document deployment from the Cloud Services Portal.
Save it somewhere on your host, for example:
certs/certificateSQLaaS.pem
In this local folder.
You do NOT need to create a keystore on the host – the container will do that at startup.
Copy .env.sample to .env and edit it with your values:
cp .env.sample .env
# then edit .env
From the project root (where this README and Dockerfile live) run:
docker compose up --build
The container will:
/app/cert.pem into /app/keystore.jks using keytool.SSLConfig.properties (which points at /app/keystore.jks) for TLS.From the project root (where this README and Dockerfile live):
docker build -t clouddoc-demo .
docker run --rm -e IRIS_HOST="your-hostname.elb.us-west-2.amazonaws.com" -e IRIS_PORT="443" -e IRIS_NAMESPACE="USER" -e IRIS_USER="SQLAdmin" -e IRIS_PASSWORD="your-deployment-password" -e COLLECTION_NAME="demoPeople" -v /absolute/path/to/your/cert-file.pem:/app/cert.pem:ro clouddoc-demo
Replace the values above with the connection information from your Cloud Services deployment
page, and the path to your downloaded certificate.
You can also run the demo locally:
mvn clean package
mvn exec:java
For local runs, you must still create a Java keystore and update SSLConfig.properties
accordingly, as described also in the related article:
keytool -importcert -file /path/to/certs/cloud-document.pem -keystore keystore.jks