microsoft / aroworkshop

Azure Red Hat OpenShift workshop
Creative Commons Attribution 4.0 International
58 stars 123 forks source link

Restore Data Step has incorrect path #32

Closed bryonbaker closed 4 years ago

bryonbaker commented 5 years ago

Path needs to be absolute for loading tata: Run the mongoimport command to import the JSON data files into the database. Make sure the username, password and database name match what you specified when you deployed the template. mongoimport --host 127.0.0.1 --username ratingsuser --password ratingspassword --db ratingsdb --collection items --type json --file data/items.json --jsonArray mongoimport --host 127.0.0.1 --username ratingsuser --password ratingspassword --db ratingsdb --collection sites --type json --file data/sites.json --jsonArray mongoimport --host 127.0.0.1 --username ratingsuser --password ratingspassword --db ratingsdb --collection ratings --type json --file data/ratings.json --jsonArray

sabbour commented 4 years ago

The container now auto loads the mock data if the database is empty.