File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 33This tool provisions a MongoDB cluster for testing. All nodes of the cluster
44run in a single container.
55
6- ## Example Usage
6+ ## Example Usage - Docker Hub
77```
8- # Build the container:
9- docker build . -t mongo-provision
10-
118# Start a 3-node replica set:
12- docker run -it --rm -p27017-27019:27017-27019 mongo-provision 8.0 --replicaset --nodes 3
9+ docker run -it --rm -p27017-27019:27017-27019 felipegasper298/ mongo-provision 8.0 --replicaset --nodes 3
1310
1411# … or, for a sharded cluster:
15- docker run -it --rm -p27017:27017 mongo-provision 8.0 --replicaset --sharded 3 --nodes 3
12+ docker run -it --rm -p27017:27017 felipegasper298/ mongo-provision 8.0 --replicaset --sharded 3 --nodes 3
1613```
1714The above will hang indefinitely until you kill it, e.g., via CTRL-C.
1815
@@ -26,6 +23,14 @@ mongosh mongodb://localhost:27017
2623```
2724… and you’re in!
2825
26+ ## Example Usage - Local
27+ Build the container:
28+ ```
29+ docker build . -t mongo-provision
30+ ```
31+ … then it’s the same as the above but with a local ` mongo-provision ` image
32+ instead of ` felipegasper298/mongo-provision ` .
33+
2934## Syntax
3035The arguments to the container are:
3136- a version number (e.g., ` 8.0 ` ) to give to [ m] ( https://github.com/aheckmann/m )
You can’t perform that action at this time.
0 commit comments