Skip to content

Commit c9d17d1

Browse files
Evgeny ShvarovEvgeny Shvarov
authored andcommitted
20193 security fixes
1 parent 5760178 commit c9d17d1

2 files changed

Lines changed: 18 additions & 14 deletions

File tree

Dockerfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +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

8+
USER root
9+
810
WORKDIR /opt/app
11+
RUN chown irisowner /opt/app
12+
13+
USER irisowner
914

10-
COPY ./Installer.cls ./
11-
COPY ./src/cls ./src/cls
12-
#COPY ./src/dfi ./src/dfi
15+
COPY ./Installer.cls ./
16+
COPY ./src/cls ./src/cls
17+
#COPY --chown=irisowner ./src/dfi ./src/dfi
1318

1419

1520
RUN iris start $ISC_PACKAGE_INSTANCENAME quietly EmergencyId=sys,sys && \
1621
/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" \
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" \

Dockerfile-20193

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,17 @@ ARG IMAGE=store/intersystems/iris:2019.2.0.107.0-community
55
ARG IMAGE=store/intersystems/iris:2019.3.0.302.0-community
66
FROM $IMAGE
77

8+
USER root
9+
810
WORKDIR /opt/app
11+
RUN chown irisowner /opt/app
12+
13+
USER irisowner
14+
15+
COPY ./Installer.cls ./
16+
COPY ./src/cls ./src/cls
17+
#COPY --chown=irisowner ./src/dfi ./src/dfi
918

10-
COPY ./Installer.cls ./
11-
COPY ./src/cls ./src/cls
12-
#COPY ./src/dfi ./src/dfi
13-
USER root
1419

1520
RUN iris start $ISC_PACKAGE_INSTANCENAME quietly EmergencyId=sys,sys && \
1621
/bin/echo -e "sys\nsys\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" ]

0 commit comments

Comments
 (0)