ray/build-webui.sh
Robert Nishihara d77b685a90 Global scheduler skeleton (#45)
* Initial scheduler commit

* global scheduler

* add global scheduler

* Implement global scheduler skeleton.

* Formatting.

* Allow local scheduler to be started without a connection to redis so that we can test it without a global scheduler.

* Fail if there are no local schedulers when the global scheduler receives a task.

* Initialize uninitialized value and formatting fix.

* Generalize local scheduler table to db client table.

* Remove code duplication in local scheduler and add flag for whether a task came from the global scheduler or not.

* Queue task specs in the local scheduler instead of tasks.

* Simple global scheduler tests, including valgrind.

* Factor out functions for starting processes.

* Fixes.
2016-11-18 19:57:51 -08:00

35 lines
765 B
Bash
Executable file

#!/usr/bin/env bash
# Cause the script to exit if a single command fails.
set -e
ROOT_DIR=$(cd "$(dirname "${BASH_SOURCE:-$0}")"; pwd)
unamestr="$(uname)"
if [[ "$unamestr" == "Linux" ]]; then
platform="linux"
elif [[ "$unamestr" == "Darwin" ]]; then
platform="macosx"
else
echo "Unrecognized platform."
exit 1
fi
WEBUI_DIR="$ROOT_DIR/webui"
PYTHON_DIR="$ROOT_DIR/lib/python"
PYTHON_WEBUI_DIR="$PYTHON_DIR/webui"
pushd "$WEBUI_DIR"
npm install
if [[ $platform == "linux" ]]; then
nodejs ./node_modules/.bin/webpack -g
elif [[ $platform == "macosx" ]]; then
node ./node_modules/.bin/webpack -g
fi
pushd node_modules
rm -rf react* babel* classnames dom-helpers jsesc webpack .bin
popd
popd
cp -r $WEBUI_DIR/* $PYTHON_WEBUI_DIR/