e-mission / em-public-dashboard

A simple and stupid public dashboard prototype.
BSD 3-Clause "New" or "Revised" License
0 stars 23 forks source link

Update load_mongodump.sh script to update STUDY_CONFIG in docker-compose.dev.yml #163

Open iantei opened 1 month ago

iantei commented 1 month ago

Test execution with the following -

Changes in the docker-compose.dev.yml file:

ashrest2-41625s:em-public-dashboard ashrest2$ git diff docker-compose.dev.yml
diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml
index 1906101..044b8a4 100644
--- a/docker-compose.dev.yml
+++ b/docker-compose.dev.yml
@@ -25,10 +25,10 @@ services:
     depends_on:
       - db
     environment:
-      - DB_HOST=db
+      - DB_HOST=mongodb://db/openpath_prod_usaid_laos_ev
       - WEB_SERVER_HOST=0.0.0.0
       - CRON_MODE=
-      - STUDY_CONFIG=stage-program
+      - STUDY_CONFIG=usaid-laos-ev
     ports:
       # ipynb in numbers
       - "47962:8888"
ashrest2-41625s:em-public-dashboard ashrest2$

All the documents were restored successfully

2024-10-02T20:19:11.872+0000    [########################]  openpath_prod_usaid_laos_ev.Stage_timeseries  2.42GB/2.42GB  (100.0%)
2024-10-02T20:19:11.872+0000    restoring indexes for collection openpath_prod_usaid_laos_ev.Stage_timeseries from metadata
2024-10-02T20:19:27.034+0000    finished restoring openpath_prod_usaid_laos_ev.Stage_timeseries (3494052 documents, 0 failures)
2024-10-02T20:19:27.034+0000    4441126 document(s) restored successfully. 0 document(s) failed to restore.
Database restore complete.

Similarly tested with :