Skip to content

Commit

Permalink
Merge pull request #24 from Dorianteffo/dev_dorian
Browse files Browse the repository at this point in the history
dockerfile airflow
  • Loading branch information
Dorianteffo committed Mar 20, 2024
2 parents 967f8f4 + 81f4bce commit 855b42a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions airflow/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ COPY requirements.txt /

RUN pip install apache-airflow==${AIRFLOW_VERSION} astronomer-cosmos

RUN python -m venv dbt_venv && source dbt_venv/bin/activate && \
# Create the virtual environment using virtualenv
RUN python -m venv dbt_venv

# Activate the virtual environment
RUN source dbt_venv/bin/activate && \
pip install --upgrade pip setuptools && \
pip install --no-cache-dir dbt-snowflake && deactivate
pip install --no-cache-dir --ignore-installed dbt-snowflake && \
deactivate
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 855b42a

Please sign in to comment.