github.com/thanos-io/thanos@v0.32.5/.devcontainer/devcontainer.json (about)

     1  // For more details, see https://aka.ms/devcontainer.json.
     2  {
     3    "name": "Codespaces for Thanos",
     4    "build": {
     5      "context": "..",
     6      "dockerfile": "Dockerfile"
     7    },
     8  
     9    "workspaceFolder": "/go/src/github.com/thanos-io/thanos",
    10    "workspaceMount": "source=${localWorkspaceFolder},target=/go/src/github.com/thanos-io/thanos,type=bind,consistency=cached",
    11  
    12    // Features to add to the dev container. More info: https://containers.dev/features.
    13    "features": {
    14      "ghcr.io/devcontainers/features/docker-in-docker:2": {},
    15      "ghcr.io/devcontainers/features/node:1": {},
    16      "ghcr.io/devcontainers/features/kubectl-helm-minikube:1": {}
    17    },
    18  
    19    "onCreateCommand": "make build",
    20    "postAttachCommand": {
    21      "Run quickstart": "bash scripts/quickstart.sh"
    22    },
    23  
    24    // Use 'forwardPorts' to make a list of ports inside the container available locally.
    25    "forwardPorts": [
    26      1313,
    27      9090,
    28      9091,
    29      9092,
    30      10904,
    31      10914
    32    ],
    33    "portsAttributes": {
    34      "1313": {
    35        "label": "Website"
    36      },
    37      "9090": {
    38        "label": "Prometheus Instance 1"
    39      },
    40      "9091": {
    41        "label": "Prometheus Instance 2"
    42      },
    43      "9092": {
    44        "label": "Prometheus Instance 3"
    45      },
    46      "10904": {
    47        "label": "Thanos Query 1"
    48      },
    49      "10914": {
    50        "label": "Thanos Query 2"
    51      }
    52    },
    53  
    54    // Configure tool-specific properties.
    55    "customizations": {
    56      "vscode": {
    57        "extensions": [
    58          "ms-azuretools.vscode-docker",
    59          "ms-kubernetes-tools.vscode-kubernetes-tools",
    60          "davidanson.vscode-markdownlint",
    61          "timonwong.shellcheck",
    62          "docsmsft.docs-yaml",
    63          "Grafana.vscode-jsonnet",
    64          "codezombiech.gitignore"
    65        ]
    66      }
    67    }
    68  }