Skip to content

Commit 61fcf72

Browse files
Evgeny ShvarovEvgeny Shvarov
authored andcommitted
and dockerfile
1 parent 8087e92 commit 61fcf72

1 file changed

Lines changed: 10 additions & 21 deletions

File tree

Dockerfile

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,22 @@
11
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-community:2019.3.0.302.0
2+
ARG IMAGE=store/intersystems/iris-community:2019.3.0.309.0
63
FROM $IMAGE
74

85
USER root
96

10-
WORKDIR /opt/app
11-
RUN chown ${ISC_PACKAGE_MGRUSER}:${ISC_PACKAGE_IRISGROUP} /opt/app
7+
WORKDIR /opt/irisapp
8+
RUN chown ${ISC_PACKAGE_MGRUSER}:${ISC_PACKAGE_IRISGROUP} /opt/irisapp
129

1310
USER irisowner
1411

15-
COPY ./Installer.cls ./
16-
COPY ./src/cls ./src/cls
17-
#COPY --chown=irisowner ./src/dfi ./src/dfi
12+
COPY Installer.cls .
13+
COPY src src
14+
COPY irissession.sh /
15+
SHELL ["/irissession.sh"]
1816

17+
RUN \
18+
do $SYSTEM.OBJ.Load("Installer.cls", "ck") \
19+
set sc = ##class(App.Installer).setup()
1920

20-
RUN iris start $ISC_PACKAGE_INSTANCENAME quietly && \
21-
/bin/echo -e \
22-
"zn \"%SYS\"\n" \
23-
" Do ##class(Security.Users).UnExpireUserPasswords(\"*\")\n" \
24-
"zn \"USER\"\n" \
25-
" Do \$system.OBJ.Load(\"/opt/app/Installer.cls\",\"ck\")\n" \
26-
" Set sc = ##class(App.Installer).setup(, 3)\n" \
27-
" If 'sc do \$zu(4, \$JOB, 1)\n" \
28-
" halt" \
29-
| iris session $ISC_PACKAGE_INSTANCENAME && \
30-
/bin/echo -e "sys\nsys\n" \
31-
| iris stop $ISC_PACKAGE_INSTANCENAME quietly
3221

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

0 commit comments

Comments
 (0)