Skip to content

Commit 81dd166

Browse files
Evgeny ShvarovEvgeny Shvarov
authored andcommitted
dockerfile for IRIS 20192
1 parent 8307164 commit 81dd166

4 files changed

Lines changed: 46 additions & 17 deletions

File tree

Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,23 @@ 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:2019.3.0.302.0-community
5+
#ARG IMAGE=store/intersystems/iris:2019.3.0.302.0-community
66
FROM $IMAGE
77

88
WORKDIR /opt/app
99

1010
COPY ./Installer.cls ./
1111
COPY ./src/cls ./src/cls
1212
#COPY ./src/dfi ./src/dfi
13-
USER root
13+
1414

1515
RUN iris start $ISC_PACKAGE_INSTANCENAME quietly EmergencyId=sys,sys && \
1616
/bin/echo -e "sys\nsys\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" \
1722
" Do \$system.OBJ.Load(\"/opt/app/Installer.cls\",\"ck\")\n" \
1823
" Set sc = ##class(App.Installer).setup(, 3)\n" \
1924
" If 'sc do \$zu(4, \$JOB, 1)\n" \
@@ -22,5 +27,4 @@ RUN iris start $ISC_PACKAGE_INSTANCENAME quietly EmergencyId=sys,sys && \
2227
/bin/echo -e "sys\nsys\n" \
2328
| iris stop $ISC_PACKAGE_INSTANCENAME quietly
2429

25-
USER ${ISC_PACKAGE_MGRUSER}
2630
CMD [ "-l", "/usr/irissys/mgr/messages.log" ]
Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ 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:2019.3.0.302.0-community
5+
#ARG IMAGE=store/intersystems/iris:2019.3.0.302.0-community
66
FROM $IMAGE
77

88
WORKDIR /opt/app
@@ -22,19 +22,6 @@ RUN iris start $ISC_PACKAGE_INSTANCENAME quietly EmergencyId=sys,sys && \
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" \
25-
" zn \"%sys\"" \
26-
" write \"Create web application ...\",!" \
27-
" set webName = \"/csp/user\"" \
28-
" set webProperties(\"NameSpace\") = \"USER\"" \
29-
" set webProperties(\"Enabled\") = 1" \
30-
" set webProperties(\"IsNameSpaceDefault\") = 1" \
31-
" set webProperties(\"CSPZENEnabled\") = 1" \
32-
" set webProperties(\"AutheEnabled\") = 32" \
33-
" set webProperties(\"iKnowEnabled\") = 1" \
34-
" set webProperties(\"DeepSeeEnabled\") = 1" \
35-
" set status = ##class(Security.Applications).Create(webName, .webProperties)" \
36-
" write:'status \$system.Status.DisplayError(status)" \
37-
" write \"Web application \"\"\"_webName_\"\"\" was created!\",!" \
3825
" halt" \
3926
| iris session $ISC_PACKAGE_INSTANCENAME && \
4027
/bin/echo -e "sys\nsys\n" \

Dockerfile-20193

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+
ARG IMAGE=store/intersystems/iris:2019.3.0.302.0-community
6+
FROM $IMAGE
7+
8+
WORKDIR /opt/app
9+
10+
COPY ./Installer.cls ./
11+
COPY ./src/cls ./src/cls
12+
#COPY ./src/dfi ./src/dfi
13+
USER root
14+
15+
RUN iris start $ISC_PACKAGE_INSTANCENAME quietly EmergencyId=sys,sys && \
16+
/bin/echo -e "sys\nsys\n" \
17+
" Do \$system.OBJ.Load(\"/opt/app/Installer.cls\",\"ck\")\n" \
18+
" Set sc = ##class(App.Installer).setup(, 3)\n" \
19+
" If 'sc do \$zu(4, \$JOB, 1)\n" \
20+
" halt" \
21+
| iris session $ISC_PACKAGE_INSTANCENAME && \
22+
/bin/echo -e "sys\nsys\n" \
23+
| iris stop $ISC_PACKAGE_INSTANCENAME quietly
24+
25+
USER ${ISC_PACKAGE_MGRUSER}
26+
CMD [ "-l", "/usr/irissys/mgr/messages.log" ]

docker-compose-20192.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-20192
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)