This repository contains Dockerfile of apache-airflow based on puckel/docker-airflow's image.
- Based on puckel/docker-airflow
- Install Docker
- Following the Airflow release from Python Package Index
Pull the image from the Docker repository.
docker pull jactools/docker-airflow-informatica
docker build -t jactools/docker-airflow-informatica:no_infa .
Copy the extracted Informatica command line utilities directory into software/, so the directory structure looks like this (for Informatica 10.2.2)
software/informatica
software/informatica/PowerCenter
software/informatica/shared
...
then:
docker build -t jactools/docker-airflow-informatica:infa1022 .
Please check the usage note at puckel/docker-airflow
For example: docker run -d --name airflow -p 8080:8080 jactools/docker-airflow-informatica webserver
To stop/start the container: docker stop airflow docker start airflow
To remove it docker rm airflow
Without installed Informatica command line utilities: docker-compose docker-compose-LocalExecutor-noinfa.yml up With 10.2.2 installed Informatica command line utilities: docker-compose docker-compose-LocalExecutor-infa1022.yml up
- Airflow: localhost:8080
- Flower: localhost:5555
If you want to run other airflow sub-commands, such as list_dags
or clear
you can do so like this:
docker run --rm -ti puckel/docker-airflow-informatica airflow list_dags
You can also use this to run a bash shell or any other command in the same environment that airflow would be run in:
docker run --rm -ti puckel/docker-airflow-informatica bash
docker run --rm -ti puckel/docker-airflow-informatica ipython
Fork, improve and PR. ;-)