Skip to content

Commit

Permalink
[IT-3964] Update mongo command
Browse files Browse the repository at this point in the history
We have updated our Github self hosted runners to use the latest
versions of the MongoDB tools.

```
mongodb-database-tools.x86_64                                     100.10.0-1                                  @mongodb-org-8.0
mongodb-mongosh-shared-openssl3.x86_64                            2.3.6-1.el8                                 @mongodb-org-8.0
```

MongoDB changed the name of their mongo cli command to "mongosh"
therefore we need to update accordingly.

[1] https://www.mongodb.com/blog/post/introducing-the-new-shell
  • Loading branch information
zaro0508 committed Dec 13, 2024
1 parent d4ac6ed commit 6e65953
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion import-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ mongoimport -h $DB_HOST -d agora -u $DB_USER -p $DB_PASS --authenticationDatabas
mongoimport -h $DB_HOST -d agora -u $DB_USER -p $DB_PASS --authenticationDatabase admin --collection genesbiodomains --jsonArray --drop --file $DATA_DIR/genes_biodomains.json
mongoimport -h $DB_HOST -d agora -u $DB_USER -p $DB_PASS --authenticationDatabase admin --collection biodomaininfo --jsonArray --drop --file $DATA_DIR/biodomain_info.json

mongo --host $DB_HOST -u $DB_USER -p $DB_PASS --authenticationDatabase admin $WORKING_DIR/create-indexes.js
mongosh --host $DB_HOST -u $DB_USER -p $DB_PASS --authenticationDatabase admin $WORKING_DIR/create-indexes.js

pushd $TEAM_IMAGES_DIR
ls -1r *.{jpg,jpeg,png} | while read x; do mongofiles -h $DB_HOST -d agora -u $DB_USER -p $DB_PASS --authenticationDatabase $DB_USER -v put $x; echo $x; done
Expand Down

0 comments on commit 6e65953

Please sign in to comment.