|
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 |
10 | 4 | FROM $IMAGE
|
11 | 5 |
|
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 |
17 | 7 |
|
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" |
24 | 11 |
|
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