前提
Airflowを学びたく、触り始めました。
こちらにあるように、dockerファイルをインストールし、docker-composeによる起動(docker-compose up)やブラウザからのアクセスは無事完了しました。
https://qiita.com/hankehly/items/1f02a34740276d1b8f0f
現在は、以下の公式tutorialを試しています。
https://airflow.apache.org/docs/apache-airflow/stable/tutorial/fundamentals.html
なお、実行環境はMacを使用しています。
実現したいこと
tutorail.pyファイルをdocker環境にアップロードし、以下の部分にあるようにCLIでAirflowを操作したいのですが、dockerで起動しているAirflowに対してどのように実行して良いかがわかりません
# initialize the database tables airflow db init # print the list of active DAGs airflow dags list # prints the list of tasks in the "tutorial" DAG airflow tasks list tutorial # prints the hierarchy of tasks in the "tutorial" DAG airflow tasks list tutorial --tree
試したこと
docker-compose execでdocker上のAirflowにアクセスすれば良いかとも思ったのですが、どのように実行すれば良いかがわかりませんでした.
以上、よろしくお願いいたします。
あなたの回答
tips
プレビュー