ipm icon indicating copy to clipboard operation
ipm copied to clipboard

Support Unsupervised Installation from Command Line

Open kuszewski opened this issue 3 years ago • 4 comments

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.

kuszewski avatar Nov 22 '21 19:11 kuszewski

I second @kuszewski's point - Super important in any cloud environment.

zrml avatar Apr 11 '22 13:04 zrml

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

daimor avatar Apr 11 '22 14:04 daimor

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

zrml avatar May 18 '22 12:05 zrml

For sure it will not work, only InterSystems can implement it, but not sure if it will happen any soon

daimor avatar May 18 '22 12:05 daimor