From 279950883b43188ccbfd7a3cde83b68d4ca85351 Mon Sep 17 00:00:00 2001 From: Aditya <60684641+0x0elliot@users.noreply.github.com> Date: Wed, 22 May 2024 21:22:17 +0530 Subject: [PATCH] fix: debugging 502s in pinging (5) --- .github/workflows/quick-testing.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/quick-testing.yml b/.github/workflows/quick-testing.yml index 9dbf950e..cbdfd1dd 100644 --- a/.github/workflows/quick-testing.yml +++ b/.github/workflows/quick-testing.yml @@ -11,7 +11,7 @@ jobs: uses: actions/checkout@v2 - name: Set up opensearch directory - run: mkdir shuffle-database && chmod -R 755 shuffle-database + run: mkdir shuffle-database && chmod -R 1000:1000 shuffle-database - name: Build the stack run: docker-compose up -d @@ -19,8 +19,9 @@ jobs: - name: Wait for 30 seconds run: sleep 30 - - name: Check for restarting containers in a loop + - name: Check for restarting containers in a loop and fixing perms again once run: | + chmod -R 1000:1000 shuffle-database ATTEMPTS=30 # Total time = ATTEMPTS * 5 seconds = 30 seconds for i in $(seq 1 $ATTEMPTS); do RESTARTING_CONTAINERS=$(docker ps --filter "status=restarting" --format "{{.Names}}")