-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (23 loc) · 815 Bytes
/
Dockerfile
File metadata and controls
31 lines (23 loc) · 815 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
ARG IMAGE=containers.intersystems.com/intersystems/irishealth-community:latest-em
FROM $IMAGE
# create base dirs
USER root
RUN mkdir -p /opt/astm
RUN chown -R 51773:52773 /opt/astm
USER ${ISC_PACKAGE_MGRUSER}
COPY --chown=$ISC_PACKAGE_MGRUSER:$ISC_PACKAGE_IRISGROUP irissession.sh /
RUN chmod +x /irissession.sh
# create required db dirs
RUN mkdir -p /opt/astm/db/HOST-DATA /opt/astm/db/HOST-CODE
RUN mkdir -p /opt/astm/db/INSTRUMENT-DATA /opt/astm/db/INSTRUMENT-CODE
# copy source code
COPY --chown=$ISC_PACKAGE_MGRUSER:$ISC_PACKAGE_IRISGROUP src /tmp/src
SHELL ["/irissession.sh"]
RUN \
zn "USER" \
# load installer
do $SYSTEM.OBJ.Load("/tmp/src/ASTM/Installer.cls", "ck") \
# run installer
set sc = ##class(ASTM.Installer).Run(.vars)
# bringing the standard shell back
SHELL ["/bin/bash", "-c"]