1. Upgrade
1.1 Drop the collections
From MongoDB container :
mongo -u user --authenticationDatabase admin --host localhost --verbose -p use gleaves db.hpo.drop()
1.2 Import new collections
docker cp update/hpo_20250204.jsonl users_20250204.jsonl $containerID:/tmp
From MongoDB container :
cat /tmp/hpo_20250204.jsonl | mongoimport \ --collection hpo \ --uri="mongodb://user:password@localhost:27017/gleaves?authMechanism=SCRAM-SHA-1&authSource=admin" \ --file /dev/stdin