Skip to content

Commit

Permalink
Merge pull request #22 from Dorianteffo/dev_dorian
Browse files Browse the repository at this point in the history
airflow cd
  • Loading branch information
Dorianteffo committed Mar 20, 2024
2 parents b3a843e + 537c00d commit 601f9ef
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
12 changes: 10 additions & 2 deletions airflow/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,16 @@ FROM apache/airflow:2.8.3
COPY requirements.txt /

RUN pip install apache-airflow==${AIRFLOW_VERSION} astronomer-cosmos
RUN virtualenv /dbt_venv
RUN /dbt_venv/bin/pip install dbt-snowflake

# Install virtualenv
RUN pip install virtualenv

# Create a writable directory for the virtual environment
RUN mkdir -p /opt/airflow/dbt_venv

# Create the virtual environment using virtualenv
RUN virtualenv /opt/airflow/dbt_venv
RUN /opt/airflow/dbt_venv/bin/pip install dbt-snowflake


# RUN python -m venv dbt_venv && source dbt_venv/bin/activate && \
Expand Down
1 change: 1 addition & 0 deletions airflow/dags/cosmos_dbt_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
),
)


profile_config_prod = ProfileConfig(
profile_name="modern_warehouse",
target_name="prod",
Expand Down

0 comments on commit 601f9ef

Please sign in to comment.