Skip to content

Commit 9d794ff

Browse files
Evgeny ShvarovEvgeny Shvarov
authored andcommitted
zpm with webterm
1 parent 4472c24 commit 9d794ff

2 files changed

Lines changed: 50 additions & 0 deletions

File tree

Dockerfile-zpm-webterminal

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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" ]

docker-compose-zpm-webterminal.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: '2.4'
2+
services:
3+
iris:
4+
build:
5+
context: .
6+
dockerfile: Dockerfile-zpm-webterminal
7+
restart: always
8+
ports:
9+
- 52773:52773
10+
volumes:
11+
- ~/iris.key:/usr/irissys/mgr/iris.key
12+
- ./:/iris/app

0 commit comments

Comments
 (0)