Skip to content

Commit

Permalink
Fixed wrong exitcode for cURL and docker-compose fails (#10)
Browse files Browse the repository at this point in the history
* Fixed wrong exitcode for cURL and docker-compose fails

* Added TTY option

* Removed TTY option
  • Loading branch information
vladvildanov committed Jan 8, 2024
1 parent 96c72e0 commit 35d85a5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ jobs:
- name: Run PING command
run: |
docker-compose exec -T master-node 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"
2 changes: 1 addition & 1 deletion create_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

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>.*)"}]}' \
-k -X POST https://localhost:9443/v1/bdbs
-k -X POST -f https://localhost:9443/v1/bdbs
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ version: "3.9"
services:
master-node:
image: "${IMAGE}"
container_name: "master"
cap_add:
- SYS_RESOURCE
ports:
Expand All @@ -25,6 +26,7 @@ services:

node-1:
image: "${IMAGE}"
container_name: "slave-1"
cap_add:
- SYS_RESOURCE
depends_on:
Expand All @@ -48,6 +50,7 @@ services:

node-2:
image: "${IMAGE}"
container_name: "slave-2"
cap_add:
- SYS_RESOURCE
depends_on:
Expand Down

0 comments on commit 35d85a5

Please sign in to comment.