Adding Fts, closing issue #2:
* userdata volumes and url opening code were added to use docker-browser as full replacement name browser-exec. * browser-exec allows a user to launch a link in an exisitng browser or open up the link in the default browser define by env $BROWSER * added env variable ${DOCKER_BROWSER_PARMS} allowing user to pass aditional parms if he/she so wishes * added additional userdata volumes so that browser settins persist: $CHROME_USERDATA and $FIRFOX_USERDATA * made it easier for people who fork to test using make file by using env $USER * added clean function to Makefile * esnured USERDATA voluems are added to docker run command only withn wrapper script * if userdata volumes are used home directory of browser is created first, so added code to ensure home directory has right permissions and that /etc/skel files get copied to home directory * renamed some parms * tor install binary is now gpg verified and bumped a version closing issue#2 * README.md includes information about making the settings for firefox and chrome survive after each time the browser is closed and opened. * nvidia-346 drivers are installed in container in order to fix some glx errors. * if browsers are launched with wrapper script then username within the container will be the username of the user executing * add fonts conf file, fixing font error, file copied from jfrazellepull/5/head
parent
b90fdf3b42
commit
675e96d265
@ -1,28 +1,34 @@
|
||||
FROM sameersbn/ubuntu:14.04.20150825
|
||||
|
||||
ENV TOR_BROWSER_VERSION=4.5.3 \
|
||||
WEB_BROWSER_USER=browser
|
||||
ENV TOR_VERSION=5.0.3 \
|
||||
TOR_FINGERPRINT=0x4E2C6E8793298290
|
||||
|
||||
RUN wget -q -O - "https://dl-ssl.google.com/linux/linux_signing_key.pub" | sudo apt-key add - \
|
||||
&& echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y xz-utils file locales dbus-x11 pulseaudio dmz-cursor-theme \
|
||||
&& apt-get install -y xz-utils file locales dbus-x11 pulseaudio dmz-cursor-theme curl \
|
||||
fonts-dejavu fonts-liberation hicolor-icon-theme \
|
||||
libcanberra-gtk3-0 libcanberra-gtk-module libcanberra-gtk3-module \
|
||||
libasound2 libglib2.0 libgtk2.0-0 libdbus-glib-1-2 libxt6 libexif12 \
|
||||
libgl1-mesa-glx libgl1-mesa-dri \
|
||||
libgl1-mesa-glx libgl1-mesa-dri libstdc++6 nvidia-346 \
|
||||
google-chrome-stable chromium-browser firefox \
|
||||
&& update-locale LANG=C.UTF-8 LC_MESSAGES=POSIX \
|
||||
&& mkdir -p /usr/lib/tor-browser \
|
||||
&& wget -O /tmp/tor-browser-linux64-${TOR_BROWSER_VERSION}_en-US.tar.xz \
|
||||
https://www.torproject.org/dist/torbrowser/${TOR_BROWSER_VERSION}/tor-browser-linux64-${TOR_BROWSER_VERSION}_en-US.tar.xz \
|
||||
&& tar -Jvxf /tmp/tor-browser-linux64-${TOR_BROWSER_VERSION}_en-US.tar.xz --strip=1 -C /usr/lib/tor-browser \
|
||||
&& wget -O /tmp/tor-browser-linux64-${TOR_VERSION}_en-US.tar.xz https://www.torproject.org/dist/torbrowser/${TOR_VERSION}/tor-browser-linux64-${TOR_VERSION}_en-US.tar.xz \
|
||||
&& wget -O /tmp/tor-browser-linux64-${TOR_VERSION}_en-US.tar.xz.asc https://www.torproject.org/dist/torbrowser/${TOR_VERSION}/tor-browser-linux64-${TOR_VERSION}_en-US.tar.xz.asc \
|
||||
&& mkdir ~/.gnupg \
|
||||
&& gpg --keyserver hkp://hkps.pool.sks-keyservers.net:80 --recv-keys ${TOR_FINGERPRINT} \
|
||||
&& gpg --fingerprint ${TOR_FINGERPRINT} | grep "Key fingerprint = EF6E 286D DA85 EA2A 4BA7 DE68 4E2C 6E87 9329 8290" \
|
||||
&& gpg /tmp/tor-browser-linux64-${TOR_VERSION}_en-US.tar.xz.asc \
|
||||
&& tar -Jvxf /tmp/tor-browser-linux64-${TOR_VERSION}_en-US.tar.xz --strip=1 -C /usr/lib/tor-browser \
|
||||
&& ln -sf /usr/lib/tor-browser/Browser/start-tor-browser /usr/bin/tor-browser \
|
||||
&& rm -rf /tmp/tor-browser-linux64-${TOR_BROWSER_VERSION}_en-US.tar.xz \
|
||||
&& rm -rf /tmp/tor-browser-linux64-${TOR_VERSION}_en-US.tar.xz \
|
||||
&& rm -rf ~/.gnupg \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY scripts/ /var/cache/browser-box/
|
||||
COPY entrypoint.sh /sbin/entrypoint.sh
|
||||
COPY confs/local.conf /etc/fonts/local.conf
|
||||
RUN chmod 755 /sbin/entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/sbin/entrypoint.sh"]
|
||||
|
@ -0,0 +1,29 @@
|
||||
<?xml version='1.0'?>
|
||||
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
|
||||
<fontconfig>
|
||||
<match target="font">
|
||||
<edit mode="assign" name="rgba">
|
||||
<const>rgb</const>
|
||||
</edit>
|
||||
</match>
|
||||
<match target="font">
|
||||
<edit mode="assign" name="hinting">
|
||||
<bool>true</bool>
|
||||
</edit>
|
||||
</match>
|
||||
<match target="font">
|
||||
<edit mode="assign" name="hintstyle">
|
||||
<const>hintslight</const>
|
||||
</edit>
|
||||
</match>
|
||||
<match target="font">
|
||||
<edit mode="assign" name="antialias">
|
||||
<bool>true</bool>
|
||||
</edit>
|
||||
</match>
|
||||
<match target="font">
|
||||
<edit mode="assign" name="lcdfilter">
|
||||
<const>lcddefault</const>
|
||||
</edit>
|
||||
</match>
|
||||
</fontconfig>
|
Loading…
Reference in New Issue