mirror of
https://github.com/wassname/ray.git
synced 2026-06-27 21:38:18 +08:00
[Dashboard] Add initial version of new dashboard (#5730)
This commit is contained in:
committed by
Robert Nishihara
parent
56ab9a00bb
commit
98dcc1d440
+14
-7
@@ -2,6 +2,7 @@ from __future__ import absolute_import
|
||||
from __future__ import division
|
||||
from __future__ import print_function
|
||||
|
||||
import glob
|
||||
import os
|
||||
import re
|
||||
import shutil
|
||||
@@ -27,9 +28,6 @@ ray_files = [
|
||||
"ray/core/src/ray/raylet/raylet_monitor",
|
||||
"ray/core/src/ray/raylet/raylet",
|
||||
"ray/dashboard/dashboard.py",
|
||||
"ray/dashboard/index.html",
|
||||
"ray/dashboard/res/main.css",
|
||||
"ray/dashboard/res/main.js",
|
||||
]
|
||||
|
||||
# These are the directories where automatically generated Python protobuf
|
||||
@@ -52,6 +50,18 @@ ray_project_files = [
|
||||
"ray/projects/templates/requirements.txt"
|
||||
]
|
||||
|
||||
ray_dashboard_files = [
|
||||
"ray/dashboard/client/build/favicon.ico",
|
||||
"ray/dashboard/client/build/index.html",
|
||||
]
|
||||
for dirname in ["css", "js", "media"]:
|
||||
ray_dashboard_files += glob.glob(
|
||||
"ray/dashboard/client/build/static/{}/*".format(dirname))
|
||||
|
||||
optional_ray_files += ray_autoscaler_files
|
||||
optional_ray_files += ray_project_files
|
||||
optional_ray_files += ray_dashboard_files
|
||||
|
||||
if "RAY_USE_NEW_GCS" in os.environ and os.environ["RAY_USE_NEW_GCS"] == "on":
|
||||
ray_files += [
|
||||
"ray/core/src/credis/build/src/libmember.so",
|
||||
@@ -59,15 +69,12 @@ if "RAY_USE_NEW_GCS" in os.environ and os.environ["RAY_USE_NEW_GCS"] == "on":
|
||||
"ray/core/src/credis/redis/src/redis-server"
|
||||
]
|
||||
|
||||
optional_ray_files += ray_autoscaler_files
|
||||
optional_ray_files += ray_project_files
|
||||
|
||||
extras = {
|
||||
"rllib": [
|
||||
"pyyaml", "gym[atari]", "opencv-python-headless", "lz4", "scipy"
|
||||
],
|
||||
"debug": ["psutil", "setproctitle", "py-spy"],
|
||||
"dashboard": ["psutil", "aiohttp"],
|
||||
"dashboard": ["aiohttp", "psutil", "setproctitle"],
|
||||
"serve": ["uvicorn", "pygments", "werkzeug"],
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user