Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Gaetan Semet <gaetan@xeberon.net>
- Loading branch information
Showing
7 changed files
with
171 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Airflow DAGs | ||
|
||
Place your DAGs in this folder if you choose to deploy your DAGS inside the Docker image. | ||
|
||
This allows to enforce consistency between all the containers, and have the following advantages: | ||
- force restart of the scheduler on DAG update, avoiding inconsistency issue in case of DAG update | ||
while it is running | ||
- allow installation of dependencies | ||
|
||
It is also possible to actually keep your DAGs in an external git-project, combining it with | ||
DAG requirements declaration, and call the kube-airflow's Makefile accordingly. For example, you can: | ||
|
||
- gate every DAGs changes by a mergerequest mecanism: unittest, pip install, | ||
- make a new docker image using | ||
|
||
DAG_PATH=$PWD | ||
cd /path/to/kube-aiflow | ||
make ENBEDDED_DAGS_LOCATION=$DAG_PATH REQUIREMENTS_TXT_LOCATION=$DAG_PATH/requirements.txt | ||
|
||
- trigger the deployment on this new image on your Kubernetes infrastructure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# This file contains the dependencies needed to install airflow | ||
# To declare new dependencies, use `requirements-dags.txt` | ||
|
||
pytz==2015.7 | ||
cryptography | ||
requests | ||
pyOpenSSL | ||
ndg-httpsclient | ||
pyasn1 | ||
psycopg2 | ||
airflow[celery,postgresql,hive] | ||
click |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Place in this file the Python requirements your DAG may need. They will be automatically | ||
# installed inside the container during the container build, independently if you use embedded DAGs | ||
# of Git-sync. | ||
|
||
pytz==2015.7 | ||
cryptography | ||
requests | ||
pyOpenSSL | ||
ndg-httpsclient | ||
pyasn1 | ||
psycopg2 | ||
airflow[celery,postgresql,hive] | ||
click | ||
|
||
# add neew dependecies bellow: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters