Skip to content

Commit

Permalink
The passwordless module must be installed at the very end
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyMi37 committed Oct 19, 2023
1 parent 7746ff0 commit e88a5e9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
11 changes: 10 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
ARG IMAGE=intersystemsdc/irishealth-community
ARG IMAGE=intersystemsdc/iris-community
FROM $IMAGE
#FROM $IMAGE
FROM $IMAGE as builder

WORKDIR /home/irisowner/dev/

Expand All @@ -13,3 +14,11 @@ RUN --mount=type=bind,src=.,dst=. \
iris session IRIS < iris.script && \
([ $TESTS -eq 0 ] || iris session iris -U $NAMESPACE "##class(%ZPM.PackageManager).Shell(\"test $MODULE -v -only\",1,1)") && \
iris stop IRIS quietly

FROM $IMAGE as final

ADD --chown=${ISC_PACKAGE_MGRUSER}:${ISC_PACKAGE_IRISGROUP} https://github.com/grongierisc/iris-docker-multi-stage-script/releases/latest/download/copy-data.py /irisdev/app/copy-data.py

RUN --mount=type=bind,source=/,target=/builder/root,from=builder \
cp -f /builder/root/usr/irissys/iris.cpf /usr/irissys/iris.cpf && \
python3 /irisdev/app/copy-data.py -c /usr/irissys/iris.cpf -d /builder/root/
7 changes: 5 additions & 2 deletions iris.script
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@
zn "USER"
zpm "install git-source-control"
do ##class(%Studio.SourceControl.Interface).SourceControlClassSet("SourceControl.Git.Extension")
zpm "install passwordless"
zpm "install objectscript-json-trace-viewer"


zpm "load /home/irisowner/dev/ -dev -v":1:1
zpm "load /home/irisowner/dev/ -dev -v":1

;The passwordless module must be installed at the very end
zpm "install passwordless"

halt

0 comments on commit e88a5e9

Please sign in to comment.