-
Notifications
You must be signed in to change notification settings - Fork 13
/
Dockerfile
38 lines (22 loc) · 912 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
ARG PYTHON_VERSION=3.9
FROM python:${PYTHON_VERSION}-bullseye
RUN apt-get update && apt-get -y install git python3 python3-pip python3-venv sqlite3 vim virtualenvwrapper wget
WORKDIR /opt/dbt-sqlite
RUN python3 -m pip install --upgrade pip \
&& python3 -m pip install pytest pytest-dotenv dbt-core~=1.5.0 dbt-tests-adapter~=1.5.0
RUN wget -q https://github.com/nalgeon/sqlean/releases/download/0.15.2/crypto.so
RUN wget -q https://github.com/nalgeon/sqlean/releases/download/0.15.2/math.so
RUN wget -q https://github.com/nalgeon/sqlean/releases/download/0.15.2/text.so
WORKDIR /opt/dbt-sqlite/src
COPY setup.py .
COPY dbt ./dbt
RUN pip install .
COPY run_tests.sh .
COPY pytest.ini .
COPY tests ./tests
ENV TESTDATA=/opt/dbt-sqlite/testdata
RUN mkdir $TESTDATA
VOLUME /opt/dbt-sqlite/testdata
WORKDIR /opt/dbt-sqlite/project
ENV PATH=$PATH:/opt/dbt-sqlite/src
VOLUME /opt/dbt-sqlite/project