From fcfedccd9183f551f709cf72203603b292e04b43 Mon Sep 17 00:00:00 2001 From: Ricardo Dias Date: Tue, 13 Feb 2018 14:03:05 +0000 Subject: [PATCH] make-dist: Added dashboard_v2 frontend build files to dist tarball Signed-off-by: Ricardo Dias --- make-dist | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/make-dist b/make-dist index a01b79908b9..2ac4c93762b 100755 --- a/make-dist +++ b/make-dist @@ -61,6 +61,15 @@ download_boost() { rm -rf src/boost } +build_dashboard_frontend() { + CURR_DIR=`pwd` + cd src/pybind/mgr/dashboard_v2/frontend + npm install + npm run build -- --prod + cd $CURR_DIR + tar cf dashboard_frontend.tar $outfile/src/pybind/mgr/dashboard_v2/frontend/dist +} + # clean out old cruft... echo "cleanup..." rm -f $outfile* @@ -113,9 +122,11 @@ download_boost $boost_version b2dfbd6c717be4a7bb2d88018eaccf75 \ https://dl.bintray.com/boostorg/release/$boost_version/source \ https://downloads.sourceforge.net/project/boost/boost/$boost_version \ https://download.ceph.com/qa +build_dashboard_frontend tar --concatenate -f $outfile.all.tar $outfile.version.tar tar --concatenate -f $outfile.all.tar $outfile.boost.tar tar --concatenate -f $outfile.all.tar $outfile.tar +tar --concatenate -f $outfile.all.tar dashboard_frontend.tar mv $outfile.all.tar $outfile.tar rm $outfile rm -f $outfile.version.tar -- 2.47.3