{
    "name": "couchdb-dev",
    "build": {
        "dockerfile": "Dockerfile",
        "context": "..",
        "args": {
            // Useful choices include:
            // apache/couchdbci-debian:bullseye-erlang-26.1.2
            // apache/couchdbci-debian:bullseye-erlang-25.3.2.7
            // apache/couchdbci-debian:bookworm-erlang-24.3.4.14
            //
            "COUCHDB_IMAGE": "apache/couchdbci-debian:trixie-erlang-26.2.5.16"
        }
    },

    // We are using a volume mount to improve performance
    // https://code.visualstudio.com/remote/advancedcontainers/improve-performance#_use-a-named-volume-for-your-entire-source-tree
    //
    // and eliminate test flake.
    // https://github.com/apache/couchdb/discussions/4145
    //
    // Your code will not be bound to the host OS folder you started this project from.
    // Your code will live inside the volume created for the container under /workspace.
    "workspaceMount": "target=/workspaces/couchdb,type=volume",
    "workspaceFolder": "/workspaces/couchdb",
    "postCreateCommand": "./configure --with-nouveau --with-clouseau && make",

    "customizations": {
        "vscode": {
            "extensions": [
                "erlang-language-platform.erlang-language-platform",
                "redhat.java"
            ]
        }
    }
}
