[Dashboard] Add initial version of new dashboard (#5730)

This commit is contained in:
Mitchell Stern
2019-09-23 08:50:40 -07:00
committed by Robert Nishihara
parent 56ab9a00bb
commit 98dcc1d440
28 changed files with 14738 additions and 67 deletions
+11 -1
View File
@@ -38,6 +38,10 @@ NUMPY_VERSIONS=("1.14.5"
mkdir -p $DOWNLOAD_DIR
mkdir -p .whl
# Use the latest version of Node.js in order to build the dashboard.
source $HOME/.nvm/nvm.sh
nvm use node
for ((i=0; i<${#PY_VERSIONS[@]}; ++i)); do
PY_VERSION=${PY_VERSIONS[i]}
PY_INST=${PY_INSTS[i]}
@@ -58,10 +62,16 @@ for ((i=0; i<${#PY_VERSIONS[@]}; ++i)); do
PIP_CMD="$(dirname $PYTHON_EXE)/pip$PY_MM"
pushd /tmp
# Install latest version of pip to avoid brownouts
# Install latest version of pip to avoid brownouts.
curl https://bootstrap.pypa.io/get-pip.py | $PYTHON_EXE
popd
# Build the dashboard so its static assets can be included in the wheel.
pushd python/ray/dashboard/client
npm ci
npm run build
popd
pushd python
# Setuptools on CentOS is too old to install arrow 0.9.0, therefore we upgrade.
$PIP_CMD install --upgrade setuptools