-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdevcontainer.json
More file actions
48 lines (48 loc) · 1.71 KB
/
devcontainer.json
File metadata and controls
48 lines (48 loc) · 1.71 KB
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
41
42
43
44
45
46
47
48
{
"name": "xac",
"build": {
"dockerfile": "./Dockerfile",
"context": "."
},
"postCreateCommand": "bash -i ./scripts/postCreateCommand.sh",
// use ubCode environment variables as an alternavtive too mounting in the .ubcode folder
"containerEnv": {
"UBCODE_LICENSE_KEY": "${localEnv:UBCODE_LICENSE_KEY}",
"UBCODE_LICENSE_USER": "${localEnv:UBCODE_LICENSE_USER}"
},
"mounts": [
//"source=${localEnv:HOME}/.cache,target=/home/vscode/.cache,type=bind,consistency=cached",
//"source=${localEnv:HOME}/.ssh,target=/home/vscode/.ssh,type=bind,consistency=cached",
//"source=${localEnv:HOME}/.netrc,target=/home/vscode/.netrc,type=bind,consistency=cached",
"source=${localEnv:HOME}/.docker,target=/home/vscode/.docker,type=bind,consistency=cached",
//"source=${localEnv:HOME}/.ubcode,target=/home/vscode/.config/ubcode,type=bind,consistency=cached",
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind"
],
"customizations": {
"vscode": {
"settings": {},
"extensions": [
"useblocks.ubcode",
"ms-python.python"
]
},
"settings": {
"terminal.integrated.shell.linux": "bash",
"terminal.integrated.profiles.linux": {
"bash (container default)": {
"path": "/usr/bin/bash",
"overrideName": true
}
}
}
},
"remoteUser": "vscode",
"runArgs": [
"--shm-size=2gb",
"--network=host",
"--cap-add=SYS_PTRACE",
"--security-opt",
"seccomp=unconfined",
"--privileged"
]
}