Skip to content

Commit

Permalink
Merge pull request #54 from opengisch/fix_ms_libs
Browse files Browse the repository at this point in the history
install odbc stuff before adding ms repo
  • Loading branch information
signedav authored Feb 15, 2023
2 parents 6ac2463 + a6dfc8e commit d1da8c6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
ARG QGIS_TEST_VERSION=latest
FROM qgis/qgis:${QGIS_TEST_VERSION}
MAINTAINER Matthias Kuhn <[email protected]>

RUN apt-get update && \
apt-get -y install openjdk-8-jre \
python3-pip \
&& 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
Expand Down

0 comments on commit d1da8c6

Please sign in to comment.