a dev env for kibana plugins
- docker
- docker-compose is optional.
- make a custom entry script such as saved as ./dev-entry.sh
#!/bin/bash
npm install
npm run build
npm start -- --elasticsearch.url "${ELASTICSEARCH_URL}" --no-ssl --server.host "${SERVER_NAME}"
- edit docker-compose.yml in your plugin folder.
version: '2'
services:
kibana:
container_name: kibana-plugin-dev
image: danfrohlich/kibana-plugin-dev-env:v6.4.3
entrypoint: /project/plugin_folder/dev-entry.sh
environment:
ELASTICSEARCH_URL: http://[your-es-host-here]:9200
SERVER_NAME: 0.0.0.0
volumes:
- .:/project/plugin_folder
ports:
- "5601:5601"
working_dir: /project/plugin_folder
- docker-compose up
- run the container.
docker run -d \
--name kibana-plugin-dev \
--entrypoint /project/plugin_folder/dev-entry.sh \
-v .:/project/plugin_folder \
-p 5601:5601 \
-e "ELASTICSEARCH_URL=http://[your-es-host-here]:9200" \
-w /project/plugin_folder \
-e "SERVER_NAME=0.0.0.0" \
danfrohlich/kibana-plugin-dev-env:v6.4.3
- enter running container
docker exec -it kibana-plugin-dev bash
- execute helper testing tasks
plugin-helpers test:server
plugin-helpers test:browser
- updated to kibana v6.4.3