Skip to content

Commit

Permalink
Add devcontainer
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 dc790ed commit d153df7
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
"DBT_GOOGLE_DATASET": "oso_playground",
"DBT_GOOGLE_DEV_DATASET": "oso_playground_dev",
"DBT_GOOGLE_KEYFILE": "/home/vscode/.config/gcloud/google-service-account.json",
"RECCE_CI_WORKFLOW_NAME": "OSO Recce CI",
"RECCE_DAILY_CI_WORKFLOW_NAME": "OSO Recce Staging CI"
"DEPENDENCIES_SHELL_COMMAND": "pipx install poetry && poetry install"
},
"customizations": {
"vscode": {
Expand All @@ -26,7 +25,7 @@
"onAutoForward": "openBrowser"
}
},
// "postStartCommand": "echo 'Running the Post Start Task!'; bash .devcontainer/post_start_command.sh"
"postStartCommand": "echo 'Running the Post Start Task!'"
"postStartCommand": "echo 'Running the Post Start Task!'; bash .devcontainer/post_start_command.sh"
// "postStartCommand": "echo 'Running the Post Start Task!'"

}
28 changes: 28 additions & 0 deletions .devcontainer/no-base/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "Recce CodeSpace (No base)",
"image": "mcr.microsoft.com/vscode/devcontainers/python:3.11",
"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",
},
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.shell.linux": "/bin/bash",
"python.terminal.activateEnvironment": true
}
},
"extensions": []
},
"forwardPorts": [8000],
"portsAttributes": {
"8000": {
"label": "Recce Server",
"onAutoForward": "openBrowser"
}
},
"postCreateCommand": "pipx install poetry && poetry install && poetry run pip install recce",
"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 d153df7

Please sign in to comment.