Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

entrypoint.sh 659B

12345678910111213141516171819202122232425262728293031323334
  1. #!/bin/bash
  2. # replace env variables in the service_conf.yaml file
  3. rm -rf /ragflow/conf/service_conf.yaml
  4. while IFS= read -r line || [[ -n "$line" ]]; do
  5. # Use eval to interpret the variable with default values
  6. eval "echo \"$line\"" >> /ragflow/conf/service_conf.yaml
  7. done < /ragflow/conf/service_conf.yaml.template
  8. /usr/sbin/nginx
  9. export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/
  10. PY=python3
  11. if [[ -z "$WS" || $WS -lt 1 ]]; then
  12. WS=1
  13. fi
  14. function task_exe(){
  15. while [ 1 -eq 1 ];do
  16. $PY rag/svr/task_executor.py $1;
  17. done
  18. }
  19. for ((i=0;i<WS;i++))
  20. do
  21. task_exe $i &
  22. done
  23. while [ 1 -eq 1 ];do
  24. $PY api/ragflow_server.py
  25. done
  26. wait;