Skip to content

Commit

Permalink
Update devcontainer config
Browse files Browse the repository at this point in the history
Signed-off-by: Wei-Chun, Chang <[email protected]>
  • Loading branch information
wcchang1115 committed Jun 19, 2024
1 parent cffee59 commit 89c8bca
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 22 deletions.
3 changes: 3 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM mcr.microsoft.com/vscode/devcontainers/python:3.11

RUN pip install dbt-duckdb~=1.7.0 recce
30 changes: 8 additions & 22 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,11 @@
{
"name": "Recce Cloud",
"image": "infuseai/dev-container-base-image:latest",
"containerEnv": {
"RECCE_CI_WORKFLOW_NAME": ".github/workflows/recce_ci.yml", // Path to the Recce CI workflow file
"DEPENDENCIES_FILE": "requirements.txt", // Path to the python dependencies file
"POST_INSTALL_DEPENDENCIES_COMMAND": "pip install gradio", // Command to install python dependencies
"PRE_LAUNCH_RECCE_SERVER_COMMAND": "cp .recce/recce-state-file/jaffle_shop.duckdb ."
"build": {
"dockerfile": "Dockerfile"
},
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
}
}
},
"forwardPorts": [ 8000 ],
"portsAttributes": {
"8000": {
"label": "Recce Server",
"onAutoForward": "openBrowser"
}
},
"postStartCommand": "post_start_command"
}
"features": {
"ghcr.io/devcontainers/features/github-cli:1": {}
},
"postCreateCommand": "gh repo set-default DataRecce/jaffle_shop_duckdb && run_id=$(gh run list --workflow \"Jaffle Shop Recce CI\" --status success --limit 1 --json databaseId --jq '.[0].databaseId') && gh run download $run_id -n duckdb",
"postStartCommand": "recce server --cloud --review"
}

0 comments on commit 89c8bca

Please sign in to comment.