@@ -316,9 +316,7 @@ Please make sure the following tools are installed on your machine.
316
316
| Tool | Version | URL |
317
317
| --- | --- | --- |
318
318
| Docker | latest stable | https://docs.docker.com/engine/install/ |
319
- | Docker Compose | V2 | https://docs.docker.com/compose/reference/ |
320
319
| Ruby | latest stable | https://www.ruby-lang.org/en/ |
321
- | Bundler | latest satble | https://bundler.io/ |
322
320
323
321
Please fork this repository and check out the codes.
324
322
@@ -329,30 +327,23 @@ $ git remote add upstream https://github.com/redis-rb/redis-cluster-client.git
329
327
$ git fetch -p upstream
330
328
```
331
329
332
- Please install libraries .
330
+ Please do the following steps .
333
331
334
- ```
335
- $ bundle install --path=.bundle --jobs=4
336
- ```
337
-
338
- Please run Redis cluster with Docker.
332
+ * Build a Redis cluster with Docker
333
+ * Install gems
334
+ * Run basic test cases
339
335
340
336
```
341
337
## If you use Docker server and your OS is Linux:
338
+ $ bundle config set path '.bundle'
339
+ $ bundle install --jobs=$(grep process /proc/cpuinfo | wc -l)
342
340
$ docker compose up
341
+ $ bundle exec rake test
343
342
344
343
## else:
345
- $ HOST_ADDR=192.168.xxx.xxx docker compose -f compose.nat.yaml up
346
- $ DEBUG=1 bundle exec rake 'build_cluster[192.168.xxx.xxx]'
347
-
348
- ### When the above rake task is not working:
349
- $ 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)"
350
- ```
351
-
352
- Please run basic test cases.
353
-
354
- ```
355
- $ bundle exec rake test
344
+ $ docker compose --profile ruby up
345
+ $ docker compose --profile ruby exec ruby bundle install
346
+ $ docker compose --profile ruby exec ruby bundle exec rake test
356
347
```
357
348
358
349
You can see more information in the YAML file for GItHub actions.
0 commit comments