Skip to content

Commit

Permalink
fix: update devcontainer postCreateCommand (#703)
Browse files Browse the repository at this point in the history
add postCreateCommand script and run it in devcontainer.json

Signed-off-by: KentHsu <chiahaohsu9@gmail.com>
Co-authored-by: Bernd Verst <github@bernd.dev>
  • Loading branch information
KentHsu and berndverst authored May 1, 2024
1 parent de8b454 commit 15fb0a8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind",
],

"postCreateCommand": "pip install -r ./dev-requirements.txt",
"postCreateCommand": ".devcontainer/postCreateCommand.sh",

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
Expand Down
8 changes: 8 additions & 0 deletions .devcontainer/postCreateCommand.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Install a project in a editable mode
pip3 install -e .
pip3 install -e ./ext/dapr-ext-grpc/
pip3 install -e ./ext/dapr-ext-fastapi/
pip3 install -e ./ext/dapr-ext-workflow/

# Install required packages
pip3 install -r ./dev-requirements.txt

0 comments on commit 15fb0a8

Please sign in to comment.