Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rrkarim/airflow_local
run airlow local docker
https://github.com/rrkarim/airflow_local
Last synced: 10 days ago
JSON representation
run airlow local docker
- Host: GitHub
- URL: https://github.com/rrkarim/airflow_local
- Owner: rrkarim
- Created: 2022-07-09T12:35:10.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-19T09:11:08.000Z (about 2 years ago)
- Last Synced: 2024-10-28T10:41:35.604Z (about 2 months ago)
- Language: Dockerfile
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Run dag with airflow server/scheduler running inside the docker
To run your dag do this:
1. Build (`docker build -t run_local_airflow .`)
2. Run container with mount and port forward:
```bash
docker run -p $HOST_PORT:8080 \
-v $HOST_DAGS_PATH:/home/user0/dags \
-it run_local_airflow
OPTIONAL[requirements.txt]
# provide this to pip install additional modules for your dag
# be sure that requirements.txt is in $HOST_DAGS_PATH/
```
3. Go to `localhost:$HOST_PORT` (user_name and pass is `user`)
4. You will see your dags there.