Skip to content

Commit 7293a7a

Browse files
committed
added Embedded Python to IRIS sample
1 parent 2619f46 commit 7293a7a

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

Dockerfile

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
ARG IMAGE=store/intersystems/iris-community:2020.1.0.204.0
2-
ARG IMAGE=intersystemsdc/iris-community:2020.1.0.209.0-zpm
3-
ARG IMAGE=intersystemsdc/iris-community:2020.2.0.204.0-zpm
4-
ARG IMAGE=intersystemsdc/irishealth-community:2020.3.0.200.0-zpm
5-
ARG IMAGE=intersystemsdc/iris-community:2020.3.0.200.0-zpm
6-
ARG IMAGE=intersystemsdc/iris-community:2020.3.0.221.0-zpm
7-
ARG IMAGE=intersystemsdc/iris-community:2020.4.0.524.0-zpm
8-
ARG IMAGE=intersystemsdc/iris-ml-community:2020.3.0.302.0-zpm
9-
ARG IMAGE=intersystemsdc/iris-ml-community
1+
ARG IMAGE=intersystemsdc/irishealth-community
2+
ARG IMAGE=intersystemsdc/iris-community
3+
ARG IMAGE=intersystemsdc/iris-community:preview
104
FROM $IMAGE
115

12-
USER root
13-
14-
WORKDIR /opt/irisbuild
15-
RUN chown ${ISC_PACKAGE_MGRUSER}:${ISC_PACKAGE_IRISGROUP} /opt/irisbuild
16-
USER ${ISC_PACKAGE_MGRUSER}
6+
WORKDIR /home/irisowner/irisbuild
177

18-
#COPY Installer.cls .
19-
COPY data data
20-
COPY python python
21-
COPY src src
22-
COPY module.xml module.xml
23-
COPY iris.script iris.script
8+
ARG TESTS=0
9+
ARG MODULE="iris-python-template"
10+
ARG NAMESPACE="USER"
2411

25-
RUN iris start IRIS \
26-
&& iris session IRIS < iris.script \
27-
&& iris stop IRIS quietly
12+
# create Python env
13+
ENV PYTHON_PATH=/usr/irissys/bin/irispython
14+
ENV SRC_PATH=/irisdev/app
15+
ENV IRISUSERNAME "SuperUser"
16+
ENV IRISPASSWORD "SYS"
17+
ENV IRISNAMESPACE "USER"
18+
19+
RUN pip3 install -r requirements.txt
20+
21+
## Start IRIS
22+
23+
RUN --mount=type=bind,src=.,dst=. \
24+
iris start IRIS && \
25+
iris session IRIS < iris.script && \
26+
([ $TESTS -eq 0 ] || iris session iris -U $NAMESPACE "##class(%ZPM.PackageManager).Shell(\"test $MODULE -v -only\",1,1)") && \
27+
iris stop IRIS quietly

0 commit comments

Comments
 (0)