blanchon commited on
Commit
1395b21
Β·
1 Parent(s): b83a268
Dockerfile CHANGED
@@ -121,4 +121,4 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=3 \
121
  CMD python -c "import urllib.request; urllib.request.urlopen(f'http://localhost:${PORT}/health')" || exit 1
122
 
123
  # Start the FastAPI server (serves both frontend and backend)
124
- CMD ["sh", "-c", "cd server && SERVE_FRONTEND=true uv run python launch_with_ui.py --host localhost --port ${PORT}"]
 
121
  CMD python -c "import urllib.request; urllib.request.urlopen(f'http://localhost:${PORT}/health')" || exit 1
122
 
123
  # Start the FastAPI server (serves both frontend and backend)
124
+ CMD ["sh", "-c", "cd server && SERVE_FRONTEND=true uv run python launch_with_ui.py --host 0.0.0.0 --port ${PORT}"]
server/__pycache__/launch_with_ui.cpython-312.pyc CHANGED
Binary files a/server/__pycache__/launch_with_ui.cpython-312.pyc and b/server/__pycache__/launch_with_ui.cpython-312.pyc differ
 
server/launch_with_ui.py CHANGED
@@ -106,8 +106,8 @@ else:
106
 
107
 
108
  if __name__ == "__main__":
109
- port = int(os.getenv("PORT", 8000))
110
- host = os.getenv("HOST", "localhost")
111
 
112
  logger.info("πŸ€– Starting RobotHub TransportServer Combined Server...")
113
  logger.info(f" - API available at: http://{host}:{port}/api/")
 
106
 
107
 
108
  if __name__ == "__main__":
109
+ port = int(os.getenv("PORT", "8000"))
110
+ host = os.getenv("HOST", "0.0.0.0")
111
 
112
  logger.info("πŸ€– Starting RobotHub TransportServer Combined Server...")
113
  logger.info(f" - API available at: http://{host}:{port}/api/")
server/launch_without_ui.py CHANGED
@@ -14,8 +14,8 @@ logging.basicConfig(
14
  logger = logging.getLogger(__name__)
15
 
16
  if __name__ == "__main__":
17
- port = int(os.getenv("PORT", 8000))
18
- host = os.getenv("HOST", "localhost")
19
 
20
  logger.info("πŸ€– Starting RobotHub TransportServer API Server (Hot Reload Mode)...")
21
  logger.info(f" - API available at: http://{host}:{port}/")
 
14
  logger = logging.getLogger(__name__)
15
 
16
  if __name__ == "__main__":
17
+ port = int(os.getenv("PORT", "8000"))
18
+ host = os.getenv("HOST", "0.0.0.0")
19
 
20
  logger.info("πŸ€– Starting RobotHub TransportServer API Server (Hot Reload Mode)...")
21
  logger.info(f" - API available at: http://{host}:{port}/")
server/pyproject.toml CHANGED
@@ -12,6 +12,7 @@ dependencies = [
12
  "av>=14.4.0",
13
  "aiortc>=1.6.0",
14
  "numpy>=2.3.1",
 
15
  ]
16
 
17
  [dependency-groups]
 
12
  "av>=14.4.0",
13
  "aiortc>=1.6.0",
14
  "numpy>=2.3.1",
15
+ "pygments>=2.19.2",
16
  ]
17
 
18
  [dependency-groups]
server/server.log CHANGED
@@ -2999,3 +2999,23 @@ RuntimeError: WebSocket is not connected. Need to call "accept" first.
2999
  2025-06-25 01:55:13,508 - src.video.core - INFO - Consumer my-robot-01-front-consumer left video room my-robot-01-front in workspace 3a6e0b4d-21e1-4625-9af9-61bc8cabe831
3000
  2025-06-25 01:55:13,509 - src.robotics.core - INFO - Consumer my-robot-01-joint-input-consumer left room my-robot-01-joint-input in workspace 3a6e0b4d-21e1-4625-9af9-61bc8cabe831
3001
  2025-06-25 01:55:13,509 - src.robotics.core - INFO - Producer my-robot-01-joint-output-producer left room my-robot-01-joint-output in workspace 3a6e0b4d-21e1-4625-9af9-61bc8cabe831
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2999
  2025-06-25 01:55:13,508 - src.video.core - INFO - Consumer my-robot-01-front-consumer left video room my-robot-01-front in workspace 3a6e0b4d-21e1-4625-9af9-61bc8cabe831
3000
  2025-06-25 01:55:13,509 - src.robotics.core - INFO - Consumer my-robot-01-joint-input-consumer left room my-robot-01-joint-input in workspace 3a6e0b4d-21e1-4625-9af9-61bc8cabe831
3001
  2025-06-25 01:55:13,509 - src.robotics.core - INFO - Producer my-robot-01-joint-output-producer left room my-robot-01-joint-output in workspace 3a6e0b4d-21e1-4625-9af9-61bc8cabe831
3002
+ 2025-06-25 14:53:07,493 - __main__ - INFO - πŸ€– Starting RobotHub TransportServer Combined Server...
3003
+ 2025-06-25 14:53:07,493 - __main__ - INFO - - API available at: http://localhost:8000/api/
3004
+ 2025-06-25 14:53:07,493 - __main__ - INFO - - API docs at: http://localhost:8000/api/docs
3005
+ 2025-06-25 14:53:07,493 - __main__ - INFO - - Frontend disabled (set SERVE_FRONTEND=true to enable)
3006
+ 2025-06-25 14:53:38,302 - __main__ - WARNING - Frontend path not found: /Users/julienblanchon/Git/lerobot-arena/repo/frontend/external/RobotHub-InferenceServer/external/RobotHub-TransportServer/static-frontend
3007
+ 2025-06-25 14:53:38,302 - __main__ - INFO - πŸ€– Starting RobotHub TransportServer Combined Server...
3008
+ 2025-06-25 14:53:38,302 - __main__ - INFO - - API available at: http://localhost:8000/api/
3009
+ 2025-06-25 14:53:38,302 - __main__ - INFO - - API docs at: http://localhost:8000/api/docs
3010
+ 2025-06-25 14:53:38,302 - __main__ - INFO - - Frontend available at: http://localhost:8000/
3011
+ 2025-06-25 14:53:38,322 - launch_with_ui - WARNING - Frontend path not found: /Users/julienblanchon/Git/lerobot-arena/repo/frontend/external/RobotHub-InferenceServer/external/RobotHub-TransportServer/static-frontend
3012
+ 2025-06-25 14:56:35,084 - __main__ - INFO - πŸ€– Starting RobotHub TransportServer Combined Server...
3013
+ 2025-06-25 14:56:35,084 - __main__ - INFO - - API available at: http://localhost:8000/api/
3014
+ 2025-06-25 14:56:35,084 - __main__ - INFO - - API docs at: http://localhost:8000/api/docs
3015
+ 2025-06-25 14:56:35,084 - __main__ - INFO - - Frontend disabled (set SERVE_FRONTEND=true to enable)
3016
+ 2025-06-25 14:56:48,317 - __main__ - WARNING - Frontend path not found: /Users/julienblanchon/Git/lerobot-arena/repo/frontend/external/RobotHub-InferenceServer/external/RobotHub-TransportServer/static-frontend
3017
+ 2025-06-25 14:56:48,317 - __main__ - INFO - πŸ€– Starting RobotHub TransportServer Combined Server...
3018
+ 2025-06-25 14:56:48,318 - __main__ - INFO - - API available at: http://localhost:8000/api/
3019
+ 2025-06-25 14:56:48,318 - __main__ - INFO - - API docs at: http://localhost:8000/api/docs
3020
+ 2025-06-25 14:56:48,318 - __main__ - INFO - - Frontend available at: http://localhost:8000/
3021
+ 2025-06-25 14:56:48,336 - launch_with_ui - WARNING - Frontend path not found: /Users/julienblanchon/Git/lerobot-arena/repo/frontend/external/RobotHub-InferenceServer/external/RobotHub-TransportServer/static-frontend
server/uv.lock CHANGED
@@ -605,6 +605,7 @@ dependencies = [
605
  { name = "numpy" },
606
  { name = "opencv-python-headless" },
607
  { name = "pydantic" },
 
608
  { name = "uvicorn", extra = ["standard"] },
609
  ]
610
 
@@ -623,6 +624,7 @@ requires-dist = [
623
  { name = "numpy", specifier = ">=2.3.1" },
624
  { name = "opencv-python-headless", specifier = ">=4.11.0.86" },
625
  { name = "pydantic", specifier = ">=2.11.7" },
 
626
  { name = "uvicorn", extras = ["standard"], specifier = ">=0.34.3" },
627
  ]
628
 
 
605
  { name = "numpy" },
606
  { name = "opencv-python-headless" },
607
  { name = "pydantic" },
608
+ { name = "pygments" },
609
  { name = "uvicorn", extra = ["standard"] },
610
  ]
611
 
 
624
  { name = "numpy", specifier = ">=2.3.1" },
625
  { name = "opencv-python-headless", specifier = ">=4.11.0.86" },
626
  { name = "pydantic", specifier = ">=2.11.7" },
627
+ { name = "pygments", specifier = ">=2.19.2" },
628
  { name = "uvicorn", extras = ["standard"], specifier = ">=0.34.3" },
629
  ]
630