From 9592a785fbe9090b8299fc784e4cd317866ec3b5 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Thu, 12 Aug 2021 18:44:51 +0200 Subject: [PATCH] =?UTF-8?q?=E2=AC=87=EF=B8=8F=20=20Downgrade=20MongoDB=20t?= =?UTF-8?q?o=203.4=20to=20provide=20an=20upgrade=20path=20(#247)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * :arrow_down: Downgrade MongoDB to 3.4 to provide an upgrade path * Pin gnupg2 --- unifi/Dockerfile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/unifi/Dockerfile b/unifi/Dockerfile index 7b9f4f9..5f48fb1 100755 --- a/unifi/Dockerfile +++ b/unifi/Dockerfile @@ -9,13 +9,22 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"] ARG BUILD_ARCH=amd64 RUN \ apt-get update \ + && apt-get install -y --no-install-recommends \ + gnupg2=2.2.4-1ubuntu1.4 \ + \ + && curl -fsSL "https://www.mongodb.org/static/pgp/server-3.4.asc" \ + | apt-key add -\ + && echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" \ + > /etc/apt/sources.list.d/mongodb.list \ \ + && apt-get update \ && apt-get install -y --no-install-recommends \ binutils=2.30-21ubuntu1~18.04.5 \ jsvc=1.0.15-8 \ libcap2=1:2.25-1.2 \ + libssl1.0.0=1.0.2n-1ubuntu5.6 \ logrotate=3.11.0-0.1ubuntu1 \ - mongodb-server=1:3.6.3-0ubuntu1.1 \ + mongodb-org-server=3.4.24 \ openjdk-8-jdk-headless=8u292-b10-0ubuntu1~18.04 \ \ && curl -J -L -o /tmp/unifi.deb \ @@ -23,6 +32,10 @@ RUN \ \ && dpkg --install /tmp/unifi.deb \ \ + && apt-get remove -y --purge \ + gnupg2 \ + \ + && apt-get clean \ && rm -fr \ /tmp/* \ /root/.gnupg \