From 420554215cd26ed946f6794fcaacebd390cf2ab1 Mon Sep 17 00:00:00 2001 From: Gustaf Haglund Date: Tue, 26 Nov 2024 23:35:30 +0000 Subject: [PATCH] chore: Switch to libmariadb-dev --- Dockerfile | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/Dockerfile b/Dockerfile index 770b43eb8b..3f58355337 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,12 +11,10 @@ ARG DATABASE_BACKEND=spanner # cmake is required to build grpcio-sys for Spanner builds RUN \ - # Fetch and load the MySQL public key. We need to install libmysqlclient-dev to build syncstorage-rs + # We need to install libmariadb-dev to build syncstorage-rs # which wants the mariadb - wget -qO- https://repo.mysql.com/RPM-GPG-KEY-mysql-2023 > /etc/apt/trusted.gpg.d/mysql.asc && \ - echo "deb https://repo.mysql.com/apt/debian/ bullseye mysql-8.0" >> /etc/apt/sources.list && \ apt-get -q update && \ - apt-get -q install -y --no-install-recommends libmysqlclient-dev cmake + apt-get -q install -y --no-install-recommends libmariadb-dev-compat libmariadb-dev cmake COPY --from=planner /app/recipe.json recipe.json RUN cargo chef cook --release --no-default-features --features=syncstorage-db/$DATABASE_BACKEND --features=py_verifier --recipe-path recipe.json @@ -29,15 +27,8 @@ COPY --from=cacher /app/target /app/target COPY --from=cacher $CARGO_HOME /app/$CARGO_HOME RUN \ - # Fetch and load the MySQL public key - wget -qO- https://repo.mysql.com/RPM-GPG-KEY-mysql-2023 > /etc/apt/trusted.gpg.d/mysql.asc && \ - echo "deb https://repo.mysql.com/apt/debian/ bullseye mysql-8.0" >> /etc/apt/sources.list && \ - # mysql_pubkey.asc from: - # https://dev.mysql.com/doc/refman/8.0/en/checking-gpg-signature.html - # related: - # https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/#repo-qg-apt-repo-manual-setup apt-get -q update && \ - apt-get -q install -y --no-install-recommends libmysqlclient-dev cmake golang-go python3-dev python3-pip python3-setuptools python3-wheel && \ + apt-get -q install -y --no-install-recommends libmariadb-dev-compat libmariadb-dev cmake golang-go python3-dev python3-pip python3-setuptools python3-wheel && \ pip3 install -r requirements.txt && \ rm -rf /var/lib/apt/lists/* @@ -74,7 +65,7 @@ RUN \ wget -qO- https://repo.mysql.com/RPM-GPG-KEY-mysql-2023 > /etc/apt/trusted.gpg.d/mysql.asc && \ # update again now that we trust repo.mysql.com apt-get -q update && \ - apt-get -q install -y build-essential libmysqlclient-dev libssl-dev libffi-dev libcurl4 python3-dev python3-pip python3-setuptools python3-wheel cargo curl jq && \ + apt-get -q install -y build-essential libmariadb-dev-compat libmariadb-dev libssl-dev libffi-dev libcurl4 python3-dev python3-pip python3-setuptools python3-wheel cargo curl jq && \ # The python3-cryptography debian package installs version 2.6.1, but we # we want to use the version specified in requirements.txt. To do this, # we have to remove the python3-cryptography package here.