Skip to content

Commit 2994948

Browse files
Evgeny ShvarovEvgeny Shvarov
authored andcommitted
fixes
1 parent e94083f commit 2994948

4 files changed

Lines changed: 18 additions & 7 deletions

File tree

.env

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
IRIS_PORT=52773
2+
DOCKERFILE=Dockerfile-zpm-samplesbi
3+
DOCKERFILE=Dockerfile
4+
DOCKERFILE=Dockerfile-20192
5+
DOCKERFILE=Dockerfile-zpm

Dockerfile-zpm

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,17 @@ COPY Installer.cls .
2121
COPY src src
2222
COPY irissession.sh /
2323

24+
# running IRIS and open IRIS termninal in USER namespace
2425
SHELL ["/irissession.sh"]
25-
26+
# below is objectscript executed in terminal
27+
# each row is what you type in terminal and Enter
2628
RUN \
2729
do $SYSTEM.OBJ.Load("Installer.cls", "ck") \
30+
set sc = ##class(App.Installer).setup() \
2831
Do $system.OBJ.Load("/tmp/deps/zpm.xml", "ck") \
29-
zpm "install webterminal" \
30-
set sc = ##class(App.Installer).setup()
31-
32+
zn "IRISAPP" \
33+
zpm "install webterminal"
3234

33-
CMD [ "-l", "/usr/irissys/mgr/messages.log" ]
35+
# bringing the standard shell back
36+
SHELL ["/bin/bash", "-c"]
37+
CMD [ "-l", "/usr/irissys/mgr/messages.log" ]

docker-compose.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
version: '3.6'
22
services:
33
iris:
4-
build: .
4+
build:
5+
context: .
6+
dockerfile: ${DOCKERFILE:-Dockerfile}
57
restart: always
68
ports:
79
- 51773

irissession.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ iris start $ISC_PACKAGE_INSTANCENAME quietly
44

55
cat << EOF | iris session $ISC_PACKAGE_INSTANCENAME -U %SYS
66
do ##class(%SYSTEM.Process).CurrentDirectory("$PWD")
7-
Do ##class(Security.Users).UnExpireUserPasswords("*")
87
$@
98
if '\$Get(sc) do ##class(%SYSTEM.Process).Terminate(, 1)
9+
zn "%SYS"
10+
Do ##class(Security.Users).UnExpireUserPasswords("*")
1011
do ##class(SYS.Container).QuiesceForBundling()
1112
do ##class(SYS.Container).SetMonitorStateOK("irisowner")
1213
halt

0 commit comments

Comments
 (0)