@@ -2,13 +2,15 @@ ARG IMAGE=intersystems/iris:2019.1.0S.111.0
22ARG IMAGE=store/intersystems/iris:2019.1.0.511.0-community
33ARG IMAGE=store/intersystems/iris:2019.2.0.107.0-community
44#ARG IMAGE=intersystems/iris:2019.3.0.302.0
5+ ARG IMAGE=store/intersystems/iris-community:2019.3.0.302.0
56FROM $IMAGE
6- ARG IMAGE=store/intersystems/iris:2019.3.0.302.0-community
77
88USER root
99WORKDIR /opt/app
1010RUN chown ${ISC_PACKAGE_MGRUSER}:${ISC_PACKAGE_IRISGROUP} /opt/app
1111
12+ USER irisowner
13+
1214COPY ./Installer.cls ./
1315COPY ./src/cls ./src/cls
1416#COPY ./src/dfi ./src/dfi
@@ -20,19 +22,21 @@ RUN mkdir -p /tmp/deps \
2022 && wget -q https://pm.community.intersystems.com/packages/zpm/latest/installer -O zpm.xml
2123
2224
23- RUN iris start $ISC_PACKAGE_INSTANCENAME quietly EmergencyId=sys,sys && \
24- /bin/echo -e "sys\nsys\n" \
25+ RUN iris start $ISC_PACKAGE_INSTANCENAME quietly && \
26+ /bin/echo -e \
27+ "zn \"%SYS\"\n" \
2528 " Do ##class(Security.Users).UnExpireUserPasswords(\"*\")\n" \
29+ "zn \"USER\"\n" \
2630 " Do \$system.OBJ.Load(\"/tmp/deps/zpm.xml\", \"ck\")" \
27- " zpm \"install webterminal\"" \
2831 " Do \$system.OBJ.Load(\"/opt/app/Installer.cls\",\"ck\")\n" \
2932 " Set sc = ##class(App.Installer).setup(, 3)\n" \
3033 " If 'sc do \$zu(4, \$JOB, 1)\n" \
34+ " zpm \"install webterminal\""
3135 " halt" \
3236 | iris session $ISC_PACKAGE_INSTANCENAME && \
3337 /bin/echo -e "sys\nsys\n" \
3438 | iris stop $ISC_PACKAGE_INSTANCENAME quietly
3539
36- USER irisowner
40+ USER ${ISC_PACKAGE_MGRUSER}
3741
3842CMD [ "-l", "/usr/irissys/mgr/messages.log" ]
0 commit comments