[dev] Use "ping" in redis-cli, which is compatible with newer versions (#20989)

* [dev] Use "-ping" in redis-cli, which is compatible with newer versions

* Fix ping invocation

Co-authored-by: iQQBot <tianshi8650@gmail.com>

---------

Co-authored-by: iQQBot <tianshi8650@gmail.com>
This commit is contained in:
Gero Posmyk-Leinemann 2025-08-01 11:52:47 +02:00 committed by GitHub
parent a31ae29451
commit 9b7dd9f5c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,7 +26,7 @@
"start-testdb": "leeway run components/gitpod-db:init-testdb",
"start-spicedb": "leeway run components/spicedb:start-spicedb",
"stop-spicedb": "leeway run components/spicedb:stop-spicedb",
"start-redis": "if redis-cli -h ${REDIS_HOST:-0.0.0.0} -e ping; then echo 'Redis is already running.'; else docker run --rm --name test-redis -p 6379:6379 -d redis; fi",
"start-redis": "if redis-cli -h ${REDIS_HOST:-0.0.0.0} ping; then echo 'Redis is already running.'; else docker run --rm --name test-redis -p 6379:6379 -d redis; fi",
"stop-redis": "docker stop test-redis || true",
"telepresence": "telepresence --swap-deployment server --method inject-tcp --run yarn start-inspect"
},