Using ObjectScript Package Manager With InterSystems IRIS and IRIS for Health Docker Containers
What is that?
There is a repository that publishes it, and in fact, it is the same container IRIS Community Edition containers you have on official InterSystems listing which have the pre-loaded ObjectScript Package Manager (ZPM) client.
So if you run this container with IRIS CE or IRIC CE for Health you can immediately start using ZPM and install packages from Community Registry or any others.
What does this mean for you?
It means, that anyone can deploy any of your InterSystems ObjectScript application in 3 commands:
- run IRIS container;
- open terminal;
- install your application as ZPM package.
It is safe, fast and cross-platform.
It's really handy if you want to test a new interesting ZPM package and not harm any of your systems.
Suppose, you have docker-desktop installed. You can run the image, which wiil pull the latest container if you don't have it locally:
$ docker run --name iris-ce -d --publish 52773:52773 intersystemsdc/iris-community:2019.4.0.383.0-zpm-dev
Or the following for InterSystems IRIS for Health:
$ docker run --name iris-ce -d --publish 52773:52773 intersystemsdc/irishealth-community:2019.4.0.383.0-zpm-dev
Open terminal to it:
$ docker exec -it iris-ce iris session iris Node: e87717c3d95d, Instance: IRIS USER>
Install ZPM module:
USER>zpm zpm: USER>install objectscript-math [objectscript-math] Reload START [objectscript-math] Reload SUCCESS [objectscript-math] Module object refreshed. [objectscript-math] Validate START [objectscript-math] Validate SUCCESS [objectscript-math] Compile START [objectscript-math] Compile SUCCESS [objectscript-math] Activate START [objectscript-math] Configure START [objectscript-math] Configure SUCCESS [objectscript-math] Activate SUCCESS zpm: USER>q USER>w ##class(Math.Math).LeastCommonMultiple(134,382) 25594 USER>
Happy coding with ObjectScript and ZPM!