This repository has been archived by the owner on Aug 9, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace phantomjs with Firefox/geckodriver
- phantomjs is deprecated and didn't work correctly when used inside a Docker container (RST tree would have no EDU texts when converted to .png images)
- Loading branch information
Arne Neumann
committed
Feb 22, 2018
1 parent
cce6cde
commit 01f23b8
Showing
2 changed files
with
15 additions
and
5 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,18 +1,26 @@ | ||
FROM nlpbox/nlpbox-base:16.04 | ||
|
||
RUN apt-get update -y && apt-get upgrade -y && \ | ||
apt-get install -y python-pip phantomjs && \ | ||
apt-get install -y python-pip phantomjs firefox && \ | ||
pip2 install selenium pudb | ||
|
||
# settings for interactive debugging | ||
ADD pudb.cfg /root/ | ||
|
||
# install geckodriver for headless browsing with selenium | ||
WORKDIR /usr/local/bin | ||
RUN wget https://github.com/mozilla/geckodriver/releases/download/v0.19.1/geckodriver-v0.19.1-linux64.tar.gz && \ | ||
tar -xvzf geckodriver-v0.19.1-linux64.tar.gz && \ | ||
rm geckodriver-v0.19.1-linux64.tar.gz | ||
|
||
|
||
WORKDIR /opt | ||
RUN git clone https://github.com/arne-cl/rstviewer.git | ||
|
||
WORKDIR /opt/rstviewer | ||
RUN python2 setup.py install | ||
|
||
# workaround for PhantomJS error "QXcbConnection: Could not connect to display " | ||
ENV QT_QPA_PLATFORM offscreen | ||
# ENV QT_QPA_PLATFORM offscreen | ||
|
||
ENTRYPOINT ["rstviewer"] |
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