Compare commits

..
45 Commits
Author SHA1 Message Date
budtmo d69e7c7dd0 Updated base image to version v2.2.2-p0 2023-11-22 10:15:08 +01:00
Budi UtomoandGitHub 8f15a2845f Merge pull request #391 from budtmo/dependabot/pip/master/coverage-7.3.2
[pip] Bump coverage from 7.3.1 to 7.3.2
2023-10-04 17:50:49 +02:00
dependabot[bot]andGitHub 9cee77998f [pip] Bump coverage from 7.3.1 to 7.3.2
Bumps [coverage](https://github.com/nedbat/coveragepy) from 7.3.1 to 7.3.2.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](https://github.com/nedbat/coveragepy/compare/7.3.1...7.3.2)

---
updated-dependencies:
- dependency-name: coverage
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-02 23:38:55 +00:00
budtmo 13bd9611d7 Updated Appium base image 2023-09-22 12:23:13 +02:00
Budi UtomoandGitHub 9d5ab2dbe1 Merge pull request #386 from budtmo/dependabot/pip/master/coverage-7.3.1
[pip] Bump coverage from 7.3.0 to 7.3.1
2023-09-07 08:33:43 +02:00
dependabot[bot]andGitHub 9a5f560a73 [pip] Bump coverage from 7.3.0 to 7.3.1
Bumps [coverage](https://github.com/nedbat/coveragepy) from 7.3.0 to 7.3.1.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](https://github.com/nedbat/coveragepy/compare/7.3.0...7.3.1)

---
updated-dependencies:
- dependency-name: coverage
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-06 23:22:54 +00:00
Budi UtomoandGitHub c1538606d2 Merge pull request #385 from budtmo/dependabot/github_actions/master/actions/checkout-4
[github-action] Bump actions/checkout from 3 to 4
2023-09-05 08:04:22 +02:00
dependabot[bot]andGitHub e706fedd12 [github-action] Bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 23:54:20 +00:00
budtmo 4eb85fbf28 Updated base image to version 2.1.3-p0 2023-08-30 15:46:39 +02:00
Budi UtomoandGitHub 64b922c734 Merge pull request #384 from budtmo/dependabot/pip/master/autopep8-2.0.4
[pip] Bump autopep8 from 2.0.2 to 2.0.4
2023-08-28 08:03:07 +02:00
dependabot[bot]andGitHub c8ec687300 [pip] Bump autopep8 from 2.0.2 to 2.0.4
Bumps [autopep8](https://github.com/hhatto/autopep8) from 2.0.2 to 2.0.4.
- [Release notes](https://github.com/hhatto/autopep8/releases)
- [Commits](https://github.com/hhatto/autopep8/compare/v2.0.2...v2.0.4)

---
updated-dependencies:
- dependency-name: autopep8
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-27 23:08:55 +00:00
Budi UtomoandGitHub 4feb3a1c08 Merge pull request #383 from budtmo/dependabot/pip/master/click-8.1.7
[pip] Bump click from 8.1.6 to 8.1.7
2023-08-18 09:34:06 +02:00
dependabot[bot]andGitHub cb87d43aab [pip] Bump click from 8.1.6 to 8.1.7
Bumps [click](https://github.com/pallets/click) from 8.1.6 to 8.1.7.
- [Release notes](https://github.com/pallets/click/releases)
- [Changelog](https://github.com/pallets/click/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/click/compare/8.1.6...8.1.7)

---
updated-dependencies:
- dependency-name: click
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-17 23:56:08 +00:00
Budi UtomoandGitHub d4e7a95a8c Merge pull request #382 from budtmo/dependabot/pip/master/coverage-7.3.0
[pip] Bump coverage from 7.2.7 to 7.3.0
2023-08-14 07:24:42 +02:00
dependabot[bot]andGitHub 72418957d5 [pip] Bump coverage from 7.2.7 to 7.3.0
Bumps [coverage](https://github.com/nedbat/coveragepy) from 7.2.7 to 7.3.0.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](https://github.com/nedbat/coveragepy/compare/7.2.7...7.3.0)

---
updated-dependencies:
- dependency-name: coverage
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-13 23:46:22 +00:00
budtmo 725138794b Updated documentation about Selenium 4.x integration 2023-08-08 11:25:59 +02:00
budtmo 92a5487df3 Added documentation about Selenium 4.x integration 2023-08-08 11:21:51 +02:00
budtmo 0a026decdc Typo 2023-08-07 15:13:15 +02:00
budtmo 01d12a2263 New release format 2023-08-07 14:20:03 +02:00
budtmo 92a406e3ba Fixed typo 2023-08-04 14:37:34 +02:00
budtmo 56c8deedd2 Updated base image to 2.0.1-p0 2023-08-04 14:33:41 +02:00
budtmo 7a4933c63a Updated base image to 2.0.0-p1 2023-08-04 14:29:53 +02:00
Budi UtomoandGitHub e268a43141 Merge pull request #379 from foureight84/wsl2-nestedVirtualization
[documentation] WSL2 - added instructions to enable hw accelerated kvm via nestedvirtualization flag
2023-08-04 12:44:08 +02:00
Khoa Truong 87bebdf4ea [documentation] added instructions to enable hw accelerated kvm via nestedvirtualization flag 2023-08-03 01:42:06 -07:00
Budi UtomoandGitHub 52642214ed Merge pull request #374 from budtmo/dependabot/pip/master/click-8.1.6
[pip] Bump click from 8.1.5 to 8.1.6
2023-07-19 07:35:54 +02:00
dependabot[bot]andGitHub f0985a3898 [pip] Bump click from 8.1.5 to 8.1.6
Bumps [click](https://github.com/pallets/click) from 8.1.5 to 8.1.6.
- [Release notes](https://github.com/pallets/click/releases)
- [Changelog](https://github.com/pallets/click/blob/8.1.6/CHANGES.rst)
- [Commits](https://github.com/pallets/click/compare/8.1.5...8.1.6)

---
updated-dependencies:
- dependency-name: click
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-18 23:19:20 +00:00
Budi UtomoandGitHub b082c0545f Merge pull request #372 from budtmo/dependabot/pip/master/coverage-7.2.7
[pip] Bump coverage from 7.2.5 to 7.2.7
2023-07-14 12:33:07 +02:00
dependabot[bot]andGitHub 6625803431 [pip] Bump coverage from 7.2.5 to 7.2.7
Bumps [coverage](https://github.com/nedbat/coveragepy) from 7.2.5 to 7.2.7.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](https://github.com/nedbat/coveragepy/compare/7.2.5...7.2.7)

---
updated-dependencies:
- dependency-name: coverage
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-14 10:26:01 +00:00
Budi UtomoandGitHub 6918f1519f Merge pull request #371 from budtmo/dependabot/pip/master/click-8.1.5
[pip] Bump click from 8.1.3 to 8.1.5
2023-07-14 12:25:29 +02:00
Budi UtomoandGitHub 92c655cad2 Merge pull request #370 from budtmo/dependabot/pip/master/mock-5.1.0
[pip] Bump mock from 5.0.2 to 5.1.0
2023-07-14 12:24:52 +02:00
dependabot[bot]andGitHub 9ad0f32d93 [pip] Bump click from 8.1.3 to 8.1.5
Bumps [click](https://github.com/pallets/click) from 8.1.3 to 8.1.5.
- [Release notes](https://github.com/pallets/click/releases)
- [Changelog](https://github.com/pallets/click/blob/8.1.5/CHANGES.rst)
- [Commits](https://github.com/pallets/click/compare/8.1.3...8.1.5)

---
updated-dependencies:
- dependency-name: click
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-14 10:18:02 +00:00
dependabot[bot]andGitHub e77bb73077 [pip] Bump mock from 5.0.2 to 5.1.0
Bumps [mock](https://github.com/testing-cabal/mock) from 5.0.2 to 5.1.0.
- [Changelog](https://github.com/testing-cabal/mock/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/testing-cabal/mock/compare/5.0.2...5.1.0)

---
updated-dependencies:
- dependency-name: mock
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-14 10:17:59 +00:00
budtmo 6e9d4767f6 Added dependabot to update dependencies 2023-07-14 12:17:33 +02:00
budtmo 77f1be5bdd Updated appium base image 2023-07-06 10:26:29 +02:00
budtmo 11279d2595 Updated base image v2.0.b71-p0 2023-06-07 21:30:07 +02:00
Budi UtomoandGitHub b600346ab6 Merge pull request #355 from budtmo/dependabot/pip/cli/requests-2.31.0
Bump requests from 2.30.0 to 2.31.0 in /cli
2023-05-23 17:42:55 +02:00
dependabot[bot]andGitHub f727ee0667 Bump requests from 2.30.0 to 2.31.0 in /cli
Bumps [requests](https://github.com/psf/requests) from 2.30.0 to 2.31.0.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](https://github.com/psf/requests/compare/v2.30.0...v2.31.0)

---
updated-dependencies:
- dependency-name: requests
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-23 07:07:47 +00:00
Budi UtomoandGitHub fe61c99eff Update DOCKER-ANDROID-PRO.md 2023-05-17 23:04:04 +02:00
Budi UtomoandGitHub 2ac43ba4cb Changed order in readme 2023-05-11 14:35:06 +02:00
budtmo 0591667c0b Resized the image 2023-05-11 14:03:58 +02:00
budtmo af1c18856a Added docker-android users 2023-05-11 13:49:44 +02:00
budtmo 28c71e2b65 Added codecov badge 2023-05-11 13:42:19 +02:00
budtmo ea2f387203 Merge branch 'master' of github.com:budtmo/docker-android 2023-05-11 13:02:21 +02:00
budtmo a365368044 Added step to publish test result 2023-05-11 13:02:13 +02:00
Budi UtomoandGitHub 0fe711f563 Typo 2023-05-10 13:44:36 +02:00
10 changed files with 124 additions and 20 deletions
+40
View File
@@ -0,0 +1,40 @@
version: 2
updates:
- package-ecosystem: docker
directory: "/docker"
schedule:
interval: daily
time: '01:00'
timezone: "Europe/Berlin"
commit-message:
prefix: "[docker] "
target-branch: "master"
open-pull-requests-limit: 99
reviewers:
- "budtmo"
- package-ecosystem: pip
directory: "/"
schedule:
interval: daily
time: '01:00'
timezone: "Europe/Berlin"
commit-message:
prefix: "[pip] "
target-branch: "master"
open-pull-requests-limit: 99
reviewers:
- "budtmo"
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
time: '01:00'
timezone: "Europe/Berlin"
commit-message:
prefix: "[github-action] "
target-branch: "master"
open-pull-requests-limit: 99
reviewers:
- "budtmo"
+4 -4
View File
@@ -13,7 +13,7 @@ jobs:
python-version: ["3.8"]
steps:
- name: Checkout the repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
@@ -35,7 +35,7 @@ jobs:
needs: run_test
steps:
- name: Checkout the repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Get release version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
@@ -54,7 +54,7 @@ jobs:
android: ["9.0", "10.0", "11.0", "12.0", "13.0"]
steps:
- name: Checkout the repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Get release version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
@@ -70,7 +70,7 @@ jobs:
needs: release_base
steps:
- name: Checkout the repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Get release version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
+5 -2
View File
@@ -13,10 +13,13 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout the repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Build base image
run: script -e -c "./app.sh build base test"
- name: Build emulator image and run unit-test
run: script -e -c "./app.sh test emulator test 11.0 && sudo mv tmp/* . && ls -al"
run: script -e -c "./app.sh test emulator test 11.0 && sudo mv tmp/* ."
- name: Publish test result
run: bash <(curl -s https://codecov.io/bash)
+41 -2
View File
@@ -3,7 +3,7 @@
<img id="header" src="./images/logo_docker-android.png" />
</p>
[![Paypal Donate](https://img.shields.io/badge/paypal-donate-blue.svg)](http://paypal.me/budtmo) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) [![Join the chat at https://gitter.im/budtmo/docker-android](https://badges.gitter.im/budtmo/docker-android.svg)](https://gitter.im/budtmo/docker-android?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![GitHub release](https://img.shields.io/github/release/budtmo/docker-android.svg)](https://github.com/budtmo/docker-android/releases)
[![Paypal Donate](https://img.shields.io/badge/paypal-donate-blue.svg)](http://paypal.me/budtmo) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) [![codecov](https://codecov.io/gh/budtmo/docker-android/branch/master/graph/badge.svg)](https://codecov.io/gh/budtmo/docker-android) [![Join the chat at https://gitter.im/budtmo/docker-android](https://badges.gitter.im/budtmo/docker-android.svg)](https://gitter.im/budtmo/docker-android?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![GitHub release](https://img.shields.io/github/release/budtmo/docker-android.svg)](https://github.com/budtmo/docker-android/releases)
Docker-Android is a docker image built to be used for everything related to Android. It can be used for Application development and testing (native, web and hybrid-app).
@@ -73,6 +73,37 @@ Quick Start
docker exec -it android-container cat device_status
```
WSL2 Hardware acceleration (Windows 11 only)
-----------
Credit goes to [Guillaume - The Parallel Interface blog](https://www.paralint.com/2022/11/find-new-modified-and-unversioned-subversion-files-on-windows)
[Microsoft - Advanced settings configuration in WSL](https://learn.microsoft.com/en-us/windows/wsl/wsl-config)
1. Add yourself to the `kvm` usergroup.
```
sudo usermod -a -G kvm ${USER}
```
2. Add necessary flags to `/etc/wsl2.conf` to their respective sections.
```
[boot]
command = /bin/bash -c 'chown -v root:kvm /dev/kvm && chmod 660 /dev/kvm'
[wsl2]
nestedVirtualization=true
```
3. Restart WSL2 via CMD prompt or Powershell
```
wsl --shutdown
```
`command = /bin/bash -c 'chown -v root:kvm /dev/kvm && chmod 660 /dev/kvm'` sets `/dev/kvm` to `kvm` usergroup rather than the default `root` usergroup on WSL2 startup.
`nestedVirtualization` flag is only available to Windows 11.
Use-Cases
---------
@@ -101,6 +132,14 @@ Emulator Skins
--------------
The Emulator skins are taken from [Android Studio IDE](https://developer.android.com/studio) and [Samsung Developer Website](https://developer.samsung.com/)
USERS
-----
<a href="https://lookerstudio.google.com/s/iGaemHJqQvg">
<p align="center">
<img src="./images/docker-android_users.png" alt="docker-android-users" width="800" height="600">
</p>
</a>
PRO VERSION
-----------
@@ -116,13 +155,13 @@ The differences between normal version and pro version are:
|language|No|Yes|Set up language on Android emulator on fly|
|root-privileged|No|Yes|Able to run command with security privileged|
|headless-mode|No|Yes|Save resources by using headless mode|
|Selenium 4.x integration|No|Yes|Running Appium UI-Tests againt one (Selenium Hub) endpoint for Android- and iOS emulator(s) / device(s)|
|multiple Android-Simulators|No|Yes (soon)|Save resources by having multiple Android-Simulators on one docker-container|
|Google Play Store|No|Yes (soon)|-|
|Video Recording|No|Yes (soon)|Helpful for debugging|
This [document](./documentations/DOCKER-ANDROID-PRO.md) contains detail information about how to use docker-android-pro.
LICENSE
-------
See [License](LICENSE.md)
+1 -1
View File
@@ -27,7 +27,7 @@ fi
is_str_in_list ${p} ${projects[@]}
if [ -z "${3}" ]; then
read -p "Release Version (v2.0-p0|v2.0-p1|etc) : " r_v
read -p "Release Version (v2.0.0-p0|v2.0.0-p1|etc) : " r_v
else
r_v=${3}
fi
+5 -5
View File
@@ -1,6 +1,6 @@
autopep8==2.0.2
click==8.1.3
coverage==7.2.5
mock==5.0.2
autopep8==2.0.4
click==8.1.7
coverage==7.3.2
mock==5.1.0
nose==1.3.7
requests==2.30.0
requests==2.31.0
+1 -1
View File
@@ -1,4 +1,4 @@
FROM appium/appium:v2.0.b63-p2
FROM appium/appium:v2.2.2-p0
LABEL maintainer "Budi Utomo <budtmo.os@gmail.com>"
+11 -5
View File
@@ -12,6 +12,7 @@ The differences between normal version and pro version are:
|language|No|Yes|Set up language on Android emulator on fly|
|root-privileged|No|Yes|Able to run command with security privileged|
|headless-mode|No|Yes|Save resources by using headless mode|
|Selenium 4.x integration|No|Yes|Running Appium UI-Tests againt one (Selenium Hub) endpoint for Android- and iOS emulator(s) / device(s)|
|multiple Android-Simulators|No|Yes (soon)|Save resources by having multiple Android-Simulators on one docker-container|
|Google Play Store|No|Yes (soon)|-|
|Video Recording|No|Yes (soon)|Helpful for debugging|
@@ -21,20 +22,21 @@ List of Docker-Images
---------------------
|Android |API |Type |Image with latest release version |Image with specific release version|
|:---|:---|:---|:---|:---|
|9.0|28|Normal|budtmo2/docker-android-pro:emulator_9.0_v2.0|budtmo2/docker-android-pro:emulator_9.0_<release_version>|
|9.0|28|Normal|budtmo2/docker-android-pro:emulator_9.0|budtmo2/docker-android-pro:emulator_9.0_<release_version>|
|10.0|29|Normal|budtmo2/docker-android-pro:emulator_10.0|budtmo2/docker-android-pro:emulator_10.0_<release_version>|
|11.0|30|Normal|budtmo2/docker-android-pro:emulator_11.0|budtmo2/docker-android-pro:emulator_11.0_<release_version>|
|12.0|32|Normal|budtmo2/docker-android-pro:emulator_12.0|budtmo2/docker-android-pro:emulator_12.0_<release_version>|
|13.0|33|Normal|budtmo2/docker-android-pro:emulator_13.0|budtmo2/docker-android-pro:emulator_13.0_<release_version>|
|9.0|28|Headless|budtmo2/docker-android-pro:emulator_headless_9.0_v2.0|budtmo2/docker-android-pro:emulator_headless_9.0_<release_version>|
|9.0|28|Headless|budtmo2/docker-android-pro:emulator_headless_9.0|budtmo2/docker-android-pro:emulator_headless_9.0_<release_version>|
|10.0|29|Headless|budtmo2/docker-android-pro:emulator_headless_10.0|budtmo2/docker-android-pro:emulator_headless_10.0_<release_version>|
|11.0|30|Headless|budtmo2/docker-android-pro:emulator_headless_11.0|budtmo2/docker-android-pro:emulator_headless_11.0_<release_version>|
|12.0|32|Headless|budtmo2/docker-android-pro:emulator_headless_12.0|budtmo2/docker-android-pro:emulator_headless_12.0_<release_version>|
|13.0|33|Headless|budtmo2/docker-android-pro:emulator_headless_13.0|budtmo2/docker-android-pro:emulator_headless_13.0_<release_version>|
|-|-|Selenium|budtmo2/docker-android-pro:selenium|budtmo2/docker-android-pro:selenium_<release_version>|
***Note: Headless mode does not have any Web-UI***
You can always pull the latest image tag. In case you want to see the release version that has been built with a changelog note and use that specific release version, you can see that information by logging into [docker-hub-ui](https://hub.docker.com) using given access token.
You can always pull the latest image tag. In case you want to see the release version that has been built with a changelog note and use that specific release version, the information will be sent to you as well.
List of Devices
@@ -77,9 +79,13 @@ You can change the language setting of Android Emulator on the fly by passing fo
- EMULATOR_COUNTRY="\<country>"
Version
-------
Selenium
--------
Pull and run image that contains Selenium with Appium urls and its capabilities which is stored inside node.json file:
```
docker run -t --rm --name selenium -p 4444:4444 -v $PWD/pro-example/node.json:/home/seleniumusr/selenium_node_config/node.json budtmo2/docker-android-pro:selenium
```
[<- BACK TO README](../README.md)
+16
View File
@@ -0,0 +1,16 @@
[
{
"appium_url": "http://xx.xx.xx.xx:4723",
"capability_platform": "android",
"capability_platform_version": "11.0",
"capability_device_name": "samsung_galaxy_s6_11.0",
"capability_automation_name": "UIAutomator2"
},
{
"appium_url": "http://xx.xx.xx.xx:4724",
"capability_platform": "android",
"capability_platform_version": "10.0",
"capability_device_name": "nexus_5_10.0",
"capability_automation_name": "UIAutomator2"
}
]
Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB