-
Notifications
You must be signed in to change notification settings - Fork 72
/
devcontainer.json
40 lines (35 loc) · 1.46 KB
/
devcontainer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.140.1/containers/dotnetcore
{
"name": "iotedgedev",
"build": {
"dockerfile": "Dockerfile",
"context": ".."
},
"runArgs": ["--init", "--privileged"],
"mounts": [
// Keep command history
"source=ostf-bashhistory,target=/commandhistory,type=volume",
// Use docker-in-docker socket
"source=dind-var-lib-docker,target=/var/lib/docker,type=volume"
],
"overrideCommand": false,
"postCreateCommand": "docker image prune -a -f && sudo chown vscode:users -R /home/vscode/Dev && pip install -r requirements_dev.txt && pip install -e .",
// Set *default* container specific settings.json values on container create.
"settings": {
"#terminal.integrated.defaultProfile.linux#": "/bin/bash"
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"ms-python.python",
"ms-azuretools.vscode-docker",
"redhat.vscode-yaml",
"mikestead.dotenv",
"streetsidesoftware.code-spell-checker",
"yzhang.markdown-all-in-one",
"davidanson.vscode-markdownlint"
],
"workspaceMount": "source=${localWorkspaceFolder},target=/home/vscode/Dev,type=bind,consistency=cached",
"workspaceFolder": "/home/vscode/Dev",
"remoteUser": "vscode"
}