Skip to content

Commit

Permalink
Update mongo setup.sh for docker autoconfig
Browse files Browse the repository at this point in the history
The setup.sh script itself creates not only the test database, but also
the starbucks collection which is used as the persistent repository in
our sink application. In addition to that it gives our testUser
readWrite permissions on that entire database.
  • Loading branch information
cahlen committed Nov 1, 2018
1 parent b81568b commit 055a278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/mongo/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ mongo --port 27017 \
-p 'example' \
--authenticationDatabase 'admin' \
--host mongo.localhost \
--eval "db.createCollection('test'); db.getSiblingDB('test').createUser({user:'testUser', pwd:'testPassword', roles:[{role:'readWrite',db:'test'}]});"
--eval "db.createCollection('starbucks'); db.getSiblingDB('test').createUser({user:'testUser', pwd:'testPassword', roles:[{role:'readWrite',db:'test'}]});"

0 comments on commit 055a278

Please sign in to comment.