Skip to content

Commit cbf4edf

Browse files
authored
Merge pull request #1749 from RedisInsight/feature/RI-4188-add_rs_2.6_rte
#RI-4188 add redisearch 2.6.5 for redis 7.0.6 oss cluster
2 parents 6531c99 + 6af10ee commit cbf4edf

File tree

6 files changed

+1941
-1
lines changed

6 files changed

+1941
-1
lines changed

redisinsight/api/test/api/database/GET-databases-id-info.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ describe(`GET /databases/:id/info`, () => {
6565

6666

6767
describe('ACL', () => {
68-
requirements('rte.acl', 'rte.type=STANDALONE', '!rte.re');
68+
requirements('rte.acl', 'rte.type=STANDALONE', '!rte.re', '!rte.sharedData');
6969
before(async () => rte.data.setAclUserRules('~* +@all'));
7070
beforeEach(rte.data.truncate);
7171

tests/e2e/rte.docker-compose.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,33 @@ services:
108108
default:
109109
ipv4_address: 172.31.100.213
110110

111+
# oss cluster (v7) with rediserch > 2.2
112+
cluster-rs-creator-7:
113+
build:
114+
context: &cluster-rs-7-build ./rte/oss-cluster-7-rs
115+
dockerfile: creator.Dockerfile
116+
depends_on:
117+
- master-rs-7-1
118+
- master-rs-7-2
119+
- master-rs-7-3
120+
master-rs-7-1:
121+
build: *cluster-rs-7-build
122+
ports:
123+
- 8221:6379
124+
networks:
125+
default:
126+
ipv4_address: 172.31.100.221
127+
master-rs-7-2:
128+
build: *cluster-rs-7-build
129+
networks:
130+
default:
131+
ipv4_address: 172.31.100.222
132+
master-rs-7-3:
133+
build: *cluster-rs-7-build
134+
networks:
135+
default:
136+
ipv4_address: 172.31.100.223
137+
111138
# redis enterprise
112139
redis-enterprise:
113140
build: ./rte/redis-enterprise
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.6.5 as redisearch
4+
5+
FROM redis:7.0.8
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: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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.221:6379 \
9+
172.31.100.222:6379 \
10+
172.31.100.223:6379 \
11+
--cluster-replicas 0 \
12+
&& redis-server
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM redis:7.0.6
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)