mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
## Summary When switching branches in the devcontainer, if the configuration is different from the previous branch or missing entirely, the container can easily get in a bad state or trigger rebuilds. We want the devcontainer to be seamless between branches.
47 lines
1.1 KiB
JSON
47 lines
1.1 KiB
JSON
{
|
|
"name": "Kibana",
|
|
"build": {
|
|
"dockerfile": "Dockerfile",
|
|
"context": "..",
|
|
"args": {
|
|
"KBN_DIR": "${containerWorkspaceFolder}"
|
|
}
|
|
},
|
|
"customizations": {
|
|
"vscode": {
|
|
"extensions": [
|
|
"dbaeumer.vscode-eslint",
|
|
"ms-azuretools.vscode-docker",
|
|
"editorconfig.editorconfig",
|
|
"timonwong.shellcheck",
|
|
"eamodio.gitlens",
|
|
"github.vscode-pull-request-github"
|
|
]
|
|
}
|
|
},
|
|
"forwardPorts": [
|
|
9200,
|
|
5601,
|
|
9229,
|
|
9230,
|
|
9231
|
|
],
|
|
"postStartCommand": "${containerWorkspaceFolder}/.devcontainer/scripts/post_start.sh",
|
|
"remoteUser": "vscode",
|
|
"containerEnv": {
|
|
"KBN_DIR": "${containerWorkspaceFolder}"
|
|
},
|
|
"features": {
|
|
"ghcr.io/devcontainers/features/docker-in-docker:2": {
|
|
"version": "latest",
|
|
"dockerDashComposeVersion": "latest"
|
|
},
|
|
"ghcr.io/devcontainers/features/github-cli:1": {
|
|
"installDirectlyFromGitHubRelease": true,
|
|
"version": "latest"
|
|
},
|
|
"ghcr.io/kreemer/features/chrometesting:1": {
|
|
"version": "stable"
|
|
}
|
|
}
|
|
}
|