Last active
August 22, 2016 17:09
-
-
Save fpytloun/fa0e85b7218d2c4ad3bc18cd0739548e to your computer and use it in GitHub Desktop.
Join Webex meeting in Docker without messing your system
This file contains hidden or 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
FROM ioft/i386-ubuntu:16.04 | |
#FROM ubuntu:xenial | |
## Arguments | |
ARG user=filip | |
ARG user_uid=1000 | |
ARG locale=cs_CZ.UTF-8 | |
ARG jre_url=http://download.oracle.com/otn-pub/java/jdk/8u102-b14/jre-8u102-linux-i586.tar.gz | |
ENV RUN_USER $user | |
ENV RUN_USER_UID $user_uid | |
ENV JRE_URL $jre_url | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt-get update && apt-get install -y \ | |
wget \ | |
firefox:i386 \ | |
libcanberra-gtk-module:i386 \ | |
gtk2-engines-murrine:i386 \ | |
libxtst6:i386 \ | |
libgl1-mesa-glx \ | |
dbus-x11 \ | |
pulseaudio \ | |
dmz-cursor-theme \ | |
light-themes | |
RUN update-alternatives --set x-cursor-theme /usr/share/icons/DMZ-White/cursor.theme | |
RUN useradd -u ${RUN_USER_UID} -m ${RUN_USER} && \ | |
adduser ${RUN_USER} audio && \ | |
adduser ${RUN_USER} video | |
# Install 32bit java | |
RUN wget -O- --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "${JRE_URL}" | tar xvzf - -C /opt && \ | |
mkdir -p /home/${RUN_USER}/.mozilla/plugins && \ | |
ln -sfv /opt/jre*/lib/i386/libnpjp2.so /home/${RUN_USER}/.mozilla/plugins/ | |
RUN locale-gen cs_CZ.UTF-8 && \ | |
locale-gen en_US.UTF-8 | |
# Hack to have same behavior as on Debian Jessie | |
RUN rm -rf /var/run && \ | |
ln -s /run /var/run | |
# Cleanup | |
RUN apt-get clean | |
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /run/* | |
# App execution itself | |
USER ${RUN_USER} | |
ENV HOME /home/${RUN_USER} | |
# These env variables should be overwritten on container execution | |
ENV DISPLAY unix:0.0 | |
ENV XDG_RUNTIME_DIR /run/user/$user_uid | |
ENV LC_ALL $locale | |
# Set theme | |
RUN echo 'include "/usr/share/themes/Ambiance/gtk-2.0/gtkrc"' > $HOME/.gtkrc-2.0 | |
RUN mkdir -p $HOME/.config/gtk-3.0 && \ | |
echo "[Settings]\ngtk-theme-name = Ambiance\ngtk-fallback-icon-theme = gnome" > $HOME/.config/gtk-3.0/settings.ini | |
WORKDIR $HOME | |
ENTRYPOINT ["/usr/bin/firefox", "https://www.webex.com/go/attend-meeting"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment