Skip to content

Commit c22b161

Browse files
committed
Update README for Docker Hub.
1 parent d9d2b00 commit c22b161

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

README.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,13 @@
33
This tool provisions a MongoDB cluster for testing. All nodes of the cluster
44
run 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
```
1714
The 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
3035
The arguments to the container are:
3136
- a version number (e.g., `8.0`) to give to [m](https://github.com/aheckmann/m)

0 commit comments

Comments
 (0)