Skip to content

Commit

Permalink
feat: install dbt utils package
Browse files Browse the repository at this point in the history
  • Loading branch information
vncsna committed Oct 23, 2023
1 parent 6975875 commit dc3f561
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 34 deletions.
16 changes: 10 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
**/test.py
target/
dbt_modules/
logs/
# Generic
.vscode/
.env
.venv
.DS_store
pyproject.toml
logs/
# dbt
target/
dbt_modules/
dbt_packages/
# Python
**/test.py
__pycache__/

pyproject.toml
#
models/*/tmp/
models/*/input/
models/*/output/
Expand Down
41 changes: 15 additions & 26 deletions .kubernetes/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,13 @@ spec:
- name: credentials-prod
mountPath: /credentials-prod/
readOnly: true
command:
- "dbt-rpc"
- "serve"
- "--profiles-dir"
- "."
- "--profile"
- "default"
- "--target"
- "dev"
- "--host"
- "0.0.0.0"
- "--port"
- "8580"
command:
- "/bin/sh"
- "-c"
args:
- >
dbt deps;
dbt-rpc serve --profiles-dir . --profile default --target dev --host 0.0.0.0 --port 8580
volumes:
- name: credentials-dev
secret:
Expand Down Expand Up @@ -84,19 +78,14 @@ spec:
- name: credentials-prod
mountPath: /credentials-prod/
readOnly: true
command:
- "dbt-rpc"
- "serve"
- "--profiles-dir"
- "."
- "--profile"
- "default"
- "--target"
- "prod"
- "--host"
- "0.0.0.0"
- "--port"
- "8580"

command:
- "/bin/sh"
- "-c"
args:
- >
dbt deps;
dbt-rpc serve --profiles-dir . --profile default --target prod --host 0.0.0.0 --port 8580
volumes:
- name: credentials-dev
secret:
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ RUN pip install --no-cache-dir -r requirements.txt && rm requirements.txt
WORKDIR /dbt
COPY . .

# Run dbt rpc
CMD ["dbt-rpc", "serve", "--profiles-dir", ".", "--host", "0.0.0.0", "--port", "8580"]
# Run dbt deps and dbt rpc
CMD ["/dbt/start-server.sh"]
3 changes: 3 additions & 0 deletions packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
packages:
- package: dbt-labs/dbt_utils
version: 1.1.1
4 changes: 4 additions & 0 deletions start-server.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh

dbt deps
dbt-rpc serve --profiles-dir "." --host "0.0.0.0" --port "8580"

0 comments on commit dc3f561

Please sign in to comment.