forked from wmorin/docker-airflow-1
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
59 lines (52 loc) · 1.63 KB
/
Dockerfile
File metadata and controls
59 lines (52 loc) · 1.63 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# VERSION 1.0
# AUTHOR: Matthieu "Puckel_" Roisil + LCY Modified
# DESCRIPTION: Basic Airflow container
# BUILD: docker build --rm -t puckel/docker-airflow
# SOURCE: https://github.com/puckel/docker-airflow
FROM debian:wheezy
MAINTAINER Puckel_
# Never prompts the user for choices on installation/configuration of packages
ENV DEBIAN_FRONTEND noninteractive
ENV TERM linux
# Work around initramfs-tools running on kernel 'upgrade': <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=594189>
ENV INITRD No
ENV AIRFLOW_VERSION 1.6.2
ENV AIRFLOW_COMMIT 93a28450f6133c9e008677240aa19fea0f1603f5
ENV AIRFLOW_HOME /usr/local/airflow
ENV C_FORCE_ROOT true
ENV PYTHONLIBPATH /usr/lib/python2.7/dist-packages
ENV GIT_SSL_NO_VERIFY true
RUN apt-get update -y
RUN apt-get install -y --no-install-recommends \
netcat \
python-pip \
python-dev \
libmysqlclient-dev \
libkrb5-dev \
libsasl2-dev \
libpq-dev \
build-essential \
git \
vim \
&& mkdir -p $AIRFLOW_HOME/logs \
&& mkdir $AIRFLOW_HOME/dags \
&& apt-get clean \
&& rm -rf \
/var/lib/apt/lists/* \
/tmp/* \
/var/tmp/* \
/usr/share/man \
/usr/share/doc \
/usr/share/doc-base
RUN pip install --upgrade setuptools && pip install --upgrade pip
RUN git clone git://github.com/onesky/airflow.git && cd airflow \
&& git reset --hard $AIRFLOW_COMMIT \
&& pip install .[postgres] && pip install .[s3] && pip install flask_admin==1.2.0
RUN pip install awscli
ADD config/airflow.cfg $AIRFLOW_HOME/airflow.cfg
ADD script/entrypoint.sh /root/entrypoint.sh
RUN chmod +x /root/entrypoint.sh
EXPOSE 8080
EXPOSE 5555
EXPOSE 8793
CMD ["airflow"]