|
1 |
| -ARG IMAGE=store/intersystems/irishealth:2019.3.0.308.0-community |
2 |
| -ARG IMAGE=store/intersystems/iris-community:2019.3.0.309.0 |
3 |
| -ARG IMAGE=store/intersystems/iris-community:2019.4.0.379.0 |
4 |
| -ARG IMAGE=store/intersystems/iris-community:2020.1.0.199.0 |
| 1 | +ARG IMAGE=intersystemsdc/irishealth-community:2020.3.0.200.0-zpm |
| 2 | +ARG IMAGE=intersystemsdc/iris-community:2020.4.0.547.0-zpm |
| 3 | +ARG IMAGE=containers.intersystems.com/intersystems/iris:2021.1.0.215.0 |
5 | 4 | ARG IMAGE=intersystemsdc/iris-community
|
6 | 5 | FROM $IMAGE
|
7 | 6 |
|
8 |
| -USER root |
| 7 | +WORKDIR /home/irisowner/irisbuild |
9 | 8 |
|
10 |
| -WORKDIR /opt/irisapp |
11 |
| -RUN chown ${ISC_PACKAGE_MGRUSER}:${ISC_PACKAGE_IRISGROUP} /opt/irisapp |
| 9 | +## install git |
| 10 | +## USER root |
| 11 | +##RUN apt update && apt-get -y install git |
| 12 | +##USER ${ISC_PACKAGE_MGRUSER} |
12 | 13 |
|
13 |
| -USER irisowner |
| 14 | +ARG TESTS=0 |
| 15 | +ARG MODULE="dc-sample-template" |
| 16 | +ARG NAMESPACE="IRISAPP" |
14 | 17 |
|
15 |
| -COPY Installer.cls . |
16 |
| -COPY src src |
17 |
| -COPY irissession.sh / |
18 |
| -SHELL ["/irissession.sh"] |
| 18 | +## Embedded Python environment |
| 19 | +ENV IRISUSERNAME "_SYSTEM" |
| 20 | +ENV IRISPASSWORD "SYS" |
| 21 | +ENV IRISNAMESPACE $NAMESPACE |
| 22 | +ENV PYTHON_PATH=/usr/irissys/bin/ |
| 23 | +ENV PATH "/usr/irissys/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/irisowner/bin" |
19 | 24 |
|
20 |
| -RUN \ |
21 |
| - do $SYSTEM.OBJ.Load("Installer.cls", "ck") \ |
22 |
| - set sc = ##class(App.Installer).setup() |
23 | 25 |
|
24 |
| -# bringing the standard shell back |
25 |
| -SHELL ["/bin/bash", "-c"] |
| 26 | +RUN --mount=type=bind,src=.,dst=. \ |
| 27 | + #pip3 install -r requirements.txt && \ |
| 28 | + iris start IRIS && \ |
| 29 | + iris session IRIS < iris.script && \ |
| 30 | + ([ $TESTS -eq 0 ] || iris session iris -U $NAMESPACE "##class(%ZPM.PackageManager).Shell(\"test $MODULE -v -only\",1,1)") && \ |
| 31 | + iris stop IRIS quietly |
0 commit comments