Compare commits

..
4 Commits
12 changed files with 40 additions and 19 deletions
+6 -7
View File
@@ -10,9 +10,9 @@
Docker-Android is a docker image built to be used for everything related to mobile website testing and Android project.
Samsung Device | Google Device
:---------------------------:|:---------------------------:
![][docker android samsung] | ![][docker android nexus]
Emulator - Samsung Device | Emulator - Nexus Device | Real Device
:---------------------------:|:---------------------------:|:---------------------------:
![][emulator samsung] |![][emulator nexus] |![][real device]
Purpose
-------
@@ -139,7 +139,6 @@ You can deactivate auto_record by changing the value to "False" in docker-compos
### Docker-Compose
![][compose]
![][connected_devices]
There is [example of compose file] to run complete selenium grid and docker-android container as nodes. [docker-compose] version [1.13.0] or higher is required to be able to execute that compose file.
@@ -211,10 +210,10 @@ Special Thanks
[appium]: <https://appium.io>
[espresso]: <https://google.github.io/android-testing-support-library/docs/espresso/>
[robotium]: <https://github.com/RobotiumTech/robotium>
[docker android samsung]: <images/docker_android_samsung.png>
[docker android nexus]: <images/docker_android_nexus.png>
[emulator samsung]: <images/emulator_samsung_galaxy_s6.png>
[emulator nexus]: <images/emulator_nexus_5.png>
[real device]: <images/real_device.png>
[compose]: <images/compose.png>
[connected_devices]: <images/connected_devices.png>
[line]: <https://github.com/butomo1989/docker-android/blob/master/docker-compose.yml#L30>
[example of compose file]: <docker-compose.yml>
[docker-compose]: <https://docs.docker.com/compose/install/>
+29 -1
View File
@@ -6,16 +6,38 @@ version: "2.2"
services:
# Selenium hub
selenium_hub:
image: selenium/hub:3.4.0
image: selenium/hub:3.7.1
ports:
- "4444:4444"
# Real devices
real_device:
image: butomo1989/docker-android-real-device
privileged: true
depends_on:
- selenium_hub
ports:
- 6080:6080
volumes:
- ./video-real-device:/tmp/video
- /dev/bus/usb:/dev/bus/usb
- ~/.android:/root/.android
environment:
- CONNECT_TO_GRID=True
- APPIUM=true
- SELENIUM_HOST=selenium_hub
- AUTO_RECORD=True
- BROWSER_NAME=chrome
# Docker-Android for Android application testing
nexus_7.1.1:
image: butomo1989/docker-android-x86-7.1.1
privileged: true
# Increase scale number if needed
scale: 1
depends_on:
- selenium_hub
- real_device
ports:
- 6080
# Change path of apk that you want to test. I use sample_apk that I provide in folder "example"
@@ -36,6 +58,9 @@ services:
privileged: true
# Increase scale number if needed
scale: 1
depends_on:
- selenium_hub
- real_device
ports:
- 6080
volumes:
@@ -55,6 +80,9 @@ services:
privileged: true
# Increase scale number if needed
scale: 1
depends_on:
- selenium_hub
- real_device
ports:
- 6080
volumes:
+1 -1
View File
@@ -1,4 +1,4 @@
FROM appium/appium:1.7.2-p0
FROM appium/appium:1.7.2-p1
LABEL maintainer "Budi Utomo <budi.ut.1989@gmail.com>"
+1 -1
View File
@@ -1,4 +1,4 @@
FROM appium/appium:1.7.2-p0
FROM appium/appium:1.7.2-p1
LABEL maintainer "Budi Utomo <budi.ut.1989@gmail.com>"
+3 -9
View File
@@ -1,4 +1,4 @@
FROM appium/appium:1.7.2-p0
FROM appium/appium:1.7.2-p1
LABEL maintainer "Budi Utomo <budi.ut.1989@gmail.com>"
@@ -67,14 +67,7 @@ RUN wget -nv -O noVNC.zip "https://github.com/kanaka/noVNC/archive/${NOVNC_SHA}
&& rm websockify.zip \
&& ln noVNC/vnc_auto.html noVNC/index.html
#==============================================
# Download Adb remote screen
#==============================================
RUN wget -nv -O asm.zip "http://adakoda.github.io/android-screen-monitor/download/3.0.0/ASM_3_00.zip" \
&& unzip asm.zip \
&& rm asm.zip
#================================================
#================================================
# noVNC Default Configurations
# These Configurations can be changed through -e
#================================================
@@ -110,6 +103,7 @@ EXPOSE 4723 6080 5555
#===================
# Run docker-appium
#===================
COPY sm/asm.jar /root/
COPY src /root/src
COPY supervisord.conf /root/
RUN chmod -R +x /root/src && chmod +x /root/supervisord.conf
Binary file not shown.

Before

Width:  |  Height:  |  Size: 131 KiB

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 244 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 229 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 KiB

Executable
BIN
View File
Binary file not shown.