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