]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
docker: Use mariadb-client, not mysql-client
authorStephen Finucane <stephen@that.guru>
Wed, 23 Feb 2022 12:47:33 +0000 (12:47 +0000)
committerStephen Finucane <stephen@that.guru>
Wed, 23 Feb 2022 13:43:59 +0000 (13:43 +0000)
As noted in [1], use of mysql-client with mariadb-server can result in
the following errors:

  mysqldump: Couldn't execute 'SELECT COLUMN_NAME, JSON_EXTRACT(HISTOGRAM, '$."number-of-buckets-specified"')
  FROM information_schema.COLUMN_STATISTICS
  WHERE SCHEMA_NAME =3D 'patchwork' AND TABLE_NAME =3D 'auth_group';':
  Unknown table 'COLUMN_STATISTICS' in information_schema (1109)

Use the correct client for the backend.

[1] https://stackoverflow.com/a/67563944/613428

Signed-off-by: Stephen Finucane <stephen@that.guru>
tools/docker/Dockerfile

index 3653d4e77df2c30fedc4b3e5d162aec6da5d1e31..8680957fb5a3ab043621f02779811ce2aacf29c9 100644 (file)
@@ -21,10 +21,10 @@ RUN rm -f /etc/localtime; ln -s /usr/share/zoneinfo/$TZ /etc/localtime
 
 RUN apt-get update && apt-get install -y --no-install-recommends \
     build-essential \
-    libmysqlclient-dev \
+    libmariadbclient-dev \
     libpq-dev \
     libsqlite3-dev \
-    mysql-client \
+    mariadb-client \
     postgresql-client \
     tzdata \
     && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*