From 7fef1cb93a1ebf747e754a8bc6eebd851dc642d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= Date: Thu, 7 Dec 2023 13:13:12 +0100 Subject: [PATCH] fixup! [CI] Solr image: review suggestions (cron, image tests) --- .github/workflows/gha-docker-solr.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gha-docker-solr.yaml b/.github/workflows/gha-docker-solr.yaml index b13cdd837b..eff73b6e3a 100644 --- a/.github/workflows/gha-docker-solr.yaml +++ b/.github/workflows/gha-docker-solr.yaml @@ -19,6 +19,13 @@ jobs: runs-on: ubuntu-latest permissions: packages: write + services: + redis: + image: redis + ports: + - 6379:6379 + options: + --memory=60m steps: - uses: actions/checkout@v3 with: @@ -44,7 +51,9 @@ jobs: - name: Start Solr image run: | - docker run -d -p 8983:8983 "$IMAGE_NAME:latest" + docker run --health-cmd "solr status" \ + --health-interval 10s --health-timeout 5s --health-retries 10 \ + -d -p 8983:8983 "$IMAGE_NAME:latest" - name: Run Solr integration test suite run: composer test-integration-solr