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