dev: mount the service directory from the host to ensure tests can pass inside of a docker container

This commit is contained in:
Jose Diaz-Gonzalez
2021-09-12 00:53:12 -04:00
parent 7a0b20aed6
commit e9891556d9

View File

@@ -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"
}
}