-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from K12-Analytics-Engineering/9-upgrade-to-db…
…t-18 upgrade dbt
- Loading branch information
Showing
3 changed files
with
722 additions
and
576 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": [], | ||
} | ||
|
Oops, something went wrong.