Skip to content

Commit

Permalink
Remove index
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-fox committed Jan 10, 2025
1 parent fd3bc23 commit 1406676
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions services
Original file line number Diff line number Diff line change
Expand Up @@ -124,18 +124,6 @@ stoppingContainers () {
fi
}

addDatabaseIndex () {
printf "Create \033[1mMongoDB\033[0m database indexes ..."
docker exec db-mongo mongo --eval '
conn = new Mongo();db.createCollection("orion");
db = conn.getDB("orion");
db.createCollection("entities");
db.entities.createIndex({"_id.servicePath": 1, "_id.id": 1, "_id.type": 1}, {unique: true});
db.entities.createIndex({"_id.type": 1});
db.entities.createIndex({"_id.id": 1});' > /dev/null
echo -e " \033[1;32mdone\033[0m"
}

displayServices () {
echo ""
docker ps --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}" --filter name="$1"-*
Expand All @@ -157,7 +145,6 @@ case "${command}" in
echo ""
${dockerCmd} -f docker-compose/orion-ld.yml up -d --remove-orphans --renew-anon-volumes
waitForMongo
addDatabaseIndex
displayServices fiware
waitForUserContext
waitForOrionLD
Expand Down

0 comments on commit 1406676

Please sign in to comment.