docker-android | docker solution with noVNC | Functional Testing library
kandi X-RAY | docker-android Summary
kandi X-RAY | docker-android Summary
Docker-Android is a docker image built to be used for everything related to mobile website testing and Android project.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of docker-android
docker-android Key Features
docker-android Examples and Code Snippets
Community Discussions
Trending Discussions on docker-android
QUESTION
I installed, inside docker, android SDK. No matter what arguments I pass to the SDK, I get the same error about illegal arguments. Example:
...ANSWER
Answered 2020-Sep-16 at 14:53Correction.
It happened to me for Linux. I used --sdk_root
and it worked.
Ex:
If the tools are installed in $ANDROID_HOME
, and tools are located in
$ANDROID_HOME/tools
, I have to use this option --sdk_root=$ANDROID_HOME
.
Then run
$ANDROID_HOME/tools/bin/sdkmanager --list --sdkroot=$ANDROID_HOME
QUESTION
I have command to run docker container --
sudo docker run --privileged -d -p 6100:6080 -p 4743:4723 -p 5574:5554 -p 5575:5555 -v /home/androidApk:/root/AndroiApks -e DEVICE="Samsung Galaxy S6" -e APPIUM=true -e APPIUM_HOST="127.0.0.1" -e APPIUM_PORT=4723 --name=Samsung_Galaxy_S6-8.1-11.0.6 budtmo/docker-android-x86-8.1
If i use this command locally - container will start up.
But i need use this command remotly(по ssh). And same command(but with adding ssh password) doesn't start docker container remotely.
sudo sshpass -p "password" ssh akupyrev@ -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no sudo docker run --privileged -d -p 6100:6080 -p 4743:4723 -p 5574:5554 -p 5575:5555 -v /home/androidApk:/root/AndroidApks -e DEVICE="Samsung Galaxy S6" -e APPIUM=true -e APPIUM_HOST="127.0.0.1" -e APPIUM_PORT=4723 --name=Samsung_Galaxy_S6-8.1-11.0.6 budtmo/docker-android-x86-8.1
Error from console — docker: invalid reference format: repository name must be lowercase.
Tried to wrap command to '' - no effects.
UPD 1 :: The main problem in ::: -e DEVICE="Samsung Galaxy S6" because without this option - container start ok
...ANSWER
Answered 2020-Aug-10 at 10:06Firstly, there is a syntax issue with ssh
. Command to be executed remotely should be included between quotes, like so.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install docker-android
Your machine need to support virtualization. To check it: sudo apt install cpu-checker kvm-ok
Run Docker-Android For Linux OS, please use image name that contains "x86" docker run --privileged -d -p 6080:6080 -p 5554:5554 -p 5555:5555 -e DEVICE="Samsung Galaxy S6" --name android-container budtmo/docker-android-x86-8.1 For OSX and Windows OS, please use Virtual Machine that support Virtualization with Ubuntu OS
Verify the ip address of docker host. For OSX, you can find out by using following command: docker-machine ip default For different OS, localhost should work.
Open http://docker-host-ip-address:6080 from web browser. Note: Adding ?view_only=true will give user only view only permission.
Docker-Android can be used for building Android project and executing its unit test. This following steps will illustrate how to build Android project:.
Clone this sample test project. git clone git@github.com:android/testing-samples.git
Build the project docker run -it --rm -v $PWD/testing-samples/ui/espresso/BasicSample:/tmp -w /tmp budtmo/docker-android-x86-8.1 /tmp/gradlew build
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page