Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mongodb-orders
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
joel.cavat
mongodb-orders
Commits
07d9e377
Commit
07d9e377
authored
5 years ago
by
steven.liatti
Browse files
Options
Downloads
Patches
Plain Diff
Fix typo in dockerfile
parent
9426c557
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+1
-1
1 addition, 1 deletion
Dockerfile
README.md
+1
-1
1 addition, 1 deletion
README.md
with
2 additions
and
2 deletions
Dockerfile
+
1
−
1
View file @
07d9e377
FROM
mongo
COPY
./data/orders.json /orders.json
CMD
mongoimport --host mongo-
karibou
--db order --collection orders --type json --file orders.json --jsonArray && mongo --host mongo-
karibou
order --eval 'db.orders.find( { "customer.id.floatApprox": { $exists: true } } ).forEach( tr => db.orders.update({_id: tr._id},{$set:{"customer.id": tr.customer.id.floatApprox}} ) )' && mongo --host mongo-
karibou
order --eval 'db.orders.find().forEach( tr => db.orders.update({_id: tr._id}, {$set:{"shipping.when": new Date(tr.shipping.when)}}))'
CMD
mongoimport --host mongo-
orders
--db order --collection orders --type json --file orders.json --jsonArray && mongo --host mongo-
orders
order --eval 'db.orders.find( { "customer.id.floatApprox": { $exists: true } } ).forEach( tr => db.orders.update({_id: tr._id},{$set:{"customer.id": tr.customer.id.floatApprox}} ) )' && mongo --host mongo-
orders
order --eval 'db.orders.find().forEach( tr => db.orders.update({_id: tr._id}, {$set:{"shipping.when": new Date(tr.shipping.when)}}))'
This diff is collapsed.
Click to expand it.
README.md
+
1
−
1
View file @
07d9e377
...
...
@@ -12,7 +12,7 @@ docker-compose exec mongo-orders mongo admin
in mongodb shell:
```
show dbs;
use order
s
;
use order;
show collections;
db.orders.find();
```
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment