Spaces:
Paused
Paused
zxsipola123456
commited on
Commit
•
26fc43c
1
Parent(s):
46e3f54
Update docker/entrypoint.sh
Browse files- docker/entrypoint.sh +2 -25
docker/entrypoint.sh
CHANGED
@@ -1,28 +1,5 @@
|
|
1 |
#!/bin/bash
|
2 |
|
3 |
-
|
4 |
-
|
5 |
-
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/
|
6 |
-
|
7 |
-
PY=python3
|
8 |
-
if [[ -z "$WS" || $WS -lt 1 ]]; then
|
9 |
-
WS=1
|
10 |
-
fi
|
11 |
-
|
12 |
-
function task_exe(){
|
13 |
-
while [ 1 -eq 1 ];do
|
14 |
-
$PY rag/svr/task_executor.py ;
|
15 |
-
done
|
16 |
-
}
|
17 |
-
|
18 |
-
for ((i=0;i<WS;i++))
|
19 |
-
do
|
20 |
-
task_exe &
|
21 |
-
done
|
22 |
-
|
23 |
-
while [ 1 -eq 1 ];do
|
24 |
-
$PY api/ragflow_server.py
|
25 |
-
done
|
26 |
-
|
27 |
-
wait;
|
28 |
/usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf
|
|
|
|
1 |
#!/bin/bash
|
2 |
|
3 |
+
# 启动supervisord来管理所有服务
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
/usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf
|
5 |
+
|