Skip to content

Commit 847ff5a

Browse files
author
arthosofteq
authored
Merge pull request #925 from RedisInsight/feature/RI-3244-replace-cluster-5-with-7-for-e2e
replace oss-5-cluster with oss-7-cluster
2 parents 267b967 + 2023e7b commit 847ff5a

File tree

5 files changed

+1945
-6
lines changed

5 files changed

+1945
-6
lines changed

tests/e2e/rte.docker-compose.yml

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,32 @@ services:
5050
oss-sentinel-primary-2:
5151
image: redis:5
5252

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
5864
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
6079

6180
# redis enterprise
6281
redis-enterprise:
@@ -66,3 +85,11 @@ services:
6685
ports:
6786
- 19443:9443
6887
- 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
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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" ]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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"]

0 commit comments

Comments
 (0)