Ubuntu Core latest + Apache Airflow
692
Ubuntu Core latest + Apache Airflow 1.8.0. A multi-container application setup is also provided in this repo, using the official PostgreSQL image as database backend for Airflow.
This Dockerfile is based on the more complete by puckel.
Automated builds have
been enabled for the main image josemrivera/airflow.
docker build --rm -t josemrivera/airflow .
For now josemrivera/airflow is written to be run as a multi-container Docker
application using docker-compose. To run Airflow with the Postgres backend:
docker-compose up -d
This needs sudo if the user hasn't been added to the docker group.
NB : If you don't want to have DAGs example loaded (default=True), you must set
the following environment variable LOAD_EX=n in the docker-compose.yml file.
If you want to use Adhoc query, make sure you've configured connections: Go to Admin -> Connections and Edit "postgres_default" set this values (equivalent to values in airflow.cfg/docker-compose.yml) :
For encrypted connection passwords, you must have the same fernet_key. By
default docker-airflow generates the fernet_key at startup, you have to set an
environment variable in the docker-compose.yml file to set the same key across
containers. To generate a fernet_key :
python -c "from cryptography.fernet import Fernet; FERNET_KEY = Fernet.generate_key().decode(); print FERNET_KEY"
Check Airflow Documentation
-v $(pwd)/requirements.txt:/requirements.txtentrypoint.sh script executes the pip install -r command (with --user option)When using OSX with boot2docker, use: open http://$(boot2docker ip):8888
Content type
Image
Digest
Size
338.7 MB
Last updated
over 8 years ago
docker pull josemrivera/airflow