2016-04-26 22:07:53 +00:00
|
|
|
FROM ubuntu:xenial
|
2016-03-23 20:44:53 +00:00
|
|
|
MAINTAINER Andrey Arapov <andrey.arapov@nixaid.com>
|
|
|
|
|
|
|
|
# To avoid problems with Dialog and curses wizards
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
|
2016-04-26 22:07:53 +00:00
|
|
|
# Keep the image updated and install the dependencies
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get -y upgrade && \
|
|
|
|
apt-get -fy install && \
|
2016-08-22 17:55:14 +00:00
|
|
|
apt-get -y install bzip2 libgtk2.0-0 libgtk-3-0 libdbus-glib-1-2 libxt6 attr \
|
2016-05-02 18:11:17 +00:00
|
|
|
pulseaudio libgl1-mesa-glx x264 \
|
|
|
|
libpango1.0-0 libv4l-0 \
|
2016-07-17 15:23:16 +00:00
|
|
|
fonts-dejavu-core fonts-freefont-ttf fonts-guru-extra \
|
|
|
|
fonts-kacst fonts-kacst-one fonts-khmeros-core fonts-lao \
|
|
|
|
fonts-liberation fonts-lklug-sinhala fonts-lohit-guru \
|
|
|
|
fonts-nanum fonts-opensymbol fonts-sil-abyssinica \
|
|
|
|
fonts-sil-padauk fonts-symbola fonts-takao-pgothic \
|
|
|
|
fonts-tibetan-machine fonts-tlwg-garuda-ttf \
|
|
|
|
fonts-tlwg-kinnari-ttf fonts-tlwg-laksaman-ttf \
|
|
|
|
fonts-tlwg-loma-ttf fonts-tlwg-mono-ttf \
|
|
|
|
fonts-tlwg-norasi-ttf fonts-tlwg-purisa-ttf \
|
|
|
|
fonts-tlwg-sawasdee-ttf fonts-tlwg-typewriter-ttf \
|
|
|
|
fonts-tlwg-typist-ttf fonts-tlwg-typo-ttf \
|
|
|
|
fonts-tlwg-umpush-ttf fonts-tlwg-waree-ttf \
|
|
|
|
ttf-bitstream-vera ttf-dejavu-core ttf-ubuntu-font-family \
|
|
|
|
fonts-arphic-ukai fonts-arphic-uming \
|
|
|
|
fonts-ipafont-mincho fonts-ipafont-gothic \
|
|
|
|
fonts-unfonts-core && \
|
2016-04-26 22:07:53 +00:00
|
|
|
rm -rf /var/lib/apt/lists
|
2016-03-23 20:44:53 +00:00
|
|
|
|
2016-04-30 10:04:39 +00:00
|
|
|
# Workaround: pulseaudio client library likes to remove /dev/shm/pulse-shm-*
|
|
|
|
# files created by the host, causing sound to stop working.
|
|
|
|
# To fix this, we either want to disable the shm or mount /dev/shm
|
|
|
|
# in read-only mode when starting the container.
|
|
|
|
RUN echo "enable-shm = no" >> /etc/pulse/client.conf
|
|
|
|
|
|
|
|
# Mozilla Firefox
|
2016-04-26 22:07:53 +00:00
|
|
|
# Deps: bzip2 libgtk-3-0 libdbus-glib-1-2 libxt6
|
2016-08-22 17:55:14 +00:00
|
|
|
ENV FIREFOX_VER 48.0.1
|
2016-03-23 20:44:53 +00:00
|
|
|
ADD https://download-installer.cdn.mozilla.net/pub/firefox/releases/$FIREFOX_VER/linux-x86_64/en-US/firefox-$FIREFOX_VER.tar.bz2 /tmp/firefox.tar.bz2
|
2016-04-30 09:53:23 +00:00
|
|
|
RUN cd /tmp && \
|
|
|
|
mkdir /opt/mozilla && \
|
|
|
|
tar xf firefox.tar.bz2 -C /opt/mozilla/ && \
|
2016-08-22 17:55:14 +00:00
|
|
|
rm -f firefox.tar.bz2 && \
|
|
|
|
chown -Rh root:root /opt/mozilla
|
2016-05-19 15:53:41 +00:00
|
|
|
|
2016-04-26 22:07:53 +00:00
|
|
|
# Google Hangouts
|
|
|
|
# Deps: libasound2 libgtk2.0-0 libpango1.0-0 libv4l-0
|
2016-04-30 09:53:23 +00:00
|
|
|
ADD https://dl.google.com/linux/direct/google-talkplugin_current_amd64.deb /tmp/google-talkplugin.deb
|
|
|
|
RUN cd /tmp && \
|
|
|
|
dpkg -i google-talkplugin.deb && \
|
|
|
|
rm -f google-talkplugin.deb
|
2016-03-23 20:44:53 +00:00
|
|
|
|
2016-04-26 22:07:53 +00:00
|
|
|
# Java x64 RE plugin
|
2016-04-06 12:42:12 +00:00
|
|
|
# https://java.com/en/download/manual.jsp
|
|
|
|
# https://www.java.com/verify
|
2016-03-23 20:44:53 +00:00
|
|
|
ENV JAVA_VER 8
|
2016-08-22 17:55:14 +00:00
|
|
|
ENV JAVA_JRE_UVER 101
|
|
|
|
ENV JAVA_JRE_FVER 1.8.0_101
|
|
|
|
ENV JAVA_BUNDLE_ID 211989
|
2016-03-23 20:44:53 +00:00
|
|
|
ENV JAVA_FONTS "/usr/share/fonts/truetype"
|
|
|
|
ENV _JAVA_OPTIONS "-Dawt.useSystemAAFontSettings=on \
|
|
|
|
-Dswing.aatext=true \
|
|
|
|
-Dsun.java2d.xrender=true \
|
|
|
|
-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel"
|
|
|
|
# ENV _JAVA_AWT_WM_NONREPARENTING 1
|
|
|
|
#
|
|
|
|
# You can pick alternative Java look (swing.defaultlaf=):
|
|
|
|
# - javax.swing.plaf.metal.MetalLookAndFeel
|
|
|
|
# - javax.swing.plaf.nimbus.NimbusLookAndFeel
|
|
|
|
# - com.sun.java.swing.plaf.gtk.GTKLookAndFeel
|
|
|
|
# - com.sun.java.swing.plaf.motif.MotifLookAndFeel
|
2016-04-30 09:53:23 +00:00
|
|
|
ADD http://javadl.sun.com/webapps/download/AutoDL?BundleId=$JAVA_BUNDLE_ID /tmp/jre.tar.gz
|
2016-04-26 22:07:53 +00:00
|
|
|
RUN mkdir -p /opt/java/64 && \
|
2016-04-30 09:53:23 +00:00
|
|
|
tar xf /tmp/jre.tar.gz -C /opt/java/64/ && \
|
2016-04-30 10:01:20 +00:00
|
|
|
rm -f /tmp/jre.tar.gz && \
|
2016-08-22 17:55:14 +00:00
|
|
|
chown -Rh root:root /opt/java/64/ && \
|
2016-04-26 22:07:53 +00:00
|
|
|
cd /opt/java/64/ && \
|
|
|
|
ln -sv jre${JAVA_JRE_FVER} jre && \
|
|
|
|
ln -sv /opt/java/64/jre/lib/amd64/libnpjp2.so /usr/lib/mozilla/plugins/ && \
|
|
|
|
update-alternatives --install "/usr/bin/java" "java" "/opt/java/64/jre/bin/java" 1 && \
|
|
|
|
update-alternatives --set java /opt/java/64/jre/bin/java && \
|
|
|
|
update-alternatives --install "/usr/bin/javaws" "javaws" "/opt/java/64/jre/bin/javaws" 1 && \
|
2016-04-30 10:01:20 +00:00
|
|
|
update-alternatives --set javaws /opt/java/64/jre/bin/javaws
|
2016-03-23 20:44:53 +00:00
|
|
|
|
2016-04-26 22:07:53 +00:00
|
|
|
# Define a user under which the Firefox will be running
|
2016-04-07 13:56:41 +00:00
|
|
|
ENV USER user
|
2016-03-23 20:44:53 +00:00
|
|
|
ENV UID 1000
|
|
|
|
ENV GROUPS video,audio
|
|
|
|
ENV HOME /home/$USER
|
2016-04-30 09:53:23 +00:00
|
|
|
RUN useradd -u $UID -m -d $HOME -s /usr/sbin/nologin -G $GROUPS $USER
|
2016-03-23 20:44:53 +00:00
|
|
|
|
2016-04-30 09:53:23 +00:00
|
|
|
WORKDIR $HOME
|
2016-03-23 20:44:53 +00:00
|
|
|
|
2016-04-30 09:53:23 +00:00
|
|
|
# Java JRE requires /tmp directory to be writable
|
2016-04-12 10:01:25 +00:00
|
|
|
VOLUME [ "/tmp" ]
|
2016-04-30 09:53:23 +00:00
|
|
|
|
2016-08-22 17:55:14 +00:00
|
|
|
COPY ./launch /launch
|
|
|
|
ENTRYPOINT [ "/bin/bash", "/launch" ]
|