Skip to main content

Running an InterSystems IRIS Container: Script Example

Running an InterSystems IRIS Container: Script Example

The following script was written to quickly create and start an InterSystems IRIS container for testing purposes. The script incorporates the iris-main --key option to copy in the license key, as described in License Keys for InterSystems IRIS Containers.

#!/bin/bash
# script for quick demo and quick InterSystems IRIS image testing

# Definitions to toggle_________________________________________
container_image="intersystems/iris:latest-em"

# the docker run command
docker run -d \
  --name iris \
  --hostname iris \
# expose default superserver port
  -p 9091:1972 \
# mount durable %SYS volume
  -v /data/durable:/dur \
# specify durable %SYS directory and CPF merge file
  --env ISC_DATA_DIRECTORY=/dur/iris_conf.d \
  --env ISC_CPF_MERGE_FILE=/dur/merge/merge.cpf \
# enable allocation of huge pages
  --cap-add IPC_LOCK \
  $container_image \
  --key /dur/key/iris.key 
FeedbackOpens in a new tab