Written by

Software Architect at Visum
Question Yuri Marx · Nov 7, 2023

How to set ENV variables using IPM?

When using docker compose, I can create ENV variables using environment section, like this:

version: '3.6'
services:
  iris:
    build:
      context: .
      dockerfile: Dockerfile
      target: final
    restart: always
    command: --check-caps false --ISCAgent false
    environment:
      - JIRISREPORT_PATH=/home/irisowner/dev/jirisreport.jar
    ports:
      - 1972
      - 52773
      - 53773

In this case I created an ENV variable JIRISREPORT using Docker compose, but using IPM xml manifest, Can I set ENV variables?

Product version: IRIS 2023.2

Comments

Dmitry Maslennikov · Nov 8, 2023

There is no direct way of setting environment variables using ObjectScript. And there are some caveats to doing it. 

Have a look at this project, it's quite tricky, it uses callout in c, to make it working

I would recommend finding another way of doing what you would want to achieve, instead of using environment variables 

0