Skip to content

dan-frohlich/kibana-plugin-dev-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kibana-plugin-dev-env

a dev env for kibana plugins

Prereqs

  • docker
  • docker-compose is optional.

Usage

  1. 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}"

if using docker-compose

  1. 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
  1. docker-compose up

docker (not using docker-compose)

  1. 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

to run tets cases...

  1. enter running container
docker exec -it kibana-plugin-dev bash
  1. execute helper testing tasks
plugin-helpers test:server
plugin-helpers test:browser

RELEASE NOTES

  • updated to kibana v6.4.3

About

a dev env for kibana plugins

Resources

Stars

Watchers

Forks

Packages

No packages published