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 holefoods\"" \
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+ " zn \"%sys\"" \
32+ " write \"Create web application ...\",!" \
33+ " set webName = \"/csp/samples\"" \
34+ " set webProperties(\"NameSpace\") = \"SAMPLES\"" \
35+ " set webProperties(\"Enabled\") = 1" \
36+ " set webProperties(\"IsNameSpaceDefault\") = 1" \
37+ " set webProperties(\"CSPZENEnabled\") = 1" \
38+ " set webProperties(\"AutheEnabled\") = 32" \
39+ " set webProperties(\"iKnowEnabled\") = 1" \
40+ " set webProperties(\"DeepSeeEnabled\") = 1" \
41+ " set status = ##class(Security.Applications).Create(webName, .webProperties)" \
42+ " write:'status \$system.Status.DisplayError(status)" \
43+ " write \"Web application \"\"\"_webName_\"\"\" has been created!\",!" \
44+ " halt" \
45+ | iris session $ISC_PACKAGE_INSTANCENAME && \
46+ /bin/echo -e "sys\nsys\n" \
47+ | iris stop $ISC_PACKAGE_INSTANCENAME quietly
48+
49+ USER ${ISC_PACKAGE_MGRUSER}
50+
51+ CMD [ "-l", "/usr/irissys/mgr/messages.log" ]
0 commit comments