mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-06-22 00:04:01 +02:00
build: Include Mongo dump with init in local deployment (#448)
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>
This commit is contained in:
3
assets/mongo_import.sh
Normal file
3
assets/mongo_import.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/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
|
Reference in New Issue
Block a user