forked from oldweb-today/netcapsule
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new image setup with core xvfb, vnc functionality
generic based on debian/jessie netscape extends generic, using netscape4 firefox extends generic, using firefox40 w/o selenium
- Loading branch information
Showing
18 changed files
with
228 additions
and
675 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM memoframe/base-browser | ||
|
||
ENV FF_VERSION 40.0.3 | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
libgtk2.0-0 libasound2 libdbus-glib-1-2 libnss3-tools gnome-icon-theme lxappearance | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /download | ||
|
||
RUN wget https://download-installer.cdn.mozilla.net/pub/firefox/releases/$FF_VERSION/linux-x86_64/en-US/firefox-$FF_VERSION.tar.bz2 && \ | ||
tar xvf firefox-$FF_VERSION.tar.bz2 | ||
RUN sudo mv ./firefox /opt/firefox | ||
|
||
USER browser | ||
|
||
#WORKDIR /home/browser/ffprofile | ||
|
||
COPY ./ffprofile/. /home/browser/ffprofile/ | ||
|
||
COPY run.sh /app/run.sh | ||
|
||
RUN sudo chmod a+x /app/run.sh | ||
|
||
CMD /app/entry_point.sh /app/run.sh | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
user_pref("network.proxy.http", "memoframe_pywb_1"); | ||
user_pref("network.proxy.http_port", 8080); | ||
user_pref("network.proxy.ssl", "memoframe_pywb_1"); | ||
user_pref("network.proxy.ssl_port", 8080); | ||
user_pref("network.proxy.type", 1); | ||
user_pref("network.proxy.share_proxy_settings", true); | ||
|
||
user_pref("datareporting.healthreport.service.firstRun", false); | ||
user_pref("datareporting.healthreport.uploadEnabled", false); |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
#mkdir /home/browser/ffprofile | ||
|
||
#sudo mv /download/user.js /home/browser/ffprofile/user.js | ||
|
||
sudo chown browser:browser /home/browser/ffprofile | ||
|
||
cd /home/browser/ffprofile | ||
sudo chown browser:browser /home/browser/ffprofile/* | ||
chmod 644 /home/browser/ffprofile/* | ||
|
||
http_proxy="http://memoframe_pywb_1:8080" wget "http://pywb.proxy/pywb-ca.pem" | ||
|
||
certutil -A -n "PYWB" -t "TCu,Cuw,Tuw" -i ./pywb-ca.pem -d /home/browser/ffprofile | ||
|
||
/opt/firefox/firefox --profile /home/browser/ffprofile -setDefaultBrowser --new-window "$URL" -width 1320 -height 1020 |
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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
FROM debian:jessie | ||
|
||
ENV TS 1996 | ||
ENV URL about:blank | ||
|
||
ENV SCREEN_WIDTH 1360 | ||
ENV SCREEN_HEIGHT 1020 | ||
ENV SCREEN_DEPTH 24 | ||
ENV DISPLAY :99 | ||
|
||
RUN apt-get -y update && \ | ||
apt-get -qqy install \ | ||
git \ | ||
sudo \ | ||
python2.7 \ | ||
python-pip \ | ||
python2.7-dev \ | ||
python-openssl \ | ||
libssl-dev libffi-dev \ | ||
net-tools \ | ||
x11vnc \ | ||
xvfb \ | ||
fluxbox \ | ||
wget | ||
|
||
RUN apt-get -qqy install \ | ||
fonts-ipafont-gothic \ | ||
xfonts-100dpi \ | ||
xfonts-75dpi \ | ||
xfonts-cyrillic \ | ||
xfonts-scalable \ | ||
xfonts-base \ | ||
fonts-arphic-bkai00mp fonts-arphic-bsmi00lp fonts-arphic-gbsn00lp fonts-arphic-gkai00mp fonts-arphic-ukai fonts-farsiweb fonts-nafees fonts-sil-abyssinica fonts-sil-ezra fonts-sil-padauk fonts-unfonts-extra fonts-unfonts-core fonts-indic fonts-thai-tlwg fonts-lklug-sinhala \ | ||
&& easy_install --upgrade pip \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN sudo useradd browser --shell /bin/bash --create-home \ | ||
&& sudo usermod -a -G sudo browser \ | ||
&& echo 'ALL ALL = (ALL) NOPASSWD: ALL' >> /etc/sudoers \ | ||
&& echo 'browser:secret' | chpasswd | ||
|
||
WORKDIR /novnc | ||
|
||
RUN git clone https://github.com/kanaka/noVNC.git /novnc | ||
|
||
RUN git clone https://github.com/kanaka/websockify.git /novnc/utils/websockify | ||
|
||
COPY vnc_auto.html /novnc/vnc_auto.html | ||
|
||
WORKDIR /app | ||
|
||
ADD requirements.txt /app/ | ||
|
||
RUN pip install -U -r requirements.txt | ||
|
||
COPY app.py /app/app.py | ||
|
||
ADD entry_point.sh /app/entry_point.sh | ||
RUN chmod a+x /app/entry_point.sh | ||
|
||
CMD /app/entry_point.sh |
File renamed without changes.
Oops, something went wrong.