@@ -6,6 +6,8 @@ ENV TERM linux
66
77# Airflow
88ARG AIRFLOW_VERSION=1.7.1.3
9+ ARG AIRFLOW_REPO_URL=https://github.com/apache/incubator-airflow.git
10+ ARG AIRFLOW_COMMIT=fe037d6
911ENV AIRFLOW_HOME /usr/local/airflow
1012
1113# Define en_US.
@@ -18,27 +20,25 @@ ENV LC_ALL en_US.UTF-8
1820
1921RUN set -ex \
2022 && buildDeps=' \
21- python-pip \
22- python-dev \
23+ python3-dev \
2324 libkrb5-dev \
2425 libsasl2-dev \
2526 libssl-dev \
2627 libffi-dev \
2728 build-essential \
2829 libblas-dev \
2930 liblapack-dev \
31+ libpq-dev \
3032 libxml2-dev \
3133 libxslt1-dev \
3234 ' \
33- && echo "deb http://http.debian.net/debian jessie-backports main" >/etc/apt/sources.list.d/backports.list \
3435 && apt-get update -yqq \
3536 && apt-get install -yqq --no-install-recommends \
3637 $buildDeps \
3738 apt-utils \
3839 curl \
3940 netcat \
4041 locales \
41- && apt-get install -yqq -t jessie-backports python-requests libpq-dev \
4242 && sed -i 's/^# en_US.UTF-8 UTF-8$/en_US.UTF-8 UTF-8/g' /etc/locale.gen \
4343 && locale-gen \
4444 && update-locale LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 \
@@ -50,10 +50,15 @@ RUN set -ex \
5050 && pip install ndg-httpsclient \
5151 && pip install pyasn1 \
5252 && pip install psycopg2 \
53+ && pip install requests \
5354 && pip install 'google-api-python-client>=1.5.0,<1.6.0' \
5455 && pip install 'oauth2client>=2.0.2,<2.1.0' \
5556 && pip install httplib2 \
56- && pip install -e git+http://github.com/markovianhq/incubator-airflow.git#egg=airflow \
57+ && git clone ${AIRFLOW_REPO_URL} \
58+ && cd incubator-airflow \
59+ && git checkout ${AIRFLOW_COMMIT} \
60+ && pip install -e . \
61+ && cd .. \
5762 && apt-get remove --purge -yqq $buildDeps libpq-dev \
5863 && apt-get clean \
5964 && rm -rf \
0 commit comments