Skip to content

Commit 95c2352

Browse files
authored
Merge pull request #3 from markovianhq/fix/specific_airflow_commit
Fix/specific airflow commit
2 parents fe5b17d + 2eecf8e commit 95c2352

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

Dockerfile

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ ENV TERM linux
66

77
# Airflow
88
ARG AIRFLOW_VERSION=1.7.1.3
9+
ARG AIRFLOW_REPO_URL=https://github.com/apache/incubator-airflow.git
10+
ARG AIRFLOW_COMMIT=fe037d6
911
ENV AIRFLOW_HOME /usr/local/airflow
1012

1113
# Define en_US.
@@ -18,27 +20,25 @@ ENV LC_ALL en_US.UTF-8
1820

1921
RUN 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

Comments
 (0)