From 5b0dd26c7368371b03a39205037dd2fd2cee1ba2 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 12 Sep 2021 00:53:13 -0400 Subject: [PATCH] dev: mount the service directory from the host to ensure tests can pass inside of a docker container --- .devcontainer/devcontainer.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index ad65693..a87e036 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -4,5 +4,11 @@ "context": ".." }, "runArgs": ["--init"], - "mounts": [ "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" ] + "mounts": [ + "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind", + "source=${localWorkspaceFolder}/tmp/data/,target=/var/lib/dokku/services/redis/,type=bind" + ], + "containerEnv": { + "REDIS_HOST_ROOT": "${localWorkspaceFolder}/tmp/data" + } }