ipm
ipm copied to clipboard
Support Unsupervised Installation from Command Line
In order to use ZPM in an unsupervised environment (CI/CD, Dockerfile) we need to provide a way to easily and reliably install packages from OUTSIDE IRIS without there being the possibility of ZPM waiting for an operator to verify/resolve any problems.
I second @kuszewski's point - Super important in any cloud environment.
current way
iris session iris '##class(%ZPM.PackageManager).Shell("install some-package")'
It still requires to be running inside the IRIS iris command still requires to add instance name, even in a container, if no more instances are expected at all Probably this way would be better
iris zpm install some-package
or this way, while it should require an instance name, and optionally namespace (which is IMHO also redundant, In containers)
iris zpm IRIS -U %SYS - install some-package
The above would be acceptable but trying it with 2022.1 (Build 152U) on ARM simply returns:
iris: invalid function 'zpm'
I tried
iris zpm IRIS -U USER - install myPackage
For sure it will not work, only InterSystems can implement it, but not sure if it will happen any soon