From 781b00ad8b04109d509e29c0b5e9110dc3748125 Mon Sep 17 00:00:00 2001 From: Dustin Deus Date: Sun, 14 Apr 2024 20:04:29 +0200 Subject: [PATCH] chore: fix local redis tests (#732) --- .github/workflows/router-ci.yaml | 12 ++++++++++++ docker-compose.yml | 1 + docker/redis/redis.conf | 3 +-- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/router-ci.yaml b/.github/workflows/router-ci.yaml index 3815d08703..5490a99a19 100644 --- a/.github/workflows/router-ci.yaml +++ b/.github/workflows/router-ci.yaml @@ -28,6 +28,12 @@ jobs: redis: # Docker Hub image image: redis:7 + # Set health checks to wait until redis has started + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 ports: - 6379:6379 steps: @@ -94,6 +100,12 @@ jobs: redis: # Docker Hub image image: redis:7 + # Set health checks to wait until redis has started + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 credentials: username: ${{secrets.DOCKER_USERNAME}} password: ${{secrets.DOCKER_PASSWORD}} diff --git a/docker-compose.yml b/docker-compose.yml index 53533659b3..b5be7b570f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -100,6 +100,7 @@ services: ports: - '4317:4317' # otlpgrpc - '4318:4318' # otlphttp + - '8888:8888' # prometheus metrics restart: unless-stopped depends_on: - clickhouse diff --git a/docker/redis/redis.conf b/docker/redis/redis.conf index 0ddde3c153..c269bb24fc 100644 --- a/docker/redis/redis.conf +++ b/docker/redis/redis.conf @@ -1,5 +1,4 @@ maxmemory 100mb maxmemory-policy noeviction save 60 1 -appendonly no -requirepass test \ No newline at end of file +appendonly no \ No newline at end of file