{
    "name": "nrf-sdk-container",
    "image": "nordicplayground/nrfconnect-sdk:v2.7-branch",
    "runArgs": [
        "--privileged" // allows access to tty* devices
    ],
    "customizations": {
        "vscode": {
            "settings": {
                // "terminal.integrated.shell.linux": "nrfutil toolchain-manager launch /bin/bash -- /root/entry.sh /bin/bash",
                "nrf-connect.topdir": "/workdir/workspace",
                "nrf-connect.toolchainManager.installDirectory": "/root/ncs",
                "nrf-connect.deviceProvider": "nrfjprog"
            },
            "extensions": [
                // core
                "ms-vscode.cmake-tools",
                "ms-azuretools.vscode-docker",
                // nordic
                "nordic-semiconductor.nrf-connect",
                "nordic-semiconductor.nrf-devicetree",
                "nordic-semiconductor.nrf-kconfig",
                "nordic-semiconductor.nrf-terminal",
                "nordic-semiconductor.nrf-connect-extension-pack"
            ]
        }
    },
    "userEnvProbe": "loginInteractiveShell",
    "workspaceFolder": "/workdir",
    "mounts": [
        "source=${localWorkspaceFolder},target=/workdir,type=bind",
        "source=${localWorkspaceFolderBasename}-build,target=${containerWorkspaceFolder}/app/build,type=volume",
        "source=${localWorkspaceFolderBasename}-sdk-srcs,target=${containerWorkspaceFolder}/deps,type=volume"
    ],
    "postCreateCommand": "cd /workdir; nrfutil toolchain-manager launch /bin/bash -- -c \"west update\""
}