Created
July 16, 2023 20:30
-
-
Save sungchun12/70a0bbf2bdb6366b958839a4cd176496 to your computer and use it in GitHub Desktop.
quick setup for airflow using astro cli
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM quay.io/astronomer/astro-runtime:7.6.0 | |
# Install python packages | |
RUN pip install -r requirements.txt | |
# Switch to root user for installing git | |
USER root | |
# Install git | |
RUN apt-get update && apt-get install -y git | |
# Clean up APT cache | |
RUN apt-get clean && rm -rf /var/lib/apt/lists/* | |
# Switch back to the original user | |
USER astro | |
# Create a Python virtual environment and install dbt-bigquery | |
ENV DBT_VENV_PATH /home/astro/dbt_venv | |
RUN python -m venv $DBT_VENV_PATH && \ | |
. $DBT_VENV_PATH/bin/activate && \ | |
pip install dbt-bigquery==1.5.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apache-airflow-providers-dbt-cloud==1.0.2 | |
polygon-api-client==1.10.1 | |
apache-airflow-providers-google |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The main issue with the DAG was that the polygon api client was NOT installed in the docker container hosting airflow. This should fix that.