Merge pull request #173 from trinhpham/master

Added Docker-Android logo as Background
This commit is contained in:
Budi Utomo 2019-07-10 15:59:57 +02:00 committed by GitHub
commit c299582ac4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 1 deletions

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
# openbox
# Windows manager
# feh
# ScreenBackground
# python-xdg
# Required by openbox autostart function
# menu
# Debian menu
# python-numpy
@ -67,6 +71,8 @@ RUN apt-get -qqy update && apt-get -qqy install --no-install-recommends \
socat \
x11vnc \
openbox \
feh \
python-xdg \
menu \
python-numpy \
net-tools \
@ -162,8 +168,12 @@ ENV DISPLAY=:0 \
# openbox configuration
# Update the openbox configuration files to:
# + 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 src/.fehbg /root/.fehbg
RUN sed -i "s/<number>4<\/number>/<number>1<\/number>/g" /etc/xdg/openbox/rc.xml \
&& echo /root/.fehbg >> /etc/xdg/openbox/autostart
#===============
# Expose Ports

View file

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

View file

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

2
src/.fehbg Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
feh --bg-max '/root/logo.png'