-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from opengisch/fix_ms_libs
install odbc stuff before adding ms repo
- Loading branch information
Showing
1 changed file
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|