From 438f3e99d55552b1d71480552a531ffa6f4ae2c8 Mon Sep 17 00:00:00 2001 From: Tim McCormack Date: Wed, 5 Jul 2023 17:48:33 +0000 Subject: [PATCH] fix: Install pkg-config in image to satisfy mysqlclient==2.2.0 This requirement was recently upgraded, and was causing devstack provisioning tests to fail. --- Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ddf0811d..752f4316 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,8 +10,13 @@ RUN apt-get install -qy \ python3-pip \ python3-virtualenv \ python3.8-dev \ + # libmysqlclient-dev header files needed to use native C implementation for MySQL-python for performance gains. libmysqlclient-dev \ - libssl-dev && \ + # mysqlclient wont install without libssl-dev + libssl-dev \ + # mysqlclient>=2.2.0 requires pkg-config (https://github.com/PyMySQL/mysqlclient/issues/620) + pkg-config \ + && \ # delete apt package lists because we do not need them inflating our image rm -rf /var/lib/apt/lists/*