File tree Expand file tree Collapse file tree 3 files changed +9
-12
lines changed Expand file tree Collapse file tree 3 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -241,12 +241,9 @@ jobs:
241
241
: $((++i))
242
242
done
243
243
env :
244
- HOST_ADDR : ${{ steps.host_ip_addr.outputs.host_ip_addr }}
245
244
MAX_ATTEMPTS : " 10"
246
245
- name : Print containers
247
246
run : docker compose -f $DOCKER_COMPOSE_FILE ps
248
- env :
249
- HOST_ADDR : ${{ steps.host_ip_addr.outputs.host_ip_addr }}
250
247
- name : Build cluster
251
248
run : bundle exec rake "build_cluster[$HOST_ADDR]"
252
249
env :
@@ -256,8 +253,6 @@ jobs:
256
253
run : bundle exec rake test
257
254
- name : Stop containers
258
255
run : docker compose -f $DOCKER_COMPOSE_FILE down
259
- env :
260
- HOST_ADDR : ${{ steps.host_ip_addr.outputs.host_ip_addr }}
261
256
benchmark :
262
257
name : Benchmark
263
258
timeout-minutes : 15
Original file line number Diff line number Diff line change @@ -188,10 +188,12 @@ Please run Redis cluster with Docker.
188
188
## If you use Docker server and your OS is Linux:
189
189
$ docker compose up
190
190
191
- ## Else:
192
- $ host_addr="$(ip a | grep eth0 | grep inet | awk '{print $2}' | cut -d'/' -f1)"
193
- $ HOST_ADDR=$host_addr docker compose -f compose.nat.yaml up
194
- $ bundle exec rake "build_cluster[$host_addr]"
191
+ ## else:
192
+ $ HOST_ADDR=192.168.xxx.xxx docker compose -f compose.nat.yaml up
193
+ $ DEBUG=1 bundle exec rake 'build_cluster[192.168.xxx.xxx]'
194
+
195
+ ### When the above rake task is not working:
196
+ $ docker compose -f compose.nat.yaml exec node1 bash -c "yes yes | redis-cli --cluster create --cluster-replicas 1 $(seq 6379 6384 | xargs -I {} echo 192.168.xxx.xxx:{} | xargs echo)"
195
197
```
196
198
197
199
Please run basic test cases.
Original file line number Diff line number Diff line change 1
1
---
2
2
# First things first, make sure the default-address-pools settings in /etc/docker/daemon.json
3
- # HOST_ADDR=192.168.11.9 docker compose -f docker- compose.nat.yaml up
4
- # HOST_ADDR=192.168.11.7 docker compose -f docker- compose.nat.yaml up
5
- # bundle exec rake 'build_cluster[192.168.11.9,192.168.11.7]'
3
+ # HOST_ADDR=192.168.11.9 docker compose -f compose.nat.yaml up
4
+ # HOST_ADDR=192.168.11.7 docker compose -f compose.nat.yaml up
5
+ # DEBUG=1 bundle exec rake 'build_cluster[192.168.11.9,192.168.11.7]'
6
6
services :
7
7
node1 : &node
8
8
image : " redis:${REDIS_VERSION:-7}"
You can’t perform that action at this time.
0 commit comments