-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Airflow demo script for one click deployment #4451
Conversation
.gitignore
Outdated
|
||
# Airflow Demo | ||
resources/examples/airflow/logs/* | ||
!resources/examples/airflow/logs/.gitkeep |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EOF line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
start_date=days_ago(1) | ||
) as dag: | ||
|
||
money_to_json = AirbyteTriggerSyncOperator( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better call something else here because my example use exchange rate api
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, changed.
resources/examples/airflow/up.sh
Outdated
echo "Enter your Airbyte connection ID: " | ||
read connection_id | ||
docker exec -ti airflow_webserver airflow variables set 'AIRBYTE_CONNECTION_ID' "$connection_id" | ||
docker exec -ti airflow_webserver airflow connections add 'airbyte_example' --conn-uri 'airbyte://host.docker.internal:8000' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe echo Now you can access Airflow at http://localhost:8085 active your DAG and play around
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
AIRFLOW__CELERY__BROKER_URL: redis://:@redis:6379/0 | ||
AIRFLOW__CORE__FERNET_KEY: "" | ||
AIRFLOW__CORE__DAGS_ARE_PAUSED_AT_CREATION: "true" | ||
AIRFLOW__CORE__LOAD_EXAMPLES: "false" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this working?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep!
Main Inspiration
Main Changes
examples
directory to the resources directory to store Airbyte demo scripts.examples
that brings up Airbyte, Airflow, and creates an Airflow connection for you based on your Airbyte connection ID.