Skip to content

Commit

Permalink
Add RedisGears to db (#12)
Browse files Browse the repository at this point in the history
Co-authored-by: Vladyslav Vildanov <[email protected]>
  • Loading branch information
ofekshenawa and vladvildanov committed Jan 8, 2024
1 parent 35d85a5 commit 4ab7de4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ jobs:
- name: Run PING command
run: |
docker exec master bash -c "/opt/redislabs/bin/redis-cli -p ${{ env.RE_DB_PORT }} ping"
docker exec master bash -c "/opt/redislabs/bin/redis-cli -p ${{ env.RE_DB_PORT }} ping"
docker exec master bash -c "/opt/redislabs/bin/rladmin status modules"
18 changes: 17 additions & 1 deletion create_db.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
#!/bin/bash

curl -u $RE_USERNAME:$RE_PASS -H "Content-type: application/json" \
-d '{"name": "db", "port": '$RE_DB_PORT', "memory_size": 1273741824, "replication": false, "eviction_policy": "volatile-lru", "sharding": true, "shards_count": 3, "module_list": [{"module_args": "", "module_name": "ReJSON"},{"module_args": "", "module_name": "search"},{"module_args": "", "module_name": "timeseries"},{"module_args": "", "module_name": "bf"}], "oss_cluster": '$RE_USE_OSS_CLUSTER', "proxy_policy": "all-nodes", "shards_placement": "sparse", "shard_key_regex": [{"regex": ".*\\{(?<tag>.*)\\}.*"},{"regex": "(?<tag>.*)"}]}' \
-d '{
"name": "db",
"port": '$RE_DB_PORT',
"memory_size": 1273741824,
"replication": false,
"eviction_policy": "volatile-lru",
"sharding": true, "shards_count": 3,
"module_list": [
{"module_args": "","module_name": "ReJSON"},
{"module_args": "", "module_name": "search"},
{"module_args": "", "module_name": "timeseries"},
{"module_args": "", "module_name": "redisgears_2"},
{"module_args": "", "module_name": "bf"}],
"oss_cluster": '$RE_USE_OSS_CLUSTER',
"proxy_policy": "all-nodes",
"shards_placement": "sparse",
"shard_key_regex": [{"regex": ".*\\{(?<tag>.*)\\}.*"},{"regex": "(?<tag>.*)"}]}' \
-k -X POST -f https://localhost:9443/v1/bdbs

0 comments on commit 4ab7de4

Please sign in to comment.