Skip to content

Commit 0f05242

Browse files
Evgeny ShvarovEvgeny Shvarov
authored andcommitted
cleanup and doc. fix zpm dockerfile
1 parent aec7029 commit 0f05242

3 files changed

Lines changed: 9 additions & 48 deletions

File tree

Dockerfile-20193

Lines changed: 0 additions & 31 deletions
This file was deleted.

Dockerfile-zpm-webterminal

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@ ARG IMAGE=intersystems/iris:2019.1.0S.111.0
22
ARG IMAGE=store/intersystems/iris:2019.1.0.511.0-community
33
ARG 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
56
FROM $IMAGE
6-
ARG IMAGE=store/intersystems/iris:2019.3.0.302.0-community
77

88
USER root
99
WORKDIR /opt/app
1010
RUN chown ${ISC_PACKAGE_MGRUSER}:${ISC_PACKAGE_IRISGROUP} /opt/app
1111

12+
USER irisowner
13+
1214
COPY ./Installer.cls ./
1315
COPY ./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

3842
CMD [ "-l", "/usr/irissys/mgr/messages.log" ]

docker-compose-20193.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)