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 new file mode 100644 index 0000000000..11368063c7 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,18 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/python +{ + "name": "Plone 6.1", + "image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye", + + // Use 'portsAttributes' to set default properties for specific forwarded ports. + // More info: https://containers.dev/implementors/json_reference/#port-attributes + "portsAttributes": { + "8080": { + "label": "Plone Backend", + "onAutoForward": "notify" + } + }, + + // Use 'postCreateCommand' to run commands after the container is created. + "postCreateCommand": "./.devcontainer/devcontainer-build.sh" +}