scrapinghub / portia

Visual scraping for Scrapy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker build error

mprashanth73 opened this issue · comments

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

img_20181231_181948

commented

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.