Linux Containers (AMD64 and ARM64)

Linux Containers are meant to be used within native Linux environments. While for testing purposes Linux containers can also be deployed on Windows systems (for example, via Docker Desktop or WSL), this approach should not be used for production environments!

These installation instructions will create a secure-by-default initial configuration for the system. This includes a secure and encrypted https communication with the WebServer and the necessary Administration Profile needed to connect and continue configuration.

The examples below use Docker Engine to run AspenTech Inmation OT DataFabric in a container. Both docker run and Docker Compose are covered to demonstrate how to run a container from the provided image, and optionally includes running a MongoDB container through Docker Compose. The AspenTech Inmation OT DataFabric container image is a multi-platform container image with support for linux/amd64 and linux/arm64 platforms.

Please see the System-Requirements for more details on supported AMD64 and ARM64 architectures.

You find information about Docker and respective downloads of these here:

Note: Before executing the next steps, make sure you have the Docker Engine and Docker compose installed.

Retrieving the Container Image

The AspenTech Inmation OT Data Fabric container image is hosted on a private image registry on the Internet.

The AspenTech Inmation OT DataFabric container image is based on the Red Hat Universal Base Image 10 and undergoes regular vulnerability scans.

Run docker login with the credentials provided by the *.key file downloaded from AspenTech’s Esupport portal.

docker login azacrprod2.azurecr.io -u "<user>" -p "<password>"

Pull the latest AspenTech Inmation OT Data Fabric container image from the private repository to your local Docker Engine.

docker pull azacrprod2.azurecr.io/aspentech-inmation/inmation-ot-datafabric:latest

With the image now on your host, you can start with running AspenTech Inmation OT Data Fabric in container instances.

Running a single Inmation container

To run a node, the container will require a configuration file and an optional startup script. The startup script can be a Lua or JSON script. The following command creates a container from the Inmation image and runs it.

$ docker run --name inmation-node -P -d \
-v  ./inmation-config.yaml:/inmation/bin/inmation-config.yaml \
-v  ./inmation-startup.json:/inmation/bin/inmation-startup-init.json \
<image-registry>/<image-name>:<version-number>

The arguments in the command above are explained below:

--name inmation-node: This is the name of the container. You can choose any name you like.

-P: This option publishes all exposed ports to random ports on the host interface. You can also use the -p option to map specific ports.

-d: This option runs the container in detached mode, meaning it runs in the background and the terminal is free for other commands.

-v: This option mounts folders/files from the host to the container.

  • The inmation-config.yaml file contains the configuration for the Inmation Node.

  • The inmation-startup.json file contains the configuration of objects that will be created in the models upon startup. Alternatively, a Lua script can be used instead of the JSON file. The Lua script can be used to create objects in the models upon startup.

To stop and remove the container (and delete anonymous volumes associated with it), run:

$ docker stop inmation-node
$ docker rm -v inmation-node

Docker Compose

To configure and run more than one container, Docker Compose is a useful tool to orchestrate containers on a single Docker host or Docker swarm. To start a working container, the docker compose file will also need to reference the following:

  • a config.json file

and/or

  • lua-startup script.

These files contain the configuration of objects that will be created in the models upon startup. As a minimum this will include Node, WebServer, Security Provider and Profile objects (and the required object hierarchy needed for these objects) to enable connection and authentication in WebStudio.

These installation instructions will create a secure-by-default initial configuration for the system. This includes a secure and encrypted https communication with the WebServer and the necessary Administration Profile needed to connect and continue configuration. The file structure within the deployed container
When a WebServer object is created, a self-signed certificate and private key are generated and stored in WebServer object properties. The self-signed certificate can be used to establish an initial secure connection to the WebServer but is not recommended for production environments. If a new valid certificate is available, it can be imported into the WebServer object after installation.

Single Node Example

A minimal Docker Compose file to run an AspenTech Inmation OT DataFabric container looks like this:

docker-compose.yml
services:
  home:
    image: <Image_Location_url>:<Image_tag>
    container_name: home
    hostname: Home

    ports:
      - 8009:8009 # WebServer (https)
    restart: unless-stopped
    volumes:
      - ./inmation-startup.json:/inmation/bin/inmation-startup-init.json
      - data-home:/inmation/data
volumes:
  data-home:
    driver: local

In this docker compose file, a named volume "data-home" is created that houses the "inmation/data" directory that contains the lmdb image file. This mapped volume is used to persist the system data config and is needed to restore the state if the container is stopped and restarted (the volume is only removed through specific command line options). The "inmation/data" directory can also persisted on a bind mount, meaning that it is mapped to a local directory on the host (useful if you need to access the "inmation/data" directory from both containers and the host OR to ensure the lmdb file is persisted on a local disk). To do this use the mount "./" syntax in front of the service volume definition, for example:

./data-home:/inmation/data

The compose file references a json file "inmation-startup.json" in the volumes section and maps it to the "inmation/bin/inmation-startup-init.json" folder in the container. For this example, the JSON file below creates all the necessary objects needed to login to the Node with WebStudio, it will create the Built-In security provider object for login authentication to the "so-home" Profile (please fill the Profile password field with a password that follows the Password Policy).

Copy the json file below into the same directory as the compose file and name it "inmation-startup.json".

[
    {
        "type": "mass",
        "items": [
            {
                "operation": "UPDATE",
                "class": "NodeDelegate",
                "owner": "/Home",
                "basePath": "/",
                "ObjectName": "Home Delegate",
                "children": [
                    {
                        "operation": "UPSERT",
                        "class": "ProfileGroup",
                        "owner": "/Home",
                        "ObjectName": "Admin Group",
                        "children": [
                            {
                                "class": "Profile",
                                "owner": "/Home",
                                "ObjectName": "so-Home",
                                "AdministrativeGroup": "ADMIN",
                                "InmationProfileCredentials.Available": true,
                                "InmationProfileCredentials.PasswordHashed": "<password>",
                                "ProfileModelAccess": [
                                    "PRF_MDL_ACC_SCR",
                                    "PRF_MDL_ACC_DEL",
                                    "PRF_MDL_ACC_SYS",
                                    "PRF_MDL_ACC_EQU",
                                    "PRF_MDL_ACC_ACC",
                                    "PRF_MDL_ACC_IO"
                                ],
                                "ProfileUserAccess": [
                                    "USR_ACC_CTRL_DATA_WEB",
                                    "USR_ACC_CTRL_OPC_HDA",
                                    "USR_ACC_CTRL_OPC_DA",
                                    "USR_ACC_CTRL_OPC_AE",
                                    "USR_ACC_CTRL_OPC_UA"
                                ]
                            }
                        ]
                    }
                ]
            },
            {
                "operation": "UPDATE",
                "class": "Node",
                "owner": "/Home",
                "basePath": "/",
                "ObjectName": "Home",
                "children": [
                    {
                        "operation": "UPSERT",
                        "class": "WebServer",
                        "owner": "/Home",
                        "ObjectName": "Webserver",
                        "WebServerInsecureConnection.WebServerListenPort": 8008,
                        "WebServerInsecureConnection.WebServerConnectionEnabled": 0,
                        "WebServerProfile": "/Home Delegate/Admin Group/so-Home",
                        "WebServerSecureConnection.WebServerListenSslPort": 8009,
                        "WebServerStatic.WebServerStaticEnabled": true,
			            "children": [
                            {
                                "operation": "UPSERT",
                                "class": "BuiltInSecurityProvider",
                                "owner": "/Home",
                                "ObjectName": "Built-In Security Provider",
                                "ClaimMatching.UserIdClaim": "profile",
                                "ClaimMatching.UserNameClaim": "username"
                            }
                        ]
                    }
                ]
            }
        ]
    }
]

Run the docker command below to launch the container:

$ docker compose -f 'docker-compose.yml' up -d

To connect to the System Config App, open the following url in a browser.

https://<hostname>:8009/apps/webstudio

Sign in using Built-In security provider and the "so-home" profile credentials and password. Select "System Config" from the index page.

Single Node and MongoDB container

The Docker Compose file below defines two services. A MongoDB container and an Inmation Node container, both connected via a dedicated network. The file also makes use of named volumes mapped to the data folders of the two services.

The MongoDB authentication is configured in the compose file. The credentials are defined in the environment section and the authentication option is added in the command section (which defines the command line string). In this example, the MongoDB port is not exposed outside the container network.

The same "inmation-startup.json" file from the previous example is referenced to create the objects needed to login with WebStudio Built-In credentials. This file should be in the same directory as the compose file.

docker-compose.yml
services:
  mongodb:
    image: mongo:8.2
    environment:
      # provide your credentials here
      - MONGO_INITDB_ROOT_USERNAME=mongouser
      - MONGO_INITDB_ROOT_PASSWORD=<password>
    container_name: mongodb
    hostname: mongodb
    networks:
      - db-network
    volumes:
      - data-mongodb:/data/db
    command: mongod --auth --bind_ip_all --dbpath /data/db
    restart: unless-stopped
  home:
    image: harbor.inmationdev.com/aspentech-inmation/inmation:ci
    container_name: home
    hostname: Home
    networks:
      - db-network
    volumes:
      - ./inmation-startup.json:/inmation/bin/inmation-startup-init.json
      - data-home:/inmation/data
    ports:
      - ${NODE_PORT_HOME:-6512:6512}
      - ${WEBAPI_PORT_HOME_SECURE:-8009:8009}
    restart: unless-stopped

networks:
  db-network:
    driver: bridge

volumes:
  data-mongodb:
    driver: local
  data-home:
    driver: local

In this docker compose file, a named volume "data-home" is created that houses the "inmation/data" directory that contains the lmdb image file. This mapped volume is used to persist the system data config and is needed to restore the state if the container is stopped and restarted (the volume is only removed through specific command line options). The "inmation/data" directory can also persisted on a bind mount, meaning that it is mapped to a local directory on the host (useful if you need to access the "inmation/data" directory from both containers and the host OR to ensure the lmdb file is persisted on a local disk). To do this use the mount "./" syntax in front of the service volume definition, for example:

./data-home:/inmation/data

Run the docker command below to launch the container:

$ docker compose -f 'docker-compose.yml' up -d

To connect to the System Config App, open the following url in a browser.

https://<hostname>:8009/apps/webstudio
With the above installation configuration, the self signed WebServer certificate will be be used to establish a secure connection to the WebServer. The browser may display a warning that the certificate is not trusted. For initial configuration you can continue with the self-signed certificate but a valid certificate should be used in production environments.

Sign in using Built-In security provider and the "so-home" profile credentials and password. Select "System Config" from the index page.

To test the MongoDB connection, create a Time Series Data Store object below the Node and go to the Time Series Data Store > MongoDB Connection settings. Enter the Connection String as "mongodb:27017" and fill in the authentication credentials you used in the compose file under User Name and Password. Select "SCRAM-SHA-256" as the Authentication Mode and click Apply to save changes. If a successful connection is made, the Time Series Data Store object will show a green "good" state.