Skip to content

Commit b01dd04

Browse files
committed
Remove index
1 parent 5d6673a commit b01dd04

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

services

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -121,26 +121,6 @@ loadData () {
121121
--entrypoint /bin/ash quay.io/curl/curl /import-data
122122
}
123123

124-
addDatabaseIndex () {
125-
printf "Adding appropriate \033[1mMongoDB\033[0m indexes for \033[1;34mOrion\033[0m ..."
126-
docker exec db-mongo mongo --eval '
127-
conn = new Mongo();db.createCollection("orion");
128-
db = conn.getDB("orion");
129-
db.createCollection("entities");
130-
db.entities.createIndex({"_id.servicePath": 1, "_id.id": 1, "_id.type": 1}, {unique: true});
131-
db.entities.createIndex({"_id.type": 1});
132-
db.entities.createIndex({"_id.id": 1});' > /dev/null
133-
134-
docker exec db-mongo mongo --eval '
135-
conn = new Mongo();db.createCollection("orion-openiot");
136-
db = conn.getDB("orion-openiot");
137-
db.createCollection("entities");
138-
db.entities.createIndex({"_id.servicePath": 1, "_id.id": 1, "_id.type": 1}, {unique: true});
139-
db.entities.createIndex({"_id.type": 1});
140-
db.entities.createIndex({"_id.id": 1});' > /dev/null
141-
echo -e " \033[1;32mdone\033[0m"
142-
}
143-
144124
stoppingContainers () {
145125
CONTAINERS=$(docker ps -aq)
146126
if [[ -n $CONTAINERS ]]; then
@@ -176,7 +156,6 @@ case "${command}" in
176156
echo ""
177157
${dockerCmd} -f docker-compose/common.yml -f docker-compose/orion-ld.yml up -d --remove-orphans --renew-anon-volumes
178158
waitForMongo
179-
addDatabaseIndex
180159
waitForOrionLD
181160
export CONTEXT_BROKER=orion:1026
182161
loadData

0 commit comments

Comments
 (0)