-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
40 lines (28 loc) · 918 Bytes
/
Dockerfile
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
33
34
35
36
37
38
39
40
ARG IMAGE=intersystemsdc/iris-ml-community:preview
# ARG IMAGE=intersystemsdc/iris-ml-community:2023.2.0.227.0-zpm
FROM ${IMAGE}
USER root
WORKDIR /opt/irisbuild
RUN python3 -m pip install --upgrade pip
RUN apt-get update && apt-get install -y \
vim \
nano \
&& rm -rf /var/lib/apt/lists/*
USER ${ISC_PACKAGE_MGRUSER}
# stage data
COPY data/ /opt/irisbuild/data/
# IRIS setup
COPY iris.script iris.script
RUN iris start IRIS && \
iris session IRIS < iris.script && \
iris stop IRIS quietly
# dbt setup
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
COPY src/dbt/profiles.yml /home/irisowner/.dbt/profiles.yml
COPY src/dbt/datafest dbt/datafest
# ensure dbt and data folders are writable and ready to roll
USER root
RUN chown -R ${ISC_PACKAGE_MGRUSER}:${ISC_PACKAGE_IRISGROUP} /opt/irisbuild
USER ${ISC_PACKAGE_MGRUSER}
RUN dbt deps --project-dir ./dbt/datafest/