diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index c2e23883a2..cf713a4a2d 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -8,6 +8,8 @@ RUN apt-get update && \ ln -sf /usr/local/bin/node /usr/bin/node RUN apt-get install -y netcat-traditional pcregrep +RUN apt-get install -y redis-server && \ + usermod -aG redis www-data WORKDIR /workspace diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index ee566d1ccb..cdd2e799e6 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -31,7 +31,7 @@ } }, "postCreateCommand": "./tools/install.sh --python python3.11 && ./tools/migrate.sh && ./tools/loadtestdata.sh", - "postStartCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}", + "postStartCommand": "git config --global --add safe.directory ${containerWorkspaceFolder} && redis-server --daemonize yes --unixsocket /workspace/redis-server.sock --unixsocketperm 770", "remoteEnv": { "DJANGO_SETTINGS_MODULE": "integreat_cms.core.settings", "INTEGREAT_CMS_DEBUG": "1",