From 9ba8ab38e489312e86e3aed7bebb25205c3f35aa Mon Sep 17 00:00:00 2001 From: tyranron Date: Thu, 3 Jun 2021 14:22:51 +0300 Subject: [PATCH] Aid alpine Docker image for 4.5.2 Coturn release --- docker/coturn/alpine/Dockerfile | 4 +++- docker/coturn/tests/main.bats | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docker/coturn/alpine/Dockerfile b/docker/coturn/alpine/Dockerfile index a05916f..97cd0d3 100644 --- a/docker/coturn/alpine/Dockerfile +++ b/docker/coturn/alpine/Dockerfile @@ -128,7 +128,9 @@ RUN if [ "${coturn_git_ref}" != 'HEAD' ]; then true \ && true; fi # Build Coturn from sources. -RUN ./configure --prefix=/usr \ +# TODO: Remove this symlink with next Coturn release detecting MySQL libs correctly. +RUN ln -s /usr/lib/pkgconfig/libmariadb.pc /usr/lib/pkgconfig/mariadb.pc \ + && ./configure --prefix=/usr \ --turndbdir=/var/lib/coturn \ --disable-rpath \ --sysconfdir=/etc/coturn \ diff --git a/docker/coturn/tests/main.bats b/docker/coturn/tests/main.bats index e093a1a..3885379 100644 --- a/docker/coturn/tests/main.bats +++ b/docker/coturn/tests/main.bats @@ -35,7 +35,7 @@ [ -z "$COTURN_VERSION" ] && skip run docker run --rm --platform $PLATFORM --entrypoint sh $IMAGE -c \ - "turnserver -o --log-file=stdout | grep 'Version Coturn' \ + "turnserver -o --log-file=stdout | grep -m 1 'Version Coturn' \ | cut -d ' ' -f2 \ | cut -d '-' -f2" [ "$status" -eq 0 ]