diff --git a/.devcontainer/devcontainer-build.sh b/.devcontainer/devcontainer-build.sh new file mode 100755 index 0000000000..e0755c26c3 --- /dev/null +++ b/.devcontainer/devcontainer-build.sh @@ -0,0 +1,5 @@ +#/bin/sh +`which python3.12` -m venv . +./bin/pip install -r requirements.txt +./bin/buildout +echo "run plone with: ./bin/instance fg" diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index dfe708c4a9..11368063c7 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -14,5 +14,5 @@ }, // Use 'postCreateCommand' to run commands after the container is created. - "postCreateCommand": "pip3 install --user -r requirements.txt" + "postCreateCommand": "./.devcontainer/devcontainer-build.sh" }