Skip to content

Commit 88e6193

Browse files
committedMar 7, 2019
Revert "optimize Dockerfile for build deps"
This reverts commit 9cdf051.
1 parent a294fc7 commit 88e6193

File tree

2 files changed

+20
-24
lines changed

2 files changed

+20
-24
lines changed
 

‎.docker/qgis3-build-deps-cosmic.dockerfile

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,15 @@ MAINTAINER Denis Rouzaud <denis@opengis.ch>
33

44
LABEL Description="Docker container with QGIS dependencies" Vendor="QGIS.org" Version="1.0"
55

6-
#############
7-
# Add sources
8-
#############
96
# && echo "deb http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu xenial main" >> /etc/apt/sources.list \
107
# && echo "deb-src http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu xenial main" >> /etc/apt/sources.list \
118
# && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 314DF160 \
129

13-
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
14-
RUN curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | tee /etc/apt/sources.list.d/msprod.list
1510

16-
##################
17-
# Install packages
18-
##################
1911
RUN apt-get update \
2012
&& apt-get install -y software-properties-common \
2113
&& apt-get update \
22-
&& ACCEPT_EULA=Y apt-get install -y \
14+
&& apt-get install -y \
2315
apt-transport-https \
2416
bison \
2517
ca-certificates \
@@ -121,15 +113,21 @@ RUN apt-get update \
121113
owslib \
122114
oauthlib \
123115
pyopenssl \
124-
msodbcsql17 \
125-
mssql-tools
126116
&& apt-get clean
127117

118+
119+
# MSSQL: client side
120+
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
121+
RUN curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | tee /etc/apt/sources.list.d/msprod.list
122+
RUN apt-get update
123+
RUN ACCEPT_EULA=Y apt-get install -y msodbcsql17 mssql-tools
124+
128125
# Avoid sqlcmd termination due to locale -- see https://github.com/Microsoft/mssql-docker/issues/163
129126
RUN echo "nb_NO.UTF-8 UTF-8" > /etc/locale.gen
130127
RUN echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
131128
RUN locale-gen
132129

130+
133131
RUN echo "alias python=python3" >> ~/.bash_aliases
134132

135133
ENV CC=/usr/lib/ccache/clang
@@ -138,3 +136,4 @@ ENV QT_SELECT=5
138136
ENV LANG=C.UTF-8
139137
ENV PATH="/usr/local/bin:${PATH}"
140138

139+
CMD /root/QGIS/.ci/travis/linux/docker-build-test.sh

‎.docker/qgis3-build-deps.dockerfile

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,15 @@ MAINTAINER Denis Rouzaud <denis@opengis.ch>
33

44
LABEL Description="Docker container with QGIS dependencies" Vendor="QGIS.org" Version="1.1"
55

6-
#############
7-
# Add sources
8-
#############
96
# && echo "deb http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu xenial main" >> /etc/apt/sources.list \
107
# && echo "deb-src http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu xenial main" >> /etc/apt/sources.list \
118
# && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 314DF160 \
129

13-
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
14-
RUN curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | tee /etc/apt/sources.list.d/msprod.list
1510

16-
##################
17-
# Install packages
18-
##################
1911
RUN apt-get update \
2012
&& apt-get install -y software-properties-common \
2113
&& apt-get update \
22-
&& DEBIAN_FRONTEND=noninteractive ACCEPT_EULA=Y \
14+
&& DEBIAN_FRONTEND=noninteractive \
2315
apt-get install -y \
2416
apt-transport-https \
2517
bison \
@@ -134,15 +126,21 @@ RUN apt-get update \
134126
sphinx \
135127
requests \
136128
six \
137-
msodbcsql17 \
138-
mssql-tools
139129
&& apt-get clean
140130

131+
132+
# MSSQL: client side
133+
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
134+
RUN curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | tee /etc/apt/sources.list.d/msprod.list
135+
RUN apt-get update
136+
RUN ACCEPT_EULA=Y apt-get install -y msodbcsql17 mssql-tools
137+
141138
# Avoid sqlcmd termination due to locale -- see https://github.com/Microsoft/mssql-docker/issues/163
142139
RUN echo "nb_NO.UTF-8 UTF-8" > /etc/locale.gen
143140
RUN echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
144141
RUN locale-gen
145142

143+
146144
RUN echo "alias python=python3" >> ~/.bash_aliases
147145

148146
# OTB: download and install otb packages for QGIS tests
@@ -155,5 +153,4 @@ ENV QT_SELECT=5
155153
ENV LANG=C.UTF-8
156154
ENV PATH="/usr/local/bin:${PATH}"
157155

158-
159-
156+
CMD /root/QGIS/.ci/travis/linux/docker-build-test.sh

0 commit comments

Comments
 (0)
Please sign in to comment.