mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Fix dev container repo path, add limitations docs (#193488)
## Summary - Fixes an issue where the container would not be setup or start properly if the repo wasn't name `kibana` - Adds limitations section to docs
This commit is contained in:
parent
fd149a5ab2
commit
4a53ce9e5c
3 changed files with 12 additions and 3 deletions
|
@ -4,7 +4,6 @@ ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8
|
|||
ENV HOME=/home/vscode
|
||||
ENV NVM_DIR=${HOME}/nvm
|
||||
ENV NVM_VERSION=v0.39.1
|
||||
ENV KBN_DIR=/workspaces/kibana
|
||||
ENV OPENSSL_PATH=${HOME}/openssl
|
||||
# Only specific versions are FIPS certified.
|
||||
ENV OPENSSL_VERSION='3.0.8'
|
||||
|
@ -50,6 +49,7 @@ WORKDIR ${KBN_DIR}
|
|||
# Node and NVM setup
|
||||
COPY .node-version /tmp/
|
||||
|
||||
# Mac will have permissions issues if Node and NVM are installed as root
|
||||
USER vscode
|
||||
|
||||
RUN mkdir -p $NVM_DIR && \
|
||||
|
|
|
@ -23,8 +23,11 @@
|
|||
9230,
|
||||
9231
|
||||
],
|
||||
"postStartCommand": "/workspaces/kibana/.devcontainer/scripts/post_start.sh",
|
||||
"postStartCommand": "${containerWorkspaceFolder}/.devcontainer/scripts/post_start.sh",
|
||||
"remoteUser": "vscode",
|
||||
"containerEnv": {
|
||||
"KBN_DIR": "${containerWorkspaceFolder}"
|
||||
},
|
||||
"features": {
|
||||
"ghcr.io/devcontainers/features/docker-in-docker:2": {
|
||||
"version": "latest",
|
||||
|
|
|
@ -109,6 +109,7 @@ Kibana also supports using a [dev container](https://containers.dev/) which can
|
|||
1. You should see the Kibana repo and your terminal will be inside the container. You can develop as normal now, including running `yarn es` from inside the container.
|
||||
|
||||
### Customizing the Dev Container
|
||||
|
||||
Installing any extra extensions or making adjustments to the OS environment inside the container will not have an effect on your local OS or VS Code installation. Editing the `devcontainer.json` or `.devcontainer/Dockerfile` should be reserved for changes to all dev environments.
|
||||
|
||||
### FIPS Mode
|
||||
|
@ -116,4 +117,9 @@ Installing any extra extensions or making adjustments to the OS environment insi
|
|||
The dev container is pre-configured to run Kibana in FIPS mode if needed. Simply change the `.env` file to `FIPS=1` and reopen your terminal. There should be a log message in your terminal which indicates `FIPS mode enabled`.
|
||||
|
||||
### Troubleshooting
|
||||
- Sometimes when rebuilding the container, there will be an error message that it failed. Usually hitting retry will fix this, and is only related to VS Code trying to reconnect to the container too quickly.
|
||||
|
||||
- Sometimes when rebuilding the container, there will be an error message that it failed. Usually hitting retry will fix this, and is only related to VS Code trying to reconnect to the container too quickly.
|
||||
|
||||
### Limitations
|
||||
|
||||
- Git worktrees are not supported when using the repo from the Local Filesystem. [VSCode issue](https://github.com/microsoft/vscode/issues/68038) for tracking, and a possible workaround though it is untested.
|
Loading…
Add table
Add a link
Reference in a new issue