mirror of
https://github.com/Pythagora-io/gpt-pilot.git
synced 2026-01-09 13:17:55 -05:00
Remove mongod from dockerfile
This commit is contained in:
@@ -6,20 +6,20 @@ set -e
|
|||||||
# set -x
|
# set -x
|
||||||
|
|
||||||
echo "TASK: Entrypoint script started"
|
echo "TASK: Entrypoint script started"
|
||||||
export MONGO_DB_DATA=$PYTHAGORA_DATA_DIR/mongodata
|
# export MONGO_DB_DATA=$PYTHAGORA_DATA_DIR/mongodata
|
||||||
mkdir -p $MONGO_DB_DATA
|
# mkdir -p $MONGO_DB_DATA
|
||||||
|
|
||||||
# Start MongoDB in the background
|
# # Start MongoDB in the background
|
||||||
mongod --dbpath "$MONGO_DB_DATA" --bind_ip_all >> $MONGO_DB_DATA/mongo_logs.txt 2>&1 &
|
# mongod --dbpath "$MONGO_DB_DATA" --bind_ip_all >> $MONGO_DB_DATA/mongo_logs.txt 2>&1 &
|
||||||
|
|
||||||
# Loop until MongoDB is running (use pgrep for speed)
|
# # Loop until MongoDB is running (use pgrep for speed)
|
||||||
for ((i=0; i<10*5; i++)); do
|
# for ((i=0; i<10*5; i++)); do
|
||||||
if pgrep -x mongod > /dev/null; then
|
# if pgrep -x mongod > /dev/null; then
|
||||||
echo "TASK: MongoDB started"
|
# echo "TASK: MongoDB started"
|
||||||
break
|
# break
|
||||||
fi
|
# fi
|
||||||
sleep 0.2
|
# sleep 0.2
|
||||||
done
|
# done
|
||||||
|
|
||||||
export DB_DIR=$PYTHAGORA_DATA_DIR/database
|
export DB_DIR=$PYTHAGORA_DATA_DIR/database
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user