From: Edward Delaporte Date: Wed, 8 Jul 2020 16:33:29 +0000 (-0500) Subject: attempted airflow run X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/commitdiff_plain/a02b2eb5ad1cb911977283cf359d105f831db3fb?ds=sidebyside;hp=-c attempted airflow run --- a02b2eb5ad1cb911977283cf359d105f831db3fb diff --git a/Microsoft.PowerShell_profile.ps1 b/Microsoft.PowerShell_profile.ps1 index a72d539..8ae1eb4 100644 --- a/Microsoft.PowerShell_profile.ps1 +++ b/Microsoft.PowerShell_profile.ps1 @@ -84,4 +84,13 @@ function Start-DockerPython2Bash { function Stop-Docker { docker stop $(docker ps -a -q) +} + +function New-DockerAirflow { + docker run -v ./:/etc/myscripts apache/airflow /bin/bash /etc/myscripts/airflow.sh + +} + +function Start-DockerAirflow { + docker run airflow -f webserver } \ No newline at end of file diff --git a/docker-airflow.yml b/docker-airflow.yml new file mode 100644 index 0000000..a977d5a --- /dev/null +++ b/docker-airflow.yml @@ -0,0 +1,11 @@ +airflow initdb +webapp: + environment: + - AIRFLOW_HOME = /opt/data + image: examples/web + ports: + - "8000:8000" + volumes: + - type: bind + source: ./data + target: /opt/data \ No newline at end of file