Skip to content

Commit f5e57ee

Browse files
committed
Updated base image
1 parent 621d37d commit f5e57ee

5 files changed

Lines changed: 21 additions & 27 deletions

File tree

.dockerignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
.git/
33
.github
44
.gitignore
5-
.dockerignore
65

76
# IDE
87
**/*.idea

cli/src/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def cli():
6060

6161
def start_appium() -> None:
6262
if convert_str_to_bool(os.getenv(ENV.APPIUM)):
63-
cmd = f"/usr/bin/appium"
63+
cmd = f"/usr/local/bin/appium"
6464
app_appium = Application("Appium", cmd,
6565
os.getenv(ENV.APPIUM_ADDITIONAL_ARGS, ""), False)
6666
app_appium.start()

docker/base

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM appium/appium:v3.1.1-p0
1+
FROM appium/appium:v3.2.0-p0
22

33
ARG AUTHORS="Budi Utomo"
44
LABEL author="${AUTHORS} <budtmo.os@gmail.com>"
@@ -8,27 +8,30 @@ USER root
88
#================
99
# Basic Packages
1010
#----------------
11+
# ca-certificates
12+
# SSL client
13+
# python3-pip
14+
# python-pip
1115
# socat
1216
# Port forwarder
1317
# supervisor
1418
# Process manager
19+
# unzip
20+
# Unzip zip file
21+
# wget
22+
# Network downloader
1523
#================
1624
RUN apt-get -qqy update && apt-get -qqy install --no-install-recommends \
25+
ca-certificates \
26+
python3-pip \
1727
socat \
1828
supervisor \
29+
unzip \
30+
wget \
1931
&& apt autoremove -y \
2032
&& apt clean all \
21-
&& rm -rf /var/lib/apt/lists/*
22-
23-
#==================
24-
# Configure Python
25-
#==================
26-
RUN apt-get -qqy update && \
27-
apt-get -qqy --no-install-recommends install \
28-
python3-pip \
29-
&& apt-get clean \
30-
&& rm -rf /var/lib/apt/lists/* \
31-
&& update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
33+
&& rm -rf /var/lib/apt/lists/* \
34+
&& update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
3235

3336
#=====================
3437
# Set release version

docker/emulator

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ENV EMULATOR_ANDROID_VERSION=${EMULATOR_ANDROID_VERSION} \
1111
EMULATOR_SYS_IMG=x86_64 \
1212
EMULATOR_IMG_TYPE=google_apis \
1313
EMULATOR_BROWSER=chrome
14-
ENV PATH ${PATH}:${ANDROID_HOME}/build-tools
14+
ENV PATH=${PATH}:${ANDROID_HOME}/build-tools
1515
RUN yes | sdkmanager --licenses \
1616
&& sdkmanager "platforms;android-${EMULATOR_API_LEVEL}" \
1717
"system-images;android-${EMULATOR_API_LEVEL};${EMULATOR_IMG_TYPE};${EMULATOR_SYS_IMG}" "emulator" \
@@ -20,14 +20,10 @@ RUN yes | sdkmanager --licenses \
2020
#=============
2121
# UI Packages
2222
#-------------
23-
# ffmpeg
24-
# Video recorder
2523
# feh
2624
# Screen background
2725
# libxcomposite-dev
2826
# Window System for Emulator
29-
# menu
30-
# Debian menu
3127
# openbox
3228
# Windows manager
3329
# x11vnc
@@ -36,10 +32,8 @@ RUN yes | sdkmanager --licenses \
3632
# Terminal emulator
3733
#==================
3834
RUN apt-get -qqy update && apt-get -qqy install --no-install-recommends \
39-
ffmpeg \
4035
feh \
4136
libxcomposite-dev \
42-
menu \
4337
openbox \
4438
x11vnc \
4539
xterm \
@@ -78,7 +72,6 @@ EXPOSE 5900 6080
7872
#==========
7973
RUN rm -rf ${SCRIPT_PATH}
8074
ENV SCRIPT_PATH="docker-android"
81-
ENV WORK_PATH="/home/androidusr"
8275
ENV APP_PATH=${WORK_PATH}/${SCRIPT_PATH}
8376
RUN mkdir -p ${APP_PATH}
8477
COPY mixins ${APP_PATH}/mixins
@@ -94,7 +87,7 @@ RUN echo ${APP_PATH}/mixins/configs/display/.fehbg >> /etc/xdg/openbox/autostart
9487
#==================
9588
# Use created user
9689
#==================
97-
USER 1300:1301
90+
USER ${USERID}:${GROUPID}
9891
ENV LOG_PATH=${WORK_PATH}/logs \
9992
WEB_LOG_PORT=9000
10093
EXPOSE 9000
@@ -107,4 +100,4 @@ RUN mkdir -p "${WORK_PATH}/.config/Android Open Source Project" \
107100
#=========
108101
STOPSIGNAL SIGTERM
109102
ENV DEVICE_TYPE=emulator
110-
ENTRYPOINT ["/home/androidusr/docker-android/mixins/scripts/run.sh"]
103+
CMD ["${APP_PATH}/mixins/scripts/run.sh"]

docker/genymotion

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ RUN wget -nv -O terraform.zip "https://releases.hashicorp.com/terraform/${TERRAF
3030
#==========
3131
RUN rm -rf ${SCRIPT_PATH}
3232
ENV SCRIPT_PATH="docker-android"
33-
ENV WORK_PATH="/home/androidusr"
3433
ENV APP_PATH=${WORK_PATH}/${SCRIPT_PATH}
3534
RUN mkdir -p ${APP_PATH}
3635
COPY mixins ${APP_PATH}/mixins
@@ -47,7 +46,7 @@ RUN mkdir -p ${GENYMOTION_TEMPLATE_PATH}
4746
#==================
4847
# Use created user
4948
#==================
50-
USER 1300:1301
49+
USER ${USERID}:${GROUPID}
5150
ENV LOG_PATH=${WORK_PATH}/logs \
5251
WEB_LOG_PORT=9000
5352
EXPOSE 9000
@@ -58,4 +57,4 @@ RUN mkdir -p ${LOG_PATH}
5857
#=========
5958
STOPSIGNAL SIGTERM
6059
RUN gmsaas config set android-sdk-path ${ANDROID_HOME}
61-
ENTRYPOINT ["/home/androidusr/docker-android/mixins/scripts/run.sh"]
60+
CMD ["${APP_PATH}/mixins/scripts/run.sh"]

0 commit comments

Comments
 (0)