From cccaf61d53a33354d0a6c1d5e30d68b21a273c77 Mon Sep 17 00:00:00 2001 From: Fabiano Weimar Date: Sat, 30 Nov 2024 12:20:28 -0300 Subject: [PATCH] Add plone build to the dev container. --- .devcontainer/devcontainer-build.sh | 5 +++++ .devcontainer/devcontainer.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100755 .devcontainer/devcontainer-build.sh 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" }