kadirsahan / airflow-project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

https://predictivehacks.com/how-to-run-your-first-airflow-dag-in-docker/


ubutu
---
/lib/systemd/system/docker.service

ExecStart=/usr/bin/dockerd -H 0.0.0.0:2375 -H fd:// --containerd=/run/containerd/containerd.sock


systemctl daemon-reload

systemctl restart docker

-------------------------
airflow.cfg
-----
enable_xcom_pickling = True

OR
docker-compose.yaml
----

Worked for me too. I use it with docker-compose so had to add environment variable:
AIRFLOW__CORE__ENABLE_XCOM_PICKLING: 'true'

--------------------------


.kube directory
----
copy /home/vagrant/.kube/config ( on the kubernetes master) to this directory


docker context create k8s-test --default-stack-orchestrator=kubernetes --kubernetes config-file=/Users/kadirsahan/PycharmProjects/airflowProject/.kube/config --docker host=unix:///var/run/docker.sock

-----------------

docker build -t docker_spark_submit .

docker tag docker_spark_submit docker.io/kadirsahan/docker_spark_submit

docker push kadirsahan/docker_spark_submit

------------------




About


Languages

Language:Python 94.2%Language:Dockerfile 3.0%Language:Shell 2.8%