Skip to content

Commit

Permalink
Update to python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
puckel committed Jul 27, 2017
1 parent 4a0085a commit 87db6f5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# VERSION 1.8.1
# VERSION 1.8.1-1
# AUTHOR: Matthieu "Puckel_" Roisil
# DESCRIPTION: Basic Airflow container
# BUILD: docker build --rm -t puckel/docker-airflow .
# SOURCE: https://github.com/puckel/docker-airflow

FROM debian:stretch
FROM python:3.6-stretch
MAINTAINER Puckel_

# Never prompts the user for choices on installation/configuration of packages
Expand All @@ -25,7 +25,7 @@ ENV LC_ALL en_US.UTF-8

RUN set -ex \
&& buildDeps=' \
python-dev \
python3-dev \
libkrb5-dev \
libsasl2-dev \
libssl-dev \
Expand All @@ -39,8 +39,8 @@ RUN set -ex \
&& apt-get update -yqq \
&& apt-get install -yqq --no-install-recommends \
$buildDeps \
python-pip \
python-requests \
python3-pip \
python3-requests \
apt-utils \
curl \
netcat \
Expand All @@ -55,7 +55,7 @@ RUN set -ex \
&& pip install pyOpenSSL \
&& pip install ndg-httpsclient \
&& pip install pyasn1 \
&& pip install apache-airflow[crypto,celery,postgres,hive,hdfs,jdbc]==$AIRFLOW_VERSION \
&& pip install apache-airflow[crypto,celery,postgres,hive,jdbc]==$AIRFLOW_VERSION \
&& pip install celery[redis]==3.1.17 \
&& apt-get remove --purge -yqq $buildDeps \
&& apt-get clean \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This repository contains **Dockerfile** of [apache-airflow](https://github.com/a

## Informations

* Based on Debian Stretch official Image [debian:stretch](https://registry.hub.docker.com/_/debian/) and uses the official [Postgres](https://hub.docker.com/_/postgres/) as backend and [Redis](https://hub.docker.com/_/redis/) as queue
* Based on Python (3.6-stretch) official Image [python:3.6-stretch](https://hub.docker.com/_/python/) and uses the official [Postgres](https://hub.docker.com/_/postgres/) as backend and [Redis](https://hub.docker.com/_/redis/) as queue
* Install [Docker](https://www.docker.com/)
* Install [Docker Compose](https://docs.docker.com/compose/install/)
* Following the Airflow release from [Python Package Index](https://pypi.python.org/pypi/apache-airflow)
Expand Down
8 changes: 4 additions & 4 deletions docker-compose-CeleryExecutor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ services:
- POSTGRES_DB=airflow

webserver:
image: puckel/docker-airflow:1.8.1
image: puckel/docker-airflow:1.8.1-1
restart: always
depends_on:
- postgres
Expand All @@ -30,7 +30,7 @@ services:
command: webserver

flower:
image: puckel/docker-airflow:1.8.1
image: puckel/docker-airflow:1.8.1-1
restart: always
depends_on:
- redis
Expand All @@ -41,7 +41,7 @@ services:
command: flower

scheduler:
image: puckel/docker-airflow:1.8.1
image: puckel/docker-airflow:1.8.1-1
restart: always
depends_on:
- webserver
Expand All @@ -57,7 +57,7 @@ services:
command: scheduler

worker:
image: puckel/docker-airflow:1.8.1
image: puckel/docker-airflow:1.8.1-1
restart: always
depends_on:
- scheduler
Expand Down
2 changes: 1 addition & 1 deletion docker-compose-LocalExecutor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
- POSTGRES_DB=airflow

webserver:
image: puckel/docker-airflow:1.8.1
image: puckel/docker-airflow:1.8.1-1
restart: always
depends_on:
- postgres
Expand Down

0 comments on commit 87db6f5

Please sign in to comment.