// ********** Please don't edit this file!
// ********** It has been generated automatically by dae_devops version 0.5.4.dev0+g1fb30ef.d20230527.
// ********** For repository_name dls-bxflow

// For format details, see https://containers.dev/implementors/json_reference/
{
    "name": "Python 3 Developer Container",
    "build": {
        "dockerfile": "Dockerfile",
        "target": "build",
        // Only upgrade pip, we will install the project below
        "args": {
            "PIP_OPTIONS": "--upgrade pip"
        }
    },
    "remoteEnv": {
        "DISPLAY": "${localEnv:DISPLAY}"
    },
    // Add the URLs of features you want added when the container is built.
    "features": {
        "ghcr.io/devcontainers/features/common-utils:1": {
            "username": "none",
            "upgradePackages": false
        }
    },
    // Set *default* container specific settings.json values on container create.
    "settings": {
        "python.defaultInterpreterPath": "/venv/bin/python"
    },
    "customizations": {
        "vscode": {
            // Add the IDs of extensions you want installed when the container is created.
            "extensions": [
                "ms-python.python",
                "tamasfe.even-better-toml",
                "redhat.vscode-yaml",
                "ryanluker.vscode-coverage-gutters"
            ]
        }
    },
    // Make sure the files we are mapping into the container exist on the host
    "initializeCommand": "bash -c 'for i in $HOME/.inputrc; do [ -f $i ] || touch $i; done'",
    "runArgs": [
        "--net=host",
        "--security-opt=label=type:container_runtime_t"
    ],
    "mounts": [
        "source=${localEnv:HOME}/.ssh,target=/root/.ssh,type=bind",
        "source=${localEnv:HOME}/.inputrc,target=/root/.inputrc,type=bind",
        // map in home directory - not strictly necessary but useful
        "source=${localEnv:HOME},target=${localEnv:HOME},type=bind,consistency=cached"
    ],
    // make the workspace folder the same inside and outside of the container
    "workspaceMount": "source=${localWorkspaceFolder},target=${localWorkspaceFolder},type=bind",
    "workspaceFolder": "${localWorkspaceFolder}",
    // After the container is created, install the python project in editable form
    "postCreateCommand": "pip install -e .[dev]"
}

// dae_devops_fingerprint 8ee55efb6c475521fa40db01bb2eb177
