Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.
Naoyuki Sano edited this page Apr 8, 2021 · 9 revisions
# nvm install
# https://github.com/nvm-sh/nvm#install--update-script
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
$ vi ~/.bash_profile

export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm

$ source ~/.bash_profile

# yarn install
$ npm install -g yarn

$ mkdir work
$ cd work
$ git clone https://github.com/nsano-rururu/elastalert-kibana-plugin.git
$ git clone https://github.com/elastic/kibana.git
$ cd elastalert-kibana-plugin

# $ nvm install "$(cat .nvmrc)"
$ nvm use "$(cat .nvmrc)"

$ yarn kbn bootstrap

$ node ../kibana/packages/kbn-plugin-helpers/bin/plugin-helpers build
$ ls build

kibana 7.10.0 -

# nvm install
# https://github.com/nvm-sh/nvm#install--update-script
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
$ vi ~/.bash_profile

export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm

$ source ~/.bash_profile

# yarn install
$ npm install -g yarn

$ mkdir work
$ cd work
$ git clone https://github.com/elastic/kibana.git
$ cd kibana
$ git checkout 7.10
$ cd plugins
$ git clone https://github.com/nsano-rururu/elastalert-kibana-plugin.git
$ cd elastalert-kibana-plugin
$ git checkout migrating-plugin-new-platform
# $ nvm install "$(cat .nvmrc)"
$ nvm use "$(cat .nvmrc)"
$ yarn cache clean
$ yarn kbn clean
$ yarn kbn bootstrap
# 7.x.x. example) 7.10.0
$ yarn build --kibana-version=7.x.x
$ ls build
Clone this wiki locally