File tree Expand file tree Collapse file tree 5 files changed +1945
-6
lines changed Expand file tree Collapse file tree 5 files changed +1945
-6
lines changed Original file line number Diff line number Diff line change @@ -50,13 +50,32 @@ services:
50
50
oss-sentinel-primary-2 :
51
51
image : redis:5
52
52
53
- # oss cluster
54
- oss-cluster :
55
- image : rdbtools/redis-cluster-modules
56
- networks :
57
- - default
53
+ # oss cluster (v7)
54
+ cluster-plain-creator-7 :
55
+ build :
56
+ context : ./rte/oss-cluster-7
57
+ dockerfile : creator.Dockerfile
58
+ depends_on :
59
+ - master-plain-7-1
60
+ - master-plain-7-2
61
+ - master-plain-7-3
62
+ master-plain-7-1 :
63
+ build : &cluster-plain-7-build ./rte/oss-cluster-7
58
64
ports :
59
- - 8200:7000
65
+ - 8200:6379
66
+ networks :
67
+ default :
68
+ ipv4_address : 172.31.100.211
69
+ master-plain-7-2 :
70
+ build : *cluster-plain-7-build
71
+ networks :
72
+ default :
73
+ ipv4_address : 172.31.100.212
74
+ master-plain-7-3 :
75
+ build : *cluster-plain-7-build
76
+ networks :
77
+ default :
78
+ ipv4_address : 172.31.100.213
60
79
61
80
# redis enterprise
62
81
redis-enterprise :
@@ -66,3 +85,11 @@ services:
66
85
ports :
67
86
- 19443:9443
68
87
- 12000:12000
88
+ networks :
89
+ default :
90
+ name : " e2e-private-network"
91
+ ipam :
92
+ driver : default
93
+ config :
94
+ - subnet : 172.31.100.0/24
95
+ gateway : 172.31.100.1
Original file line number Diff line number Diff line change
1
+ FROM redislabs/rejson:1.0.8 as rejson
2
+
3
+ FROM redislabs/redisearch:2.0.13 as redisearch
4
+
5
+ FROM redis:7.0.0
6
+
7
+ COPY redis.conf /etc/redis/
8
+ COPY --from=rejson /usr/lib/redis/modules/rejson.so /etc/redis/modules/
9
+ COPY --from=redisearch /usr/lib/redis/modules/redisearch.so /etc/redis/modules/
10
+
11
+ CMD [ "redis-server" , "/etc/redis/redis.conf" ]
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ echo ' Try to sleep for a while...'
4
+ sleep 5
5
+ echo ' Creating cluster...'
6
+ echo " yes" | redis-cli \
7
+ --cluster create \
8
+ 172.31.100.211:6379 \
9
+ 172.31.100.212:6379 \
10
+ 172.31.100.213:6379 \
11
+ --cluster-replicas 0
Original file line number Diff line number Diff line change
1
+ FROM redis:7.0.0
2
+
3
+ USER root
4
+
5
+ COPY cluster-create.sh ./
6
+
7
+ RUN chmod a+x cluster-create.sh
8
+
9
+ CMD ["/bin/sh" , "./cluster-create.sh" ]
You can’t perform that action at this time.
0 commit comments