qanastek commited on
Commit
1b15038
·
verified ·
1 Parent(s): fd0cbd5

Delete entrypoint.sh.template

Browse files
Files changed (1) hide show
  1. entrypoint.sh.template +0 -24
entrypoint.sh.template DELETED
@@ -1,24 +0,0 @@
1
- #!/bin/bash
2
-
3
- # Make sure `/data/db` directory exists even with persistent storage
4
- mkdir -p /data/db
5
- # If app crashed, mongo didn't stop gracefully. Remove all the old *.lock files
6
- find /data/db -name "*.lock" -type f -exec rm -f {} \;
7
-
8
- # Start the local Mongo database
9
- mongod &
10
-
11
- # Start the text-generation-inference process
12
- text-generation-launcher --model-id ${MODEL_NAME} --num-shard 1 --port 8080 --trust-remote-code &
13
-
14
- # Wait for text-generation-inference to start
15
- curl --retry 100 --retry-delay 10 --retry-connrefused http://127.0.0.1:8080/health
16
-
17
- # Start the chat-ui process
18
- pm2 start /app/build/index.js -i $CPU_CORES --no-daemon &
19
-
20
- # Wait for any process to exit
21
- wait -n
22
-
23
- # Exit with status of process that exited first
24
- exit $?