Skip to content

Commit

Permalink
The configuration db, it is no more
Browse files Browse the repository at this point in the history
  • Loading branch information
jvansanten committed Jul 13, 2018
1 parent 543d806 commit 642575d
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 926 deletions.
403 changes: 0 additions & 403 deletions deploy/production/initdb/mongo/channels.json

This file was deleted.

40 changes: 0 additions & 40 deletions deploy/production/initdb/mongo/global.json

This file was deleted.

10 changes: 0 additions & 10 deletions deploy/production/initdb/mongo/load_config.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
#!/usr/bin/env bash

# Initialize configuration database in docker entrypoint

import=( mongoimport --host 127.0.0.1 --port 27017 --username $MONGO_INITDB_ROOT_USERNAME --password $MONGO_INITDB_ROOT_PASSWORD --authenticationDatabase admin -d Ampel_config )

cd /docker-entrypoint-initdb.d
for f in *.json; do
# upack object an array of objects with keys as _id
cat $f | jq 'to_entries | map({_id: .key} + .value)' | ${import[@]} --collection $(basename $f .json) --jsonArray
done

file_env 'MONGO_USER'
file_env 'MONGO_PASSWORD'

Expand Down
63 changes: 0 additions & 63 deletions deploy/production/initdb/mongo/t0_filters.json

This file was deleted.

67 changes: 0 additions & 67 deletions deploy/production/initdb/mongo/t2_run_config.json

This file was deleted.

73 changes: 0 additions & 73 deletions deploy/production/initdb/mongo/t2_units.json

This file was deleted.

Loading

0 comments on commit 642575d

Please sign in to comment.