This is the default Airflow repository to get you started for generating preview environments from a custom Airflow image with Restack github application.
- If you want to extend the image with custom dags, just add them to the dags directory.
- If you want to extend the image with custom plugins, just add them to the plugins directory.
- If you want to extend the image with custom configuration, just add them to the config directory.
- It is possible to pass data between tasks natively just using the Astronomer provider package. To try XCOM feature just run
simple_xcom_dag
orfetch_pokemon_data
DAGs.
Restack will expose a build arg for the Dockerfile called: RESTACK_PRODUCT_VERSION. This will contain the image tag of the product. As seen on this starter repo's Dockerfile you can use it as such:
ARG RESTACK_PRODUCT_VERSION=2.8.0
FROM apache/airflow:${RESTACK_PRODUCT_VERSION}
This way once a new version of airflow is released and you upgrade your app via Restack console, your ci/cd builds will use the latest version to build your airflow custom image.
- Make sure to fork this repository.
- Follow steps in the official Restack documentation
- Once you open a pull request a preview environment will be generated.
- Once your pull request is merged your initial Airflow application will be provisioned with latest code from the "main" branch.