@@ -2,41 +2,25 @@ 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:2019.3.0.302.0-community
56FROM $IMAGE
67
78WORKDIR /opt/app
89
910COPY ./Installer.cls ./
1011COPY ./src/cls ./src/cls
1112# COPY ./src/dfi ./src/dfi
12-
13+ USER root
1314
1415RUN iris start $ISC_PACKAGE_INSTANCENAME quietly EmergencyId=sys,sys && \
1516 /bin/echo -e "sys\n sys\n " \
16- " Do ##class(Security.Users).UnExpireUserPasswords(\" *\" )\n " \
17- " Do ##class(Security.Users).AddRoles(\" admin\" , \" %ALL\" )\n " \
18- " Do ##class(Security.System).Get(,.p)\n " \
19- " Set p(\" AutheEnabled\" )=\$ zb(p(\" AutheEnabled\" ),16,7)\n " \
20- " Do ##class(Security.System).Modify(,.p)\n " \
2117 " Do \$ system.OBJ.Load(\" /opt/app/Installer.cls\" ,\" ck\" )\n " \
2218 " Set sc = ##class(App.Installer).setup(, 3)\n " \
2319 " If 'sc do \$ zu(4, \$ JOB, 1)\n " \
24- " zn \" %sys\" " \
25- " write \" Create web application ...\" ,!" \
26- " set webName = \" /csp/user\" " \
27- " set webProperties(\" NameSpace\" ) = \" USER\" " \
28- " set webProperties(\" Enabled\" ) = 1" \
29- " set webProperties(\" IsNameSpaceDefault\" ) = 1" \
30- " set webProperties(\" CSPZENEnabled\" ) = 1" \
31- " set webProperties(\" AutheEnabled\" ) = 32" \
32- " set webProperties(\" iKnowEnabled\" ) = 1" \
33- " set webProperties(\" DeepSeeEnabled\" ) = 1" \
34- " set status = ##class(Security.Applications).Create(webName, .webProperties)" \
35- " write:'status \$ system.Status.DisplayError(status)" \
36- " write \" Web application \"\"\" _webName_\"\"\" was created!\" ,!" \
3720 " halt" \
3821 | iris session $ISC_PACKAGE_INSTANCENAME && \
3922 /bin/echo -e "sys\n sys\n " \
4023 | iris stop $ISC_PACKAGE_INSTANCENAME quietly
4124
25+ USER ${ISC_PACKAGE_MGRUSER}
4226CMD [ "-l" , "/usr/irissys/mgr/messages.log" ]
0 commit comments