Skip to content

Commit

Permalink
[IT-3964] Update mongo command (#128)
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 authored Dec 13, 2024
1 parent d4ac6ed commit 7bbe18f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
push:
branches: ['develop', 'staging', 'prod' ]

env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true

jobs:
tests:
runs-on: ubuntu-latest
Expand Down
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 7bbe18f

Please sign in to comment.