Skip to content

Commit bb2fc08

Browse files
committed
#15 Support for replication protocol version 0 was removed in Mongo 4.0.
1 parent 2842c22 commit bb2fc08

File tree

5 files changed

+16
-26
lines changed

5 files changed

+16
-26
lines changed

ENV.md

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Test rig
22

3+
Using `mongo:latest` image, tested on "MONGO_VERSION=4.0.1".
4+
35
# Docker for Windows
46

57
| Key | Value |
@@ -11,15 +13,3 @@
1113
| Built | Wed Jul 18 19:13:46 2018 |
1214
| OS/Arch | windows/amd64 |
1315
| Experimental | false |
14-
15-
# Linux
16-
17-
| Key | Value |
18-
|----------------|--------------------|
19-
| Version | 1.12.6 |
20-
| API version | 1.24 |
21-
| Go version | go1.6.4 |
22-
| OS type | linux |
23-
| OS | Ubuntu 16.04.1 LTS |
24-
| Architecture | amd64 |
25-
| Kernel version | 4.4.0-57-generic |

docker-compose.1.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@ version: '3'
22
services:
33
mongo-1-2:
44
container_name: "mongo-1-2"
5-
image: mongo
5+
image: mongo:4.0.1
66
ports:
77
- "30012:27017"
88
command: mongod --replSet rs1 --shardsvr --port 27017 --oplogSize 16 --noprealloc --smallfiles
99
restart: always
1010

1111
mongo-1-3:
1212
container_name: "mongo-1-3"
13-
image: mongo
13+
image: mongo:4.0.1
1414
ports:
1515
- "30013:27017"
1616
command: mongod --replSet rs1 --shardsvr --port 27017 --oplogSize 16 --noprealloc --smallfiles
1717
restart: always
1818

1919
mongo-1-1:
2020
container_name: "mongo-1-1"
21-
image: mongo
21+
image: mongo:4.0.1
2222
ports:
2323
- "30011:27017"
2424
command: mongod --replSet rs1 --shardsvr --port 27017 --oplogSize 16 --noprealloc --smallfiles
@@ -29,7 +29,7 @@ services:
2929

3030
mongo-rs1-setup:
3131
container_name: "mongo-rs1-setup"
32-
image: mongo
32+
image: mongo:4.0.1
3333
depends_on:
3434
- "mongo-1-1"
3535
- "mongo-1-2"

docker-compose.2.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@ version: '3'
22
services:
33
mongo-2-2:
44
container_name: "mongo-2-2"
5-
image: mongo
5+
image: mongo:4.0.1
66
ports:
77
- "30022:27017"
88
command: mongod --replSet rs2 --shardsvr --port 27017 --oplogSize 16 --noprealloc --smallfiles
99
restart: always
1010

1111
mongo-2-3:
1212
container_name: "mongo-2-3"
13-
image: mongo
13+
image: mongo:4.0.1
1414
ports:
1515
- "30023:27017"
1616
command: mongod --replSet rs2 --shardsvr --port 27017 --oplogSize 16 --noprealloc --smallfiles
1717
restart: always
1818

1919
mongo-2-1:
2020
container_name: "mongo-2-1"
21-
image: mongo
21+
image: mongo:4.0.1
2222
ports:
2323
- "30021:27017"
2424
command: mongod --replSet rs2 --shardsvr --port 27017 --oplogSize 16 --noprealloc --smallfiles
@@ -29,7 +29,7 @@ services:
2929

3030
mongo-rs2-setup:
3131
container_name: "mongo-rs2-setup"
32-
image: mongo
32+
image: mongo:4.0.1
3333
depends_on:
3434
- "mongo-2-1"
3535
- "mongo-2-2"

docker-compose.cnf.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@ version: '3'
22
services:
33
mongo-cnf-2:
44
container_name: "mongo-cnf-2"
5-
image: mongo
5+
image: mongo:4.0.1
66
ports:
77
- "30102:27017"
88
command: mongod --replSet cnf-serv --configsvr --port 27017 --oplogSize 16 --noprealloc --smallfiles
99
restart: always
1010

1111
mongo-cnf-3:
1212
container_name: "mongo-cnf-3"
13-
image: mongo
13+
image: mongo:4.0.1
1414
ports:
1515
- "30103:27017"
1616
command: mongod --replSet cnf-serv --configsvr --port 27017 --oplogSize 16 --noprealloc --smallfiles
1717
restart: always
1818

1919
mongo-cnf-1:
2020
container_name: "mongo-cnf-1"
21-
image: mongo
21+
image: mongo:4.0.1
2222
ports:
2323
- "30101:27017"
2424
command: mongod --replSet cnf-serv --configsvr --port 27017 --oplogSize 16 --noprealloc --smallfiles
@@ -29,7 +29,7 @@ services:
2929

3030
mongo-cnf-setup:
3131
container_name: "mongo-cnf-setup"
32-
image: mongo
32+
image: mongo:4.0.1
3333
depends_on:
3434
- "mongo-cnf-1"
3535
- "mongo-cnf-2"

docker-compose.shard.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '3'
22
services:
33
mongo-router:
44
container_name: "mongo-router"
5-
image: mongo
5+
image: mongo:4.0.1
66
ports:
77
- "30001:27017"
88
depends_on:
@@ -24,7 +24,7 @@ services:
2424

2525
mongo-shard-setup:
2626
container_name: "mongo-shard-setup"
27-
image: mongo
27+
image: mongo:4.0.1
2828
depends_on:
2929
- "mongo-router"
3030
links:

0 commit comments

Comments
 (0)