Skip to content

Commit 23a7778

Browse files
authored
Merge pull request #6 from markovianhq/fix/simplify_image
Fix/simplify image
2 parents f84ab4e + 3459fa1 commit 23a7778

File tree

4 files changed

+6
-153
lines changed

4 files changed

+6
-153
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,7 @@ Session.vim
2121

2222
# sftp configuration file
2323
sftp-config.json
24+
25+
26+
### PyCharm ###
27+
.idea

Dockerfile

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,4 @@ RUN set -ex \
6969
/usr/share/doc \
7070
/usr/share/doc-base
7171

72-
COPY script/entrypoint.sh ${AIRFLOW_HOME}/entrypoint.sh
73-
74-
RUN chown -R airflow: ${AIRFLOW_HOME} \
75-
&& chmod +x ${AIRFLOW_HOME}/entrypoint.sh
76-
77-
EXPOSE 8080 5555 8793
78-
79-
USER airflow
8072
WORKDIR ${AIRFLOW_HOME}
81-
ENTRYPOINT ["./entrypoint.sh"]

README.md

Lines changed: 2 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,4 @@
11
# docker-airflow
2-
[![CircleCI](https://img.shields.io/circleci/project/puckel/docker-airflow.svg?maxAge=2592000)](https://circleci.com/gh/puckel/docker-airflow)
3-
[![Docker Hub](https://img.shields.io/badge/docker-ready-blue.svg)](https://hub.docker.com/r/puckel/docker-airflow/)
4-
[![Docker Pulls](https://img.shields.io/docker/pulls/puckel/docker-airflow.svg?maxAge=2592000)]()
5-
[![Docker Stars](https://img.shields.io/docker/stars/puckel/docker-airflow.svg?maxAge=2592000)]()
62

7-
This repository contains **Dockerfile** of [airflow](https://github.com/apache/incubator-airflow) for [Docker](https://www.docker.com/)'s [automated build](https://registry.hub.docker.com/u/puckel/docker-airflow/) published to the public [Docker Hub Registry](https://registry.hub.docker.com/).
8-
9-
## Informations
10-
11-
* Based on Debian Jessie official Image [debian:jessie](https://registry.hub.docker.com/_/debian/) and uses the official [Postgres](https://hub.docker.com/_/postgres/) as backend and [RabbitMQ](https://hub.docker.com/_/rabbitmq/) as queue
12-
* Install [Docker](https://www.docker.com/)
13-
* Install [Docker Compose](https://docs.docker.com/compose/install/)
14-
* Following the Airflow release from [Python Package Index](https://pypi.python.org/pypi/airflow)
15-
16-
## Installation
17-
18-
Pull the image from the Docker repository.
19-
20-
docker pull puckel/docker-airflow
21-
22-
## Build
23-
24-
For example, if you need to install [Extra Packages](http://pythonhosted.org/airflow/installation.html#extra-package), edit the Dockerfile and than build-it.
25-
26-
docker build --rm -t puckel/docker-airflow .
27-
28-
## Usage
29-
30-
By default, docker-airflow run Airflow with **SequentialExecutor** :
31-
32-
docker run -d -p 8080:8080 puckel/docker-airflow
33-
34-
If you want to run other executor, you've to use the docker-compose.yml files provided in this repository.
35-
36-
For **LocalExecutor** :
37-
38-
docker-compose -f docker-compose-LocalExecutor.yml up -d
39-
40-
For **CeleryExecutor** :
41-
42-
docker-compose -f docker-compose-CeleryExecutor.yml up -d
43-
44-
NB : If you don't want to have DAGs example loaded (default=True), you've to set the following environment variable :
45-
46-
`LOAD_EX=n`
47-
48-
docker run -d -p 8080:8080 -e LOAD_EX=n puckel/docker-airflow
49-
50-
If you want to use Ad hoc query, make sure you've configured connections:
51-
Go to Admin -> Connections and Edit "mysql_default" set this values (equivalent to values in airflow.cfg/docker-compose.yml) :
52-
- Host : mysql
53-
- Schema : airflow
54-
- Login : airflow
55-
- Password : airflow
56-
57-
Check [Airflow Documentation](http://pythonhosted.org/airflow/)
58-
59-
## UI Links
60-
61-
- Airflow: [localhost:8080](http://localhost:8080/)
62-
- Flower: [localhost:5555](http://localhost:5555/)
63-
- RabbitMQ: [localhost:15672](http://localhost:15672/)
64-
65-
When using OSX with boot2docker, use: open http://$(boot2docker ip):8080
66-
67-
## Scale the number of workers
68-
69-
Easy scaling using docker-compose:
70-
71-
docker-compose scale worker=5
72-
73-
This can be used to scale to a multi node setup using docker swarm.
74-
75-
## Links
76-
77-
- Airflow on Kubernetes [kube-airflow](https://github.com/mumoshu/kube-airflow)
78-
79-
# Wanna help?
80-
81-
Fork, improve and PR. ;-)
3+
Airbnb Airflow image based on
4+
[https://github.com/puckel/docker-airflow](https://github.com/puckel/docker-airflow).

script/entrypoint.sh

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)