From 15fb0a8079a0265a8fa0697b597c3ba941a68ebe Mon Sep 17 00:00:00 2001 From: "Kent (Chia-Hao), Hsu" Date: Wed, 1 May 2024 08:11:33 +0800 Subject: [PATCH] fix: update devcontainer postCreateCommand (#703) add postCreateCommand script and run it in devcontainer.json Signed-off-by: KentHsu Co-authored-by: Bernd Verst --- .devcontainer/devcontainer.json | 2 +- .devcontainer/postCreateCommand.sh | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100755 .devcontainer/postCreateCommand.sh diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index c7450aae8..f03d84153 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -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": [], diff --git a/.devcontainer/postCreateCommand.sh b/.devcontainer/postCreateCommand.sh new file mode 100755 index 000000000..e2ee4587d --- /dev/null +++ b/.devcontainer/postCreateCommand.sh @@ -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