scrapinghub / portia

Visual scraping for Scrapy
BSD 3-Clause "New" or "Revised" License
9.22k stars 1.41k forks source link

Docker build error #877

Open mprashanth73 opened 5 years ago

mprashanth73 commented 5 years ago

after running sudo docker build . -t portia i got this error..

img_20181231_181948

abale commented 4 years ago

Caused by docker curl not outputting the qt web installer...

here's the fix -

Download the ftp.fau.de/qtproject/official_releases/qt/5.9/5.9.1/qt-opensource-linux-x64-5.9.1.run file and save it in the portia directory:

wget -O qt-opensource-linux-x64-5.9.1.run ftp.fau.de/qtproject/official_releases/qt/5.9/5.9.1/qt-opensource-linux-x64-5.9.1.run 

edit the Dockerfile, add this step:

COPY qt-opensource-linux-x64-5.9.1.run /downloads/qt-installer.run

and remove the line on RUN which does the download...

RUN /app/provision.sh prepare_install && \
    /app/provision.sh install_deps && \
    /app/provision.sh install_qtwebkit_deps && \
    /app/provision.sh install_official_qt && \
    /app/provision.sh install_qtwebkit && \
    /app/provision.sh install_pyqt5 && \
    /app/provision.sh install_python_deps && \
    /app/provision.sh install_flash && \
    /app/provision.sh install_msfonts && \
    /app/provision.sh install_extra_fonts && \
    /app/provision.sh remove_builddeps && \
    /app/provision.sh remove_extra

Docker build . should work fine now.