dev: make devcontainer setup plugin agnostic

This commit is contained in:
Jose Diaz-Gonzalez
2021-09-12 02:39:17 -04:00
parent ffddb96ec4
commit 66996bced9
3 changed files with 37 additions and 6 deletions

View File

@@ -3,12 +3,14 @@
"dockerfile": "Dockerfile",
"context": ".."
},
"runArgs": ["--init"],
"containerEnv": {
"SERVICE_HOST_ROOT": "${localWorkspaceFolder}/tmp/data"
},
"initializeCommand": ["mkdir", "-p", "tmp/data"],
"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"
"source=${localWorkspaceFolder}/tmp/data/,target=/var/lib/dokku/services/,type=bind"
],
"containerEnv": {
"MONGO_HOST_ROOT": "${localWorkspaceFolder}/tmp/data"
}
"overrideCommand": false,
"runArgs": ["--init"]
}