1+ // For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+ // README at: https://github.com/devcontainers/templates/tree/main/src/rust
3+ {
4+ "name" : " up-transport-iceoryx2-rust" ,
5+ "build" : {
6+ "dockerfile" : " Dockerfile"
7+ },
8+ "runArgs" : [
9+ " --privileged"
10+ ],
11+ "containerEnv" : {
12+ "WORKSPACE_FOLDER" : " ${containerWorkspaceFolder}"
13+ },
14+ "mounts" : [
15+ {
16+ // This is a workaround which is again necessary on MacOS 14.0, it looks like this bug is back:
17+ // https://github.com/microsoft/vscode-dev-containers/issues/1487#issuecomment-1143907307
18+ "type" : " volume" ,
19+ "source" : " rust-volume" ,
20+ "target" : " /rust-volume"
21+ },
22+ {
23+ "type" : " bind" ,
24+ "source" : " ${localWorkspaceFolder}/.devcontainer/scripts" ,
25+ "target" : " /home/vscode/scripts"
26+ },
27+ {
28+ "type" : " bind" ,
29+ "source" : " ${localEnv:HOME}${localEnv:USERPROFILE}/.ssh" ,
30+ "target" : " /home/vscode/.ssh"
31+ }
32+ ],
33+ "postCreateCommand" : " .devcontainer/scripts/post-create.sh --workspace-folder='${containerWorkspaceFolder}'" ,
34+ "workspaceMount" : " source=${localWorkspaceFolder},target=/workspace/${localWorkspaceFolderBasename}/,type=bind" ,
35+ "workspaceFolder" : " /workspace/${localWorkspaceFolderBasename}/" ,
36+ "remoteUser" : " vscode" ,
37+ "customizations" : {
38+ "vscode" : {
39+ // Set *default* container specific settings.json values on container create.
40+ "settings" : {
41+ "lldb.executable" : " /usr/bin/lldb" ,
42+ // VS Code don't watch files under ./target
43+ "files.watcherExclude" : {
44+ "**/target/**" : true
45+ },
46+ "rust-analyzer.check.command" : " clippy" ,
47+ "rust-analyzer.checkOnSave" : true ,
48+ "coverage-gutters.coverageBaseDir" : " **" ,
49+ "coverage-gutters.coverageFileNames" : [
50+ " target/tarpaulin/lcov.info"
51+ ]
52+ },
53+ // Add the IDs of extensions you want installed when the container is created.
54+ "extensions" : [
55+ " asciidoctor.asciidoctor-vscode" ,
56+ " bianxianyang.htmlplay" ,
57+ " bierner.markdown-mermaid" ,
58+ " bierner.markdown-preview-github-styles" ,
59+ " davidanson.vscode-markdownlint" ,
60+ " gxl.git-graph-3" ,
61+ " hediet.vscode-drawio" ,
62+ " linusu.auto-dark-mode" ,
63+ " ms-azuretools.vscode-containers" ,
64+ " rust-lang.rust-analyzer" ,
65+ " streetsidesoftware.code-spell-checker" ,
66+ " tamasfe.even-better-toml" ,
67+ " timonwong.shellcheck" ,
68+ " vadimcn.vscode-lldb" ,
69+ " yzhang.markdown-all-in-one"
70+ ]
71+ }
72+ }
73+ }
0 commit comments