|
1 | 1 | { |
2 | 2 | "name": "Apache Iggy", |
| 3 | + "hostRequirements": { |
| 4 | + "cpus": 4, |
| 5 | + "memory": "16gb", |
| 6 | + "storage": "32gb" |
| 7 | + }, |
3 | 8 | "build": { |
4 | 9 | "dockerfile": "Dockerfile", |
5 | 10 | "context": "..", |
|
11 | 16 | "remoteUser": "vscode", |
12 | 17 | "workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/iggy,type=bind,consistency=cached", |
13 | 18 | "workspaceFolder": "/workspaces/iggy", |
14 | | - "runArgs": ["--init"], |
| 19 | + "runArgs": [ |
| 20 | + "--init", |
| 21 | + "--security-opt", "seccomp=unconfined", |
| 22 | + "--ulimit", "memlock=-1:-1", |
| 23 | + "--cap-add=SYS_NICE" |
| 24 | + ], |
15 | 25 | "mounts": [ |
16 | 26 | "type=volume,source=iggy-cargo-registry,target=/usr/local/cargo/registry", |
17 | 27 | "type=volume,source=iggy-target,target=/workspaces/iggy/target" |
18 | 28 | ], |
19 | 29 | "containerEnv": { |
| 30 | + "CARGO_BUILD_JOBS": "4", |
20 | 31 | "IGGY_HTTP_ADDRESS": "0.0.0.0:3000", |
21 | 32 | "IGGY_QUIC_ADDRESS": "0.0.0.0:8080", |
22 | 33 | "IGGY_TCP_ADDRESS": "0.0.0.0:8090", |
|
41 | 52 | "ms-azuretools.vscode-docker" |
42 | 53 | ], |
43 | 54 | "settings": { |
44 | | - "rust-analyzer.check.command": "clippy", |
45 | | - "rust-analyzer.cargo.features": "all", |
| 55 | + "rust-analyzer.cargo.buildScripts.enable": true, |
| 56 | + "rust-analyzer.procMacro.enable": true, |
| 57 | + "rust-analyzer.numThreads": 4, |
| 58 | + "rust-analyzer.cargo.extraEnv": { "CARGO_BUILD_JOBS": "4" }, |
46 | 59 | "editor.formatOnSave": true, |
47 | 60 | "[rust]": { |
48 | 61 | "editor.defaultFormatter": "rust-lang.rust-analyzer" |
|
0 commit comments