{
  "name": "Yocto Dev Container",

  "build": {
    "dockerfile": "Dockerfile"
  },

  "remoteUser": "yoctouser",

  "workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/${localWorkspaceFolderBasename},type=bind,consistency=delegated",
  "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",

  "mounts": [
    "source=yocto-shared-<YOCTO_VERSION>,target=/yocto-shared,type=volume"
  ],

  "containerEnv": {
    "DL_DIR": "/yocto-shared/downloads",
    "SSTATE_DIR": "/yocto-shared/sstate-cache",
    "BB_ENV_PASSTHROUGH_ADDITIONS": "DL_DIR SSTATE_DIR"
  },

  "customizations": {
    "vscode": {
      "extensions": [
        "ms-vscode.cpptools-extension-pack",
        "ms-vscode.cmake-tools",
        "davidanson.vscode-markdownlint",
        "kweihmann.oelint-vscode",
        "ms-python.python",
        "yocto-project.yocto-bitbake",
        "mads-hartmann.bash-ide-vscode"
      ],
      "settings": {
        "files.watcherExclude": {
          "**/build*/tmp": true
        },
        "search.exclude": {
          "**/build*/tmp": true
        },
        "C_Cpp.files.exclude": {
          "**/build*/tmp  ": true
        },
        "python.analysis.exclude": [
          "**/node_modules",
          "**/__pycache__",
          "**/.*",
          "**/build*/tmp"
        ],
        "git.repositoryScanIgnoredFolders": [
          "**/build*/tmp"
        ],
  	    "git.repositoryScanMaxDepth": 3,
        "bitbake.pathToBitbakeFolder": "${workspaceFolder}/layers/poky/bitbake",
        "bitbake.pathToEnvScript": "${workspaceFolder}/setup-environment",
        "bitbake.pathToBuildFolder": "${workspaceFolder}/build-karo"
      }
    }
  }
}