From e606090f173e550430e69daa34e4760e8fe80ea3 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 11 Oct 2021 18:28:42 +0200 Subject: [PATCH] Fix legacy tests missing the python deps Signed-off-by: Thomas Citharel --- docker/tests/Dockerfile-legacy | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docker/tests/Dockerfile-legacy b/docker/tests/Dockerfile-legacy index a9080640..870b3837 100644 --- a/docker/tests/Dockerfile-legacy +++ b/docker/tests/Dockerfile-legacy @@ -19,10 +19,15 @@ RUN set -xe \ CMD ["iex"] -ENV REFRESHED_AT=2021-06-07 -RUN apt-get update -yq && apt-get install -yq build-essential inotify-tools postgresql-client git curl gnupg xvfb libgtk-3-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 cmake exiftool +ENV REFRESHED_AT=2021-10-11 +RUN apt-get update -yq && apt-get install -yq build-essential inotify-tools postgresql-client git curl gnupg xvfb libgtk-3-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 cmake exiftool python3-pip python3-setuptools RUN curl -sL https://deb.nodesource.com/setup_12.x | bash && apt-get install nodejs -yq RUN npm install -g yarn wait-on RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* RUN mix local.hex --force && mix local.rebar --force +# Weasyprint 53 requires pango >= 1.44.0, which is not available in Stretch. +# TODO: Remove the version requirement when elixir:latest is based on Bullseye +# https://github.com/erlang/docker-erlang-otp/issues/362 +# https://github.com/Kozea/WeasyPrint/issues/1384 +RUN pip3 install -Iv weasyprint==52 pyexcel_ods3 RUN curl https://dbip.mirror.framasoft.org/files/dbip-city-lite-latest.mmdb --output GeoLite2-City.mmdb -s && mkdir -p /usr/share/GeoIP && mv GeoLite2-City.mmdb /usr/share/GeoIP/