mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-04-24 13:42:34 +02:00
Added the latest data from the internet-facing staging DB as json files to the repo (Git LFS) and added another container to the local deployment that ingests the files upon creation. --------- Co-authored-by: Philipp Horstenkamp <philipp@horstenkamp.de>
4 lines
450 B
Bash
4 lines
450 B
Bash
#!/bin/sh
|
|
mongoimport --host ${MONGO_HOST}:${MONGO_PORT} -u ${MONGO_USERNAME} -p ${MONGO_PASSWORD} --authenticationDatabase admin --db ${MONGO_DATABASE} --collection companies --file /tmp/transparenzregister.companies.json --jsonArray
|
|
mongoimport --host ${MONGO_HOST}:${MONGO_PORT} -u ${MONGO_USERNAME} -p ${MONGO_PASSWORD} --authenticationDatabase admin --db ${MONGO_DATABASE} --collection news --file /tmp/transparenzregister.news.json --jsonArray
|