From a6dfc8eea64867290b335c7375e436b00be224fd Mon Sep 17 00:00:00 2001 From: signedav Date: Wed, 15 Feb 2023 09:30:32 +0100 Subject: [PATCH] install odbc stuff before adding ms repo --- .docker/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.docker/Dockerfile b/.docker/Dockerfile index 8434881..b9c1f8b 100644 --- a/.docker/Dockerfile +++ b/.docker/Dockerfile @@ -1,6 +1,5 @@ ARG QGIS_TEST_VERSION=latest FROM qgis/qgis:${QGIS_TEST_VERSION} -MAINTAINER Matthias Kuhn RUN apt-get update && \ apt-get -y install openjdk-8-jre \ @@ -8,10 +7,13 @@ RUN apt-get update && \ && rm -rf /var/lib/apt/lists/* # MSSQL: client side +RUN apt-get update +RUN apt-get install -y unixodbc unixodbc-dev odbcinst odbcinst1debian2 libodbc1 libqt5sql5-odbc + RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - RUN curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list | tee /etc/apt/sources.list.d/msprod.list RUN apt-get update -RUN ACCEPT_EULA=Y apt-get install -y msodbcsql17 mssql-tools unixodbc unixodbc-dev libqt5sql5-odbc +RUN ACCEPT_EULA=Y apt-get install -y msodbcsql17 mssql-tools COPY ./requirements.txt /tmp/ RUN pip3 install -r /tmp/requirements.txt