2021-06-03 18:00:25 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
export KBN_NP_PLUGINS_BUILT=true
|
|
|
|
|
|
|
|
echo "--- Build Kibana Distribution"
|
2021-07-27 01:20:13 +02:00
|
|
|
node scripts/build --debug
|
2021-06-03 18:00:25 +02:00
|
|
|
|
|
|
|
echo "--- Archive Kibana Distribution"
|
|
|
|
linuxBuild="$(find "$KIBANA_DIR/target" -name 'kibana-*-linux-x86_64.tar.gz')"
|
|
|
|
installDir="$KIBANA_DIR/install/kibana"
|
|
|
|
mkdir -p "$installDir"
|
|
|
|
tar -xzf "$linuxBuild" -C "$installDir" --strip=1
|
|
|
|
mkdir -p "$KIBANA_BUILD_LOCATION"
|
|
|
|
cp -pR install/kibana/. "$KIBANA_BUILD_LOCATION/"
|