mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-08-12 03:48:34 +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
|
BIN
assets/transparenzregister.companies.json
(Stored with Git LFS)
Normal file
BIN
assets/transparenzregister.companies.json
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/transparenzregister.news.json
(Stored with Git LFS)
Normal file
BIN
assets/transparenzregister.news.json
(Stored with Git LFS)
Normal file
Binary file not shown.
Reference in New Issue
Block a user