Skip to content

Commit 9f9b2cf

Browse files
Merge pull request #10 from singlestore-labs/upgrade_and_fix_singlestore_image
try upgrading the container and adding more logging if we are waiting awhile
2 parents 8d6cf57 + 1fa3338 commit 9f9b2cf

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/tests.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
services:
4747
singlestore:
4848
# check for new versions at https://hub.docker.com/r/singlestore/cluster-in-a-box/tags
49-
image: singlestore/cluster-in-a-box:alma-7.8.2-8c7b918527-4.0.5-1.13.6
49+
image: singlestore/cluster-in-a-box:alma-7.8.6-4f052c9b50-4.0.7-1.13.8
5050
ports:
5151
- "3306:3306"
5252
env:
@@ -82,8 +82,13 @@ jobs:
8282

8383
- name: Wait for SingleStore to start
8484
run: |
85+
attempts=0
8586
until mysql -h 127.0.0.1 -u root -ptest -e "select 1"; do
8687
echo "waiting for mysql..."
88+
((attempts=attempts+1))
89+
if [[ $attempts -gt 5 ]]; then
90+
docker logs $(docker ps -ql)
91+
fi
8792
sleep 1
8893
done
8994
@@ -101,4 +106,4 @@ jobs:
101106
DB_DATABASE: test
102107
DB_USERNAME: root
103108
DB_PASSWORD: test
104-
DB_HOST: 127.0.0.1
109+
DB_HOST: 127.0.0.1

0 commit comments

Comments
 (0)