diff --git a/services b/services index 51af471..f754c64 100755 --- a/services +++ b/services @@ -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"-* @@ -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