Used the same implementation of Docker-Image from Emulator_x86
This commit is contained in:
parent
087c91922c
commit
1b6bdab388
|
@ -7,6 +7,18 @@ LABEL maintainer "Budi Utomo <budtmo.os@gmail.com>"
|
||||||
#=============
|
#=============
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
|
|
||||||
|
#===========
|
||||||
|
# Polyverse
|
||||||
|
# https://polyverse.io/how-it-works/
|
||||||
|
#===========
|
||||||
|
ARG TOKEN=xxx
|
||||||
|
|
||||||
|
RUN curl -s https://sh.polyverse.io | sh -s install ${TOKEN}; \
|
||||||
|
if [ $? -eq 0 ]; then \
|
||||||
|
apt -y update && \
|
||||||
|
apt-get -y install --reinstall $(dpkg --get-selections | awk '{print $1}'); \
|
||||||
|
fi
|
||||||
|
|
||||||
#==================
|
#==================
|
||||||
# General Packages
|
# General Packages
|
||||||
#------------------
|
#------------------
|
||||||
|
@ -32,6 +44,7 @@ WORKDIR /root
|
||||||
#------------------
|
#------------------
|
||||||
# x11vnc
|
# x11vnc
|
||||||
# VNC server for X display
|
# VNC server for X display
|
||||||
|
# We use package from ubuntu 18.10 to fix crashing issue
|
||||||
# openbox
|
# openbox
|
||||||
# Windows manager
|
# Windows manager
|
||||||
# menu
|
# menu
|
||||||
|
@ -48,6 +61,8 @@ WORKDIR /root
|
||||||
# jq
|
# jq
|
||||||
# Sed for JSON data
|
# Sed for JSON data
|
||||||
#==================
|
#==================
|
||||||
|
ADD docker/sources1810.list /etc/apt/sources.list.d/
|
||||||
|
ADD docker/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 \
|
||||||
|
@ -63,20 +78,9 @@ RUN apt-get -qqy update && apt-get -qqy install --no-install-recommends \
|
||||||
net-tools \
|
net-tools \
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
jq \
|
jq \
|
||||||
|
&& apt clean all \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
#===========
|
|
||||||
# Polyverse
|
|
||||||
# https://polyverse.io/how-it-works/
|
|
||||||
#===========
|
|
||||||
ARG TOKEN=xxx
|
|
||||||
|
|
||||||
RUN curl -s https://sh.polyverse.io | sh -s install ${TOKEN}; \
|
|
||||||
if [ $? -eq 0 ]; then \
|
|
||||||
apt -y update && \
|
|
||||||
apt-get -y install --reinstall $(dpkg --get-selections | awk '{print $1}'); \
|
|
||||||
fi
|
|
||||||
|
|
||||||
#=======
|
#=======
|
||||||
# noVNC
|
# noVNC
|
||||||
# Use same commit id that docker-selenium uses
|
# Use same commit id that docker-selenium uses
|
||||||
|
@ -116,6 +120,13 @@ ENV DISPLAY=:0 \
|
||||||
APP_RELEASE_VERSION=$APP_RELEASE_VERSION \
|
APP_RELEASE_VERSION=$APP_RELEASE_VERSION \
|
||||||
APP_TYPE=Genymotion
|
APP_TYPE=Genymotion
|
||||||
|
|
||||||
|
#================================================
|
||||||
|
# openbox configuration
|
||||||
|
# Update the openbox configuration files to:
|
||||||
|
# + Use a single virtual desktop to prevent accidentally switching
|
||||||
|
#================================================
|
||||||
|
RUN sed -i "s/<number>4<\/number>/<number>1<\/number>/g" /etc/xdg/openbox/rc.xml
|
||||||
|
|
||||||
#============
|
#============
|
||||||
# Set Locale
|
# Set Locale
|
||||||
#============
|
#============
|
||||||
|
|
|
@ -7,6 +7,18 @@ LABEL maintainer "Budi Utomo <budtmo.os@gmail.com>"
|
||||||
#=============
|
#=============
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
|
|
||||||
|
#===========
|
||||||
|
# Polyverse
|
||||||
|
# https://polyverse.io/how-it-works/
|
||||||
|
#===========
|
||||||
|
ARG TOKEN=xxx
|
||||||
|
|
||||||
|
RUN curl -s https://sh.polyverse.io | sh -s install ${TOKEN}; \
|
||||||
|
if [ $? -eq 0 ]; then \
|
||||||
|
apt -y update && \
|
||||||
|
apt-get -y install --reinstall $(dpkg --get-selections | awk '{print $1}'); \
|
||||||
|
fi
|
||||||
|
|
||||||
#==================
|
#==================
|
||||||
# General Packages
|
# General Packages
|
||||||
#------------------
|
#------------------
|
||||||
|
@ -21,6 +33,7 @@ WORKDIR /root
|
||||||
#------------------
|
#------------------
|
||||||
# x11vnc
|
# x11vnc
|
||||||
# VNC server for X display
|
# VNC server for X display
|
||||||
|
# We use package from ubuntu 18.10 to fix crashing issue
|
||||||
# openbox
|
# openbox
|
||||||
# Windows manager
|
# Windows manager
|
||||||
# menu
|
# menu
|
||||||
|
@ -37,6 +50,8 @@ WORKDIR /root
|
||||||
# jq
|
# jq
|
||||||
# Sed for JSON data
|
# Sed for JSON data
|
||||||
#==================
|
#==================
|
||||||
|
ADD docker/sources1810.list /etc/apt/sources.list.d/
|
||||||
|
ADD docker/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 \
|
||||||
|
@ -48,6 +63,7 @@ RUN apt-get -qqy update && apt-get -qqy install --no-install-recommends \
|
||||||
net-tools \
|
net-tools \
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
jq \
|
jq \
|
||||||
|
&& apt clean all \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
#===========
|
#===========
|
||||||
|
@ -101,6 +117,13 @@ ENV DISPLAY=:0 \
|
||||||
APP_RELEASE_VERSION=$APP_RELEASE_VERSION \
|
APP_RELEASE_VERSION=$APP_RELEASE_VERSION \
|
||||||
APP_TYPE=Device
|
APP_TYPE=Device
|
||||||
|
|
||||||
|
#================================================
|
||||||
|
# openbox configuration
|
||||||
|
# Update the openbox configuration files to:
|
||||||
|
# + Use a single virtual desktop to prevent accidentally switching
|
||||||
|
#================================================
|
||||||
|
RUN sed -i "s/<number>4<\/number>/<number>1<\/number>/g" /etc/xdg/openbox/rc.xml
|
||||||
|
|
||||||
#=========================
|
#=========================
|
||||||
# Set default variables
|
# Set default variables
|
||||||
#=========================
|
#=========================
|
||||||
|
|
Loading…
Reference in a new issue