Skip to content

Commit 903af08

Browse files
committed
Add empty web for health
1 parent c0b8518 commit 903af08

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

llmstack/common/runner/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def main():
319319
redis_client, hostname=args.hostname, max_displays=args.max_displays, start_display=args.start_display, display_res=args.display_res, rfb_start_port=args.rfb_start_port)
320320

321321
# Start websockify server
322-
websockify_process = subprocess.Popen(['websockify', f'{args.wss_port}', '--token-plugin=TokenRedis', f'--token-source={args.redis_host}:{args.redis_port}',
322+
websockify_process = subprocess.Popen(['websockify', f'{args.wss_port}', '--web', '/usr/share/www/html', '--token-plugin=TokenRedis', f'--token-source={args.redis_host}:{args.redis_port}',
323323
'-v', '--auth-plugin=llmstack.common.runner.auth.BasicHTTPAuthWithRedis', f'--auth-source={args.redis_host}:{args.redis_port}{f":{args.redis_password}" if args.redis_password else ""}'], close_fds=True)
324324

325325
server = grpc_server(futures.ThreadPoolExecutor(max_workers=10))

runner/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ RUN pip3 install poetry
1717

1818
# Install grpc_health_probe
1919
RUN wget -qO/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/v0.4.22/grpc_health_probe-linux-amd64 && \
20-
chmod +x /grpc_health_probe
20+
chmod +x /grpc_health_probe
21+
22+
# Empty dir for web
23+
RUN mkdir -p /usr/share/www/html
2124

2225
RUN mkdir /code
2326
WORKDIR /code

0 commit comments

Comments
 (0)