1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-17 22:28:46 +01:00

[ticket/16659] Use volume for /var/run/mysqld

PHPBB3-16659
This commit is contained in:
Marc Alexander 2020-12-02 16:25:42 +01:00
parent 5cbe25d415
commit 2cdebe57af
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995
2 changed files with 10 additions and 0 deletions

View File

@ -66,6 +66,7 @@ jobs:
ports:
- 3306:3306
options: >-
-v /srv/docker/sockets/mariadb:/var/run/mysqld
--health-cmd="mysqladmin ping"
--health-interval=10s
--health-timeout=5s

View File

@ -22,6 +22,15 @@ then
travis/setup-unbuffer.sh
fi
if [ "$DB" == "mariadb" ]
then
ls -l /var/run | grep -i mysqld
if [ ! -f "/var/run/mysqld/mysqld.sock" ]; then
ln -s /srv/docker/sockets/mariadb/mysqld.sock /var/run/mysqld/mysqld.sock
fi
fi
if [ "$MYSQL8" == '1' ]
then
travis/setup-mysql8.sh