-
Notifications
You must be signed in to change notification settings - Fork 35
/
Dockerfile.dev
35 lines (26 loc) · 1.05 KB
/
Dockerfile.dev
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
FROM python:3.9
USER root
RUN apt-get update
RUN apt-get install -y gcc unzip vim
COPY ./plugins /dbnd/plugins/
COPY ./modules /dbnd/modules/
COPY ./examples /dbnd/examples/
COPY ./setup.cfg /dbnd/modules/dbnd/setup.cfg
COPY ./setup.cfg /dbnd/modules/dbnd-airflow/setup.cfg
COPY ./setup.cfg /dbnd/examples/setup.cfg
COPY ./setup.cfg /dbnd/plugins/*/setup.cfg
COPY ./project.cfg /dbnd/
RUN pip install pip==21.3.1 # python 3.6
# Pre-install Airflow with correct deps
ARG AIRFLOW_VERSION=1.10.15
RUN SHORT_PYTHON_VERSION=$(echo ${PYTHON_VERSION} | cut -f1,2 -d'.') && \
pip install apache-airflow[postgres]==$AIRFLOW_VERSION \
--constraint "https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-${SHORT_PYTHON_VERSION}.txt"
RUN pip install -e /dbnd/modules/dbnd
RUN pip install -e /dbnd/modules/dbnd-airflow
RUN pip install -e /dbnd/examples
RUN pip install -e /dbnd/plugins/dbnd-aws
RUN pip install -e /dbnd/plugins/dbnd-docker
RUN pip install -e /dbnd/plugins/dbnd-airflow-auto-tracking
WORKDIR /dbnd
ENTRYPOINT "/bin/bash"