@@ -2,23 +2,23 @@ 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
5+ ARG IMAGE=store/intersystems/iris:2019.3.0.302.0-community
66FROM $IMAGE
77
8+ USER root
9+
810WORKDIR /opt/app
11+ RUN chown irisowner /opt/app
12+
13+ USER irisowner
914
10- COPY ./Installer.cls ./
11- COPY ./src/cls ./src/cls
12- # COPY ./src/dfi ./src/dfi
15+ COPY ./Installer.cls ./
16+ COPY ./src/cls ./src/cls
17+ # COPY --chown=irisowner ./src/dfi ./src/dfi
1318
1419
1520RUN iris start $ISC_PACKAGE_INSTANCENAME quietly EmergencyId=sys,sys && \
1621 /bin/echo -e "sys\n sys\n " \
17- " Do ##class(Security.Users).UnExpireUserPasswords(\" *\" )\n " \
18- " Do ##class(Security.Users).AddRoles(\" admin\" , \" %ALL\" )\n " \
19- " Do ##class(Security.System).Get(,.p)\n " \
20- " Set p(\" AutheEnabled\" )=\$ zb(p(\" AutheEnabled\" ),16,7)\n " \
21- " Do ##class(Security.System).Modify(,.p)\n " \
2222 " Do \$ system.OBJ.Load(\" /opt/app/Installer.cls\" ,\" ck\" )\n " \
2323 " Set sc = ##class(App.Installer).setup(, 3)\n " \
2424 " If 'sc do \$ zu(4, \$ JOB, 1)\n " \
0 commit comments