-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (25 loc) · 918 Bytes
/
Dockerfile
File metadata and controls
32 lines (25 loc) · 918 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#
# SAML-COS sample environment
#
#ARG IMAGE=store/intersystems/irishealth-community:2020.1.0.215.0
#ARG IMAGE=store/intersystems/irishealth-community:2020.4.0.547.0
ARG IMAGE=store/intersystems/irishealth-community:2021.1.0.215.3
ARG IMAGE=intersystemsdc/irishealth-community:2021.1.0.215.3-zpm
ARG IMAGE=intersystemsdc/irishealth-community:2022.1.1.374.0-zpm
FROM $IMAGE
USER root
# create directories for testing environment
RUN mkdir -p /opt/saml-cos/app /opt/saml-cos/db
# copy source code
WORKDIR /opt/saml-cos
COPY . app
# change ownership
RUN chown -R ${ISC_PACKAGE_MGRUSER}:${ISC_PACKAGE_IRISGROUP} /opt/saml-cos
USER ${ISC_PACKAGE_MGRUSER}
# download latest zpm version
#RUN wget https://pm.community.intersystems.com/packages/zpm/latest/installer -O /tmp/zpm.xml
# run iris.script
WORKDIR /opt/saml-cos/app
RUN iris start IRIS \
&& iris session IRIS < iris.script \
&& iris stop IRIS quietly