1+ ARG IMAGE=intersystems/iris:2019.1.0S.111.0
2+ ARG IMAGE=store/intersystems/iris:2019.1.0.511.0-community
3+ ARG IMAGE=store/intersystems/iris:2019.2.0.107.0-community
4+ #ARG IMAGE=intersystems/iris:2019.3.0.302.0
5+ FROM $IMAGE
6+ ARG IMAGE=store/intersystems/iris:2019.3.0.302.0-community
7+
8+ USER root
9+ WORKDIR /opt/app
10+ RUN chown ${ISC_PACKAGE_MGRUSER}:${ISC_PACKAGE_IRISGROUP} /opt/app
11+
12+ COPY ./Installer.cls ./
13+ COPY ./src/cls ./src/cls
14+ #COPY ./src/dfi ./src/dfi
15+
16+ RUN mkdir -p /tmp/deps \
17+
18+ && cd /tmp/deps \
19+
20+ && wget -q https://pm.community.intersystems.com/packages/zpm/latest/installer -O zpm.xml
21+
22+
23+ RUN iris start $ISC_PACKAGE_INSTANCENAME quietly EmergencyId=sys,sys && \
24+ /bin/echo -e "sys\nsys\n" \
25+ " Do ##class(Security.Users).UnExpireUserPasswords(\"*\")\n" \
26+ " Do \$system.OBJ.Load(\"/tmp/deps/zpm.xml\", \"ck\")" \
27+ " zpm \"install webterminal\"" \
28+ " Do \$system.OBJ.Load(\"/opt/app/Installer.cls\",\"ck\")\n" \
29+ " Set sc = ##class(App.Installer).setup(, 3)\n" \
30+ " If 'sc do \$zu(4, \$JOB, 1)\n" \
31+ " halt" \
32+ | iris session $ISC_PACKAGE_INSTANCENAME && \
33+ /bin/echo -e "sys\nsys\n" \
34+ | iris stop $ISC_PACKAGE_INSTANCENAME quietly
35+
36+ USER irisowner
37+
38+ CMD [ "-l", "/usr/irissys/mgr/messages.log" ]
0 commit comments