Skip to content

Commit

Permalink
Merge pull request #10 from K12-Analytics-Engineering/9-upgrade-to-db…
Browse files Browse the repository at this point in the history
…t-18

upgrade dbt
  • Loading branch information
zstachniak authored Jul 29, 2024
2 parents ba549d3 + f72b400 commit 41fac1f
Show file tree
Hide file tree
Showing 3 changed files with 722 additions and 576 deletions.
54 changes: 54 additions & 0 deletions .devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/python
{
"name": "dbt Development",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye",

// Dev Containers use the /workspaces path
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",

// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/dhoeric/features/google-cloud-cli:1": {},
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers-contrib/features/poetry:2": {}
},

// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": [
"innoverio.vscode-dbt-power-user",
"dorzey.vscode-sqlfluff"
],
"settings": {
"files.associations": {
"*.yaml": "jinja-yaml",
"*.yml": "jinja-yaml",
"*.sql": "jinja-sql",
"*.md": "jinja-md",
"**/target/**": ""
},
"python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python",
"python.terminal.activateEnvInCurrentTerminal": true,
"ruff.interpreter": ["${workspaceFolder}/.venv/bin/python"],
"sqlfluff.executablePath": "${workspaceFolder}/.venv/bin/sqlfluff",
"sqlfluff.config": ".sqlfluff",
"sqlfluff.linter.run": "onSave",
"sqlfluff.dialect": "bigquery"
}
}
},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "poetry config virtualenvs.in-project true && poetry install --no-root",
"postStartCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}"

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
}

Loading

0 comments on commit 41fac1f

Please sign in to comment.