|
| 1 | +FROM ubuntu:18.04 |
| 2 | +MAINTAINER Denis Rouzaud <denis@opengis.ch> |
| 3 | + |
| 4 | +LABEL Description="Docker container with QGIS dependencies" Vendor="QGIS.org" Version="1.0" |
| 5 | + |
| 6 | +RUN apt-get update |
| 7 | +RUN apt-get install -y software-properties-common |
| 8 | +RUN apt-get update |
| 9 | +RUN apt-get install -y curl tar |
| 10 | + |
| 11 | +WORKDIR /root |
| 12 | +RUN curl -s -S -O https://www.riverbankcomputing.com/hg/sip/archive/tip.tar.gz \ |
| 13 | + && tar xzf tip.tar.gz |
| 14 | + |
| 15 | +RUN apt-get install -y make |
| 16 | + |
| 17 | +RUN mkdir /root/sip419 |
| 18 | +RUN mv $(find -type d -iname 'sip-*')/* sip419 |
| 19 | +WORKDIR /root/sip419 |
| 20 | +RUN sed -i -r "s/RM_HEXVERSION = '04ffff'/RM_HEXVERSION = '041308'/; s/RM_RELEASE = '4.255.255'/RM_RELEASE = '4.19.8'/" build.py |
| 21 | +#RUN python3 build.py prepare && python3 configure.py && make && make install |
| 22 | + |
| 23 | +RUN apt-get install -y python3-sip |
| 24 | + |
| 25 | +WORKDIR /root |
| 26 | +RUN curl -s -S -O https://svwh.dl.sourceforge.net/project/pyqt/PyQt5/PyQt-5.9.2/PyQt5_gpl-5.9.2.tar.gz |
| 27 | +RUN tar xzf PyQt5_gpl-5.9.2.tar.gz |
| 28 | +WORKDIR /root/PyQt5_gpl-5.9.2 |
| 29 | +RUN apt-get update |
| 30 | +RUN apt-get install -y qt5-qmake |
| 31 | +RUN apt-get install -y g++ |
| 32 | +RUN apt-get install -y flex bison |
| 33 | +RUN apt-get install -y python3-dev |
| 34 | + |
| 35 | +WORKDIR /root/sip419 |
| 36 | +RUN python3 build.py prepare && python3 configure.py && make && make install |
| 37 | + |
| 38 | +RUN apt-get install -y qt5-default |
| 39 | +RUN apt-get install -y libqt5svg5-dev |
| 40 | +WORKDIR /root/PyQt5_gpl-5.9.2 |
| 41 | +RUN python3 configure.py --verbose --confirm-license --qmake /usr/lib/x86_64-linux-gnu/qt5/bin/qmake --qsci-api --enable QtGui --enable QtSvg --enable QtSql |
| 42 | +RUN make && make install |
| 43 | + |
| 44 | +WORKDIR /root |
| 45 | +RUN curl -s -S -O https://cfhcable.dl.sourceforge.net/project/pyqt/QScintilla2/QScintilla-2.10.3/QScintilla_gpl-2.10.3.tar.gz |
| 46 | +RUN tar xzf QScintilla_gpl-2.10.3.tar.gz |
| 47 | +WORKDIR /root/QScintilla_gpl-2.10.3/Python |
| 48 | +# RUN python3 configure.py --pyqt=PyQt5 |
| 49 | +# RUN make |
| 50 | +# RUN make install |
0 commit comments