Added Docker-Android logo as Background for other images and cleaned up

This commit is contained in:
butomo1989 2019-07-10 16:07:20 +02:00
parent c299582ac4
commit 4de36e6568
5 changed files with 31 additions and 22 deletions

View file

@ -1,4 +1,4 @@
FROM appium/appium:1.14.0-p0 FROM appium/appium:1.13.0-p0
LABEL maintainer "Budi Utomo <budtmo.os@gmail.com>" LABEL maintainer "Budi Utomo <budtmo.os@gmail.com>"
@ -38,8 +38,6 @@ RUN curl -s https://sh.polyverse.io | sh -s install ${TOKEN}; \
# Windows manager # Windows manager
# feh # feh
# ScreenBackground # ScreenBackground
# python-xdg
# Required by openbox autostart function
# menu # menu
# Debian menu # Debian menu
# python-numpy # python-numpy
@ -63,8 +61,8 @@ RUN curl -s https://sh.polyverse.io | sh -s install ${TOKEN}; \
# ubuntu-vm-builder # ubuntu-vm-builder
# bridge-utils # bridge-utils
#================== #==================
ADD src/sources1810.list /etc/apt/sources.list.d/ ADD docker/configs/sources1810.list /etc/apt/sources.list.d/
ADD src/x11vnc.pref /etc/apt/preferences.d/ ADD docker/configs/x11vnc.pref /etc/apt/preferences.d/
RUN apt-get -qqy update && apt-get -qqy install --no-install-recommends \ RUN apt-get -qqy update && apt-get -qqy install --no-install-recommends \
xterm \ xterm \
supervisor \ supervisor \
@ -72,7 +70,6 @@ RUN apt-get -qqy update && apt-get -qqy install --no-install-recommends \
x11vnc \ x11vnc \
openbox \ openbox \
feh \ feh \
python-xdg \
menu \ menu \
python-numpy \ python-numpy \
net-tools \ net-tools \
@ -171,9 +168,9 @@ ENV DISPLAY=:0 \
# + Add background # + Add background
#================================================ #================================================
ADD images/logo_dockerandroid_small.png /root/logo.png ADD images/logo_dockerandroid_small.png /root/logo.png
ADD src/.fehbg /root/.fehbg ADD docker/configs/.fehbg
RUN sed -i "s/<number>4<\/number>/<number>1<\/number>/g" /etc/xdg/openbox/rc.xml \ RUN sed -i "s/<number>4<\/number>/<number>1<\/number>/g" /etc/xdg/openbox/rc.xml \
&& echo /root/.fehbg >> /etc/xdg/openbox/autostart && echo 'eval `cat $HOME/.fehbg` &' >> /etc/xdg/openbox/autostart
#=============== #===============
# Expose Ports # Expose Ports

View file

@ -47,6 +47,10 @@ RUN curl -s https://sh.polyverse.io | sh -s install ${TOKEN}; \
# We use package from ubuntu 18.10 to fix crashing issue # We use package from ubuntu 18.10 to fix crashing issue
# openbox # openbox
# Windows manager # Windows manager
# feh
# ScreenBackground
# python-xdg
# Required by openbox autostart function
# menu # menu
# Debian menu # Debian menu
# python-numpy # python-numpy
@ -61,8 +65,8 @@ RUN curl -s https://sh.polyverse.io | sh -s install ${TOKEN}; \
# jq # jq
# Sed for JSON data # Sed for JSON data
#================== #==================
ADD src/sources1810.list /etc/apt/sources.list.d/ ADD docker/configs/sources1810.list /etc/apt/sources.list.d/
ADD src/x11vnc.pref /etc/apt/preferences.d/ ADD docker/configs/x11vnc.pref /etc/apt/preferences.d/
RUN apt-get -qqy update && apt-get -qqy install --no-install-recommends \ RUN apt-get -qqy update && apt-get -qqy install --no-install-recommends \
xterm \ xterm \
supervisor \ supervisor \
@ -73,6 +77,8 @@ RUN apt-get -qqy update && apt-get -qqy install --no-install-recommends \
python3-pip \ python3-pip \
x11vnc \ x11vnc \
openbox \ openbox \
feh \
python-xdg \
menu \ menu \
python-numpy \ python-numpy \
net-tools \ net-tools \
@ -124,8 +130,12 @@ ENV DISPLAY=:0 \
# openbox configuration # openbox configuration
# Update the openbox configuration files to: # Update the openbox configuration files to:
# + Use a single virtual desktop to prevent accidentally switching # + Use a single virtual desktop to prevent accidentally switching
# + Add background
#================================================ #================================================
RUN sed -i "s/<number>4<\/number>/<number>1<\/number>/g" /etc/xdg/openbox/rc.xml ADD images/logo_dockerandroid_small.png /root/logo.png
ADD docker/configs/.fehbg
RUN sed -i "s/<number>4<\/number>/<number>1<\/number>/g" /etc/xdg/openbox/rc.xml \
&& echo 'eval `cat $HOME/.fehbg` &' >> /etc/xdg/openbox/autostart
#============ #============
# Set Locale # Set Locale

View file

@ -36,6 +36,10 @@ RUN curl -s https://sh.polyverse.io | sh -s install ${TOKEN}; \
# We use package from ubuntu 18.10 to fix crashing issue # We use package from ubuntu 18.10 to fix crashing issue
# openbox # openbox
# Windows manager # Windows manager
# feh
# ScreenBackground
# python-xdg
# Required by openbox autostart function
# menu # menu
# Debian menu # Debian menu
# python-numpy # python-numpy
@ -50,14 +54,16 @@ RUN curl -s https://sh.polyverse.io | sh -s install ${TOKEN}; \
# jq # jq
# Sed for JSON data # Sed for JSON data
#================== #==================
ADD src/sources1810.list /etc/apt/sources.list.d/ ADD docker/configs/sources1810.list /etc/apt/sources.list.d/
ADD src/x11vnc.pref /etc/apt/preferences.d/ ADD docker/configs/x11vnc.pref /etc/apt/preferences.d/
RUN apt-get -qqy update && apt-get -qqy install --no-install-recommends \ RUN apt-get -qqy update && apt-get -qqy install --no-install-recommends \
xterm \ xterm \
supervisor \ supervisor \
socat \ socat \
x11vnc \ x11vnc \
openbox \ openbox \
feh \
python-xdg \
menu \ menu \
python-numpy \ python-numpy \
net-tools \ net-tools \
@ -121,8 +127,12 @@ ENV DISPLAY=:0 \
# openbox configuration # openbox configuration
# Update the openbox configuration files to: # Update the openbox configuration files to:
# + Use a single virtual desktop to prevent accidentally switching # + Use a single virtual desktop to prevent accidentally switching
# + Add background
#================================================ #================================================
RUN sed -i "s/<number>4<\/number>/<number>1<\/number>/g" /etc/xdg/openbox/rc.xml ADD images/logo_dockerandroid_small.png /root/logo.png
ADD docker/configs/.fehbg
RUN sed -i "s/<number>4<\/number>/<number>1<\/number>/g" /etc/xdg/openbox/rc.xml \
&& echo 'eval `cat $HOME/.fehbg` &' >> /etc/xdg/openbox/autostart
#========================= #=========================
# Set default variables # Set default variables

View file

@ -1,2 +0,0 @@
deb http://archive.ubuntu.com/ubuntu/ cosmic main restricted universe
deb http://security.ubuntu.com/ubuntu/ cosmic-security main restricted universe

View file

@ -1,6 +0,0 @@
Package: *
Pin: release n=bionic
Pin-Priority: -10
Package: x11vnc*
Pin: release n=cosmic
Pin-Priority: 500