From e9891556d9a6e8e3a676db3e787c94c5e310e0c5 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 12 Sep 2021 00:53:12 -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..153ae1a 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/mongo/,type=bind" + ], + "containerEnv": { + "MONGO_HOST_ROOT": "${localWorkspaceFolder}/tmp/data" + } }