The goal of this repo/dockerhub is to provide a series of docker containers, matched to the releases of Kibana/ES that are being supported, such that SPG can build/dev Kibana plugins across those ES releases. These instructions are for plugins build using the Kibana Plugin Generator.
Follow the below instructions to build your Kibana plugin:
./build-by-version.sh 6.1.1
- to build a local kibana build image (ends up namedsamtecspg/kibana-plugin-dev:6.1.1
)- Go to the
kibana-extra
folder where your plugin resides. Do adocker run --rm -it -v `pwd`:/kibana-extra/ samtecspg/kibana-plugin-dev:6.1.1 bash
(In our project Conveyor, that place is [project-root]/kibana-extra) - (Working in the same window that you ran the
docker run
- which now is at the prompt of the running container) Jump over to the plugin directorycd kibana-extra/your-plugin-name
- IMPORTANT Edit the
package.json
and set the version equal to what you did thebuild-by-version
on (so for what was in set one, the version would be "6.1.1") -- (because of the previous steps, this file should be mounted via the`pwd`:/kibana-extra/your-plugin-name
mount so you can edit it inside or outside the container, what ever is easier for you) - (for our project) do the build (as explained in https://github.com/samtecspg/conveyor/blob/master/development.md#build )
yarn kbn bootstrap
yarn build
exit
or ctrl-d out of the container- look in the
build
directory, and you should see the build zip file
NOTE: If you run the kibana container to run without a command (I.E. the bash
part above), it is setup to do nothing. ... or more to the point, sleep
. The sleep is for 1500 seconds, so if run it that way, you have 25 minutes to do whatevery it is you want to do - after that it will automaticly exit (and remove itself if you gave the --rm
option)