fix: debugging 502s in pinging (4)
This commit is contained in:
@@ -10,6 +10,9 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Set up opensearch directory
|
||||||
|
run: mkdir shuffle-database && chmod -R 755 shuffle-database
|
||||||
|
|
||||||
- name: Build the stack
|
- name: Build the stack
|
||||||
run: docker-compose up -d
|
run: docker-compose up -d
|
||||||
|
|
||||||
@@ -31,7 +34,7 @@ jobs:
|
|||||||
done
|
done
|
||||||
echo "No containers were found in a restarting state after $ATTEMPTS checks."
|
echo "No containers were found in a restarting state after $ATTEMPTS checks."
|
||||||
|
|
||||||
- name: Check if the response from the web service includes "Shuffle"
|
- name: Check if the response from the frontend contains the word "Shuffle"
|
||||||
run: |
|
run: |
|
||||||
RESPONSE=$(curl -s http://localhost:3001)
|
RESPONSE=$(curl -s http://localhost:3001)
|
||||||
if echo "$RESPONSE" | grep -q "Shuffle"; then
|
if echo "$RESPONSE" | grep -q "Shuffle"; then
|
||||||
@@ -65,7 +68,6 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Received status code $STATUS_CODE. Retrying in $RETRY_INTERVAL seconds... ($i/$MAX_RETRIES)"
|
echo "Received status code $STATUS_CODE. Retrying in $RETRY_INTERVAL seconds... ($i/$MAX_RETRIES)"
|
||||||
|
|
||||||
echo "Fetching last 30 lines of logs from container $CONTAINER_NAME..."
|
echo "Fetching last 30 lines of logs from container $CONTAINER_NAME..."
|
||||||
|
|
||||||
logs_output=$(docker logs --tail 30 "$CONTAINER_NAME")
|
logs_output=$(docker logs --tail 30 "$CONTAINER_NAME")
|
||||||
|
|||||||
Reference in New Issue
Block a user