Skip to content

Commit

Permalink
refactor(docker): simplify DBT dependency install in orchestrate dock…
Browse files Browse the repository at this point in the history
…erfile

Trying to build with the dagster-dbt CLI was failing. This reverts back to the known
good method.
  • Loading branch information
blarghmatey committed Feb 25, 2025
1 parent ff25731 commit 2ec66ed
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dockerfiles/orchestrate/Dockerfile.global
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ USER dagster
EXPOSE 3000
WORKDIR /opt/dagster/code
RUN uv sync --locked --no-dev

RUN --mount=type=secret,id=dbt_trino_username,env=DBT_TRINO_USERNAME \
--mount=type=secret,id=dbt_trino_password,env=DBT_TRINO_PASSWORD \
DAGSTER_ENVIRONMENT=production \
uv run --no-dev dagster-dbt project prepare-and-package --file /opt/dagster/code/src/ol_orchestrate/assets/lakehouse/dbt.py
cd /opt/dbt && \
uv run --no-dev --directory /opt/dagster/code dbt deps --project-dir /opt/dbt && \
uv run --no-dev --directory /opt/dagster/code dbt ls --project-dir /opt/dbt --profiles-dir /opt/dbt --target production

# ENTRYPOINTS
# Dagster Daemon
Expand Down

0 comments on commit 2ec66ed

Please sign in to comment.