/
devcontainer.json
45 lines (39 loc) · 1.25 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
41
42
43
44
45
{
"name": "kube-dev",
// TODO publish a version of this image to the organization's package registry and then comment
// out the `dockerFile` configuration.
//"image": "ghcr.io/kube-rs/dev:v1",
"dockerFile": "./Dockerfile",
// These extensions are loaded for all users by default.
"extensions": [
"rust-lang.rust-analyzer",
"NathanRidley.autotrim",
"samverschueren.final-newline",
"tamasfe.even-better-toml",
"vadimcn.vscode-lldb",
// "zxh404.vscode-proto3"
],
// Set project-specific VS Code settings here.
"settings": {
// Prevent conflicting versions of the Kubernetes API from being loaded.
"rust-analyzer.cargo.allFeatures": false,
},
// // `make clippy` and `make lint` require the nightly toolchain, so install
// // it as the container is created.
// "postCreateCommand": "rustup toolcahin add nightly && rustup default nightly",
// Configure docker.
"runArgs": [
"--init",
// Use the host network so we can access k3d, etc.
"--net=host",
// For lldb
"--cap-add=SYS_PTRACE",
"--security-opt=seccomp=unconfined"
],
"overrideCommand": false,
"remoteUser": "code",
// Mount the parent host's docker socket into the container.
"mounts": [
"source=/var/run/docker.sock,target=/var/run/docker-host.sock,type=bind"
]
}