All Projects β†’ budtmo β†’ Docker Android

budtmo / Docker Android

Licence: other
Android in docker solution with noVNC supported and video recording

Programming Languages

shell
77523 projects
python
139335 projects - #7 most used programming language
HCL
1544 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Docker Android

Infracost
Cloud cost estimates for Terraform in pull requestsπŸ’°πŸ“‰ Love your cloud bill!
Stars: ✭ 4,505 (+11.45%)
Mutual labels:  aws, cloud, gcp, terraform, azure
Hybrid multicloud overlay
MutiCloud_Overlay demonstrates a use case of overlay over one or more clouds such as AWS, Azure, GCP, OCI, Alibaba and a vSphere private infrastructure in Hub and spoke topology, point to point topology and in a Single cloud. Overlay protocols IPv6 and IPv4 are independent of underlying infrastructure. This solution can be integrated with encryption and additional security features.
Stars: ✭ 127 (-96.86%)
Mutual labels:  aws, azure, gcp, terraform, jenkins
Terratag
Terratag is a CLI tool that enables users of Terraform to automatically create and maintain tags across their entire set of AWS, Azure, and GCP resources
Stars: ✭ 385 (-90.48%)
Mutual labels:  aws, cloud, azure, gcp, terraform
Engine
Deploy your apps on any Cloud provider in just a few seconds
Stars: ✭ 1,132 (-71.99%)
Mutual labels:  aws, cloud, azure, gcp, terraform
Terracognita
Reads from existing Cloud Providers (reverse Terraform) and generates your infrastructure as code on Terraform configuration
Stars: ✭ 452 (-88.82%)
Mutual labels:  aws, cloud, azure, gcp, terraform
Pulumi
Pulumi - Developer-First Infrastructure as Code. Your Cloud, Your Language, Your Way πŸš€
Stars: ✭ 10,887 (+169.35%)
Mutual labels:  aws, cloud, azure, gcp
Azure arc
Automated Azure Arc environments
Stars: ✭ 224 (-94.46%)
Mutual labels:  aws, azure, gcp, terraform
Arvados
An open source platform for managing and analyzing biomedical big data
Stars: ✭ 274 (-93.22%)
Mutual labels:  aws, cloud, azure, gcp
Cloudsploit
Cloud Security Posture Management (CSPM)
Stars: ✭ 1,338 (-66.9%)
Mutual labels:  aws, cloud, azure, gcp
Terraformer
CLI tool to generate terraform files from existing infrastructure (reverse Terraform). Infrastructure to Code
Stars: ✭ 6,316 (+56.26%)
Mutual labels:  aws, cloud, gcp, terraform
Cloud Portal
Self service web portal for different Cloud platforms like Azure, AWS and VMWare vSphere.
Stars: ✭ 60 (-98.52%)
Mutual labels:  aws, cloud, azure, terraform
Scoutsuite
Multi-Cloud Security Auditing Tool
Stars: ✭ 3,803 (-5.91%)
Mutual labels:  aws, cloud, azure, gcp
Go Cloud
The Go Cloud Development Kit (Go CDK): A library and tools for open cloud development in Go.
Stars: ✭ 8,124 (+100.99%)
Mutual labels:  aws, cloud, azure, gcp
Cloudguardiaas
Check Point CloudGuard Network Security repository containing solution templates, Terraform templates, tools and scripts for deploying and configuring CloudGuard Network Security products.
Stars: ✭ 27 (-99.33%)
Mutual labels:  aws, azure, gcp, terraform
Offensive Terraform.github.io
Offensive Terraform Website
Stars: ✭ 25 (-99.38%)
Mutual labels:  aws, azure, gcp, terraform
Seldon Server
Machine Learning Platform and Recommendation Engine built on Kubernetes
Stars: ✭ 1,435 (-64.5%)
Mutual labels:  aws, cloud, azure, gcp
Terraform Kubestack
Terraform GitOps Framework β€” Everything you need to build reliable automation for AKS, EKS and GKE Kubernetes clusters in one free and open-source framework.
Stars: ✭ 300 (-92.58%)
Mutual labels:  aws, azure, gcp, terraform
Checkov
Prevent cloud misconfigurations during build-time for Terraform, Cloudformation, Kubernetes, Serverless framework and other infrastructure-as-code-languages with Checkov by Bridgecrew.
Stars: ✭ 3,572 (-11.63%)
Mutual labels:  aws, azure, gcp, terraform
Learning Cloud
List of resources - courses, sample code, articles and screencasts for learning AWS, Azure, GCP and Alibaba Cloud
Stars: ✭ 100 (-97.53%)
Mutual labels:  aws, cloud, azure, gcp
Externalsecret Operator
An operator to fetch secrets from cloud services and inject them in Kubernetes
Stars: ✭ 177 (-95.62%)
Mutual labels:  aws, cloud, azure, gcp

Analytics Join the chat at https://gitter.im/budtmo/docker-android Build Status codecov Codacy Badge GitHub release FOSSA Status Paypal Donate PRs Welcome

Docker-Android is a docker image built to be used for everything related to mobile website testing and Android project.

Emulator - Samsung Device Emulator - Nexus Device Real Device

Purposes

  1. Run UI tests for mobile websites with appium
  2. Build Android project and run unit tests with the latest build-tools
  3. Run UI tests for Android applications with different frameworks (appium, espresso, robotium, etc.)
  4. Run monkey / stress tests
  5. SMS testing

Advantages compare with other docker-android projects

  1. noVNC to see what happen inside docker container
  2. Emulator for different devices / skins, such as Samsung Galaxy S6, LG Nexus 4, HTC Nexus One and more.
  3. Ability to connect to Selenium Grid
  4. Ability to control emulator from outside container by using adb connect
  5. Support real devices with screen mirroring
  6. Ability to record video during test execution for debugging
  7. Integrated with other cloud solutions, e.g. Genymotion Cloud
  8. Open source with more features coming

List of Docker images

OS Android API Browser Browser version Chromedriver Image Size
Linux 6.0 23 browser 44.0 2.18 budtmo/docker-android-x86-6.0
Linux 7.0 24 chrome 51.0 2.23 budtmo/docker-android-x86-7.0
Linux 7.1.1 25 chrome 55.0 2.28 budtmo/docker-android-x86-7.1.1
Linux 8.0 26 chrome 58.0 2.31 budtmo/docker-android-x86-8.0
Linux 8.1 27 chrome 61.0 2.33 budtmo/docker-android-x86-8.1
Linux 9.0 28 chrome 66.0 2.40 budtmo/docker-android-x86-9.0
Linux 10.0 29 chrome 74.0 74.0.3729.6 budtmo/docker-android-x86-10.0
Linux 11.0 30 chrome 83.0 83.0.4103.39 budtmo/docker-android-x86-11.0
Linux 12.0 31 chrome 93.0 93.0.4577.15 budtmo/docker-android-x86-12.0
All - - - - - budtmo/docker-android-real-device
All All All All All All budtmo/docker-android-genymotion

List of Devices

Type Device Name
Phone Samsung Galaxy S10
Phone Samsung Galaxy S9
Phone Samsung Galaxy S8
Phone Samsung Galaxy S7 Edge
Phone Samsung Galaxy S7
Phone Samsung Galaxy S6
Phone Nexus 4
Phone Nexus 5
Phone Nexus One
Phone Nexus S
Tablet Nexus 7

Requirements

Docker is installed in your system.

Quick Start

  1. Your machine need to support virtualization. To check it:

    sudo apt install cpu-checker
    kvm-ok
    
  2. 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

  3. 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.

  4. Open http://docker-host-ip-address:6080 from web browser. Note: Adding ?view_only=true will give user only view only permission.

Custom configurations

This document contains custom configurations of Docker-Android that you might need, e.g. Proxy, Changing language on fly, etc.

Build Android project

Docker-Android can be used for building Android project and executing its unit test. This following steps will illustrate how to build Android project:

  1. Clone this sample test project.

    git clone [email protected]:android/testing-samples.git
  2. 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

Control Android connected to host (Emulator or Real Device)

  1. Create a docker container with this command

    $ docker run --privileged -d -p 6080:6080 -p 5554:5554 -p 5555:5555 -p 4723:4723 --name android-container-appium budtmo/docker-android-real-device
    
  2. Open noVNC http://localhost:6080

  3. Open terminal by clicking right on noVNC window >> Terminal emulator

  4. To connect to host's adb (make sure your host have adb and connected to the device.)

    $ adb -H host.docker.internal devices
    

    To specify port, just add -P port_number

    $ adb -H host.docker.internal -P 5037 devices
    
  5. Now your container can access your host devices. But, you need to add remoteAdbHost and adbPort desired capabilities to make Appium can recognise those devices.

Appium and Selenium Grid

If you want to use Appium and Selenium Grid, you can follow this document. It also contains sample and use cases.

Control android emulator outside container

adb connect <docker-machine-ip-address>:5555

Note: You need to have Android Debug Bridge (adb) installed in your host machine.

SMS Simulation

  1. Using telnet

    • Find the auth_token and copy it.
    docker exec -it android-container cat /root/.emulator_console_auth_token
    • Access emulator using telnet and login with auth_token
    telnet <docker-machine-ip-address> 5554
    • Login with given auth_token from 1.step
    auth <auth_token>
    • Send the sms
    sms send <phone_number> <message>
  2. Using adb

    docker exec -it android-container adb emu sms send <phone_number> <message>
  3. You can also integrate it inside project using adb library.

Google Play Services and Google Play Store

Not installed at this time.

Jenkins

This document gives you information about custom plugin that supports Docker-Android.

VMWARE

This document shows you how to configure Virtual Machine on VMWARE to be able to run Docker-Android.

Cloud

This document contains information about deploying Docker-Android on cloud services.

Genymotion

For you who do not have ressources to maintain the simulator or to buy machines or need different device profiles, you need to give a try to Genymotion Cloud. Docker-Android is integrated with Genymotion on different cloud services, e.g. Genymotion Cloud, AWS, GCP, Alibaba Cloud. Please follow this document or this blog for more detail.

Troubleshooting

All logs inside container are stored under folder /var/log/supervisor. you can print out log file by using docker exec. Example:

docker exec -it android-container tail -f /var/log/supervisor/docker-android.stdout.log

Emulator Skins

The Emulator skins are taken from Android Studio IDE and Samsung Developer Website

Security

All docker images are protected by Polyverse by scrambling the Linux packages. For more information please visit this link

Monitoring

You can use cadvisor combined with influxdb / prometheus and grafana if needed to monitor each running container.

Users

Docker-Android are being used by 100+ countries around the world.

ga-datastudio-docker-android

Stargazers over time

Stargazers over time

Special Thanks

LICENSE

See License

FOSSA Status

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].