Jonny Tran commited on
Commit
881f490
·
1 Parent(s): 2c1dfc4
Files changed (1) hide show
  1. entrypoint.sh.template +8 -5
entrypoint.sh.template CHANGED
@@ -1,11 +1,14 @@
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
- # Start the local Mongo database
8
- mongod &
 
 
 
9
 
10
  # Start the text-generation-inference process
11
  # text-generation-launcher --model-id ${MODEL_NAME} --num-shard 1 --port 8080 --trust-remote-code &
 
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
+ # # Start the local Mongo database
8
+ # mongod &
9
+
10
+ # # Wait for MongoDB to start
11
+ # sleep 10
12
 
13
  # Start the text-generation-inference process
14
  # text-generation-launcher --model-id ${MODEL_NAME} --num-shard 1 --port 8080 --trust-remote-code &