Skip to content

Commit

Permalink
fix: add missing packages.yml to dbt containers (#13)
Browse files Browse the repository at this point in the history
Co-authored-by: Lugadur <[email protected]>
  • Loading branch information
diegoquintanav and Lugadur authored Aug 11, 2023
1 parent f9461b8 commit 0199954
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ dbt_docs.serve: ## serve the dbt-docs documentation
@docker compose -f $(app_compose_file) --env-file $(app_compose_env_file) up dbt-docs

dbt_docs.build-image: ## build the dbt-docs image
@docker compose -f $(app_compose_file) --env-file $(app_compose_env_file) build dbt-docs
@docker compose -f $(app_compose_file) --env-file $(app_compose_env_file) build dbt-docs --progress plain

dbt_docs.push-image: ## push the dbt-docs image with tag: latest
@docker compose -f $(app_compose_file) --env-file $(app_compose_env_file) push dbt-docs
Expand Down
7 changes: 4 additions & 3 deletions containers/app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ COPY ./${DBT_PROJECT_DIR}/config/profiles.yml /home/${USERNAME}/.dbt/profiles.ym

# install deps
RUN mkdir -p ${WORKDIR}/${DBT_PROJECT_DIR}/
COPY ./${DBT_PROJECT_DIR}/dbt_project.yml ${WORKDIR}/${DBT_PROJECT_DIR}/
COPY ./${DBT_PROJECT_DIR}/dbt_project.yml ./${DBT_PROJECT_DIR}/packages.yml ${WORKDIR}/${DBT_PROJECT_DIR}/
RUN dbt deps --project-dir ${WORKDIR}/${DBT_PROJECT_DIR}/ --profiles-dir /home/${USERNAME}/.dbt
ENTRYPOINT [ "python" ]
CMD [ "--version" ]
Expand Down Expand Up @@ -194,7 +194,7 @@ COPY ./${DBT_PROJECT_DIR}/config/profiles.yml /home/${USERNAME}/.dbt/profiles.ym

# install dbt dependencies
RUN mkdir -p ${WORKDIR}/${DBT_PROJECT_DIR}/
COPY ./${DBT_PROJECT_DIR}/dbt_project.yml ${WORKDIR}/${DBT_PROJECT_DIR}/
COPY ./${DBT_PROJECT_DIR}/dbt_project.yml ./${DBT_PROJECT_DIR}/packages.yml ${WORKDIR}/${DBT_PROJECT_DIR}/
RUN dbt deps --project-dir ${WORKDIR}/${DBT_PROJECT_DIR}/ --profiles-dir /home/${USERNAME}/.dbt


Expand Down Expand Up @@ -252,7 +252,8 @@ COPY ./${DBT_PROJECT_DIR}/config/profiles.yml /home/${USERNAME}/.dbt/profiles.ym

# install deps
RUN mkdir -p ${WORKDIR}/${DBT_PROJECT_DIR}/
COPY ./${DBT_PROJECT_DIR}/dbt_project.yml ${WORKDIR}/${DBT_PROJECT_DIR}/

COPY ./${DBT_PROJECT_DIR}/dbt_project.yml ./${DBT_PROJECT_DIR}/packages.yml ${WORKDIR}/${DBT_PROJECT_DIR}/
RUN dbt deps --project-dir ${WORKDIR}/${DBT_PROJECT_DIR}/ --profiles-dir /home/${USERNAME}/.dbt

EXPOSE 80

0 comments on commit 0199954

Please sign in to comment.