Sign inSign up

davvdg/docker-airflow

By davvdg

•Updated almost 10 years ago

Customized version of puckel/docker-airflow

Image
0

384

davvdg/docker-airflow repository overview

⁠docker-airflow

CircleCI branch Docker Hub Docker Pulls Docker Stars

This repository contains Dockerfile of airflow⁠ for Docker⁠'s automated build⁠ published to the public Docker Hub Registry⁠.

⁠Informations

⁠Installation

Pull the image from the Docker repository.

    docker pull puckel/docker-airflow

⁠Build

For example, if you need to install Extra Packages⁠, edit the Dockerfile and than build-it.

    docker build --rm -t puckel/docker-airflow .

⁠Usage

By default, docker-airflow run Airflow with SequentialExecutor :

    docker run -d -p 8080:8080 puckel/docker-airflow

If you want to run other executor, you've to use the docker-compose.yml files provided in this repository.

For LocalExecutor :

    docker-compose -f docker-compose-LocalExecutor.yml up -d

For CeleryExecutor :

    docker-compose -f docker-compose-CeleryExecutor.yml up -d

NB : If you don't want to have DAGs example loaded (default=True), you've to set the following environment variable :

LOAD_EX=n

    docker run -d -p 8080:8080 -e LOAD_EX=n puckel/docker-airflow

If you want to use Ad hoc query, make sure you've configured connections: Go to Admin -> Connections and Edit "mysql_default" set this values (equivalent to values in airflow.cfg/docker-compose.yml) :

  • Host : mysql
  • Schema : airflow
  • Login : airflow
  • Password : airflow

Check Airflow Documentation⁠

When using OSX with boot2docker, use: open http://$(boot2docker ip):8080

⁠Scale the number of workers

Easy scaling using docker-compose:

    docker-compose scale worker=5

This can be used to scale to a multi node setup using docker swarm.

⁠Wanna help?

Fork, improve and PR. ;-)

Tag summary

Content type

Image

Digest

Size

391.1 MB

Last updated

almost 10 years ago

docker pull davvdg/docker-airflow