Using Ianus with Docker
Ianus is available as container image on the HPE MFA COE registry hpemfaregistry.azurecr.io
.
To execute ianus, run the container providing the necessary volumes and command line arguments. Scripts, data and configuration files must be be relative to the volumes as mounted by the container.
docker pull hpemfaregistry.azurecr.io/ianus
docker run -v .\Test\Config:/config -v .\Test\Files:/data/files --rm hpemfaregistry.azurecr.io/ianus -e /config/Env.Docker.xml /config/ZZTMP.xml
In the example above, the configuration and scripts will have to refer to folders /config and /data.
Also the address of databases must be referrable by the container. For example, if your target database is running in a container too, then its address will be host.docker.internal
.
License for DB2 for z/OS
To connect DB2 for z/OS, you must provide a valid .lic DB2 Connect license file, mounted in /ianus/bin/clidriver/license, like in the following example:
docker run -v .\Test\Config:/config -v .\Test\Files:/data/files -v .\Test\Licenses\db2consv_t.lic:/ianus/bin/clidriver/license/db2consv_t.lic:ro --rm hpemfaregistry.azurecr.io/ianus -e /config/Env.Docker.xml /config/ZZTMP.xml