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

1.3 Update the Admin role

mongo -u user --authenticationDatabase admin --host localhost --verbose -p
use admin
db.users.updateMany(
  { roles: "Admin" },
  { $set: { roles: ["AdminGLeaves"] } }
)

1.4 Load new images

docker load < gleaves_3_5_33_5-1.tar.gz
docker load < gleaves_worker_import_0_1_80-1.tar.gz
docker load < gleaves_compute_rec_0_1_35-1.tar.gz
docker load < gleaves_worker_index_0_1_35-1.tar.gz