Skip to content

Commit

Permalink
Add minimal codespace.json
Browse files Browse the repository at this point in the history
Signed-off-by: popcorny <[email protected]>
  • Loading branch information
popcornylu committed Jun 18, 2024
1 parent 4e2503d commit 31fa446
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .devcontainer/mini/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM mcr.microsoft.com/vscode/devcontainers/python:3.11

COPY . /tmp/oso
RUN cd /tmp/oso && pip install .
RUN pip install recce
14 changes: 14 additions & 0 deletions .devcontainer/mini/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "Recce CodeSpace (Minimal)",
"build": {
"context": "../..",
"dockerfile": "Dockerfile",
},
"containerEnv": {
"DBT_GOOGLE_PROJECT": "infuseai-dev",
"DBT_GOOGLE_DATASET": "oso_playground",
"DBT_GOOGLE_DEV_DATASET": "oso_playground_dev",
"DBT_GOOGLE_KEYFILE": "/home/vscode/.config/gcloud/google-service-account.json",
},
"postStartCommand": "mkdir -p /home/vscode/.config/gcloud && printenv GOOGLE_CLOUD_SERVICE_ACCOUNT_KEY_CONTENT > ${DBT_GOOGLE_KEYFILE} && poetry run recce server --cloud --review"
}

0 comments on commit 31fa446

Please sign in to comment.