http://www.bestfilez.net/articles/linux/emulator-android-virtual-kali-linux | |
Bestfilez.net - новости мира Hi-tech :: Статьи :: Linux OS |
apt update && apt upgrade -y
apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common -y
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
echo "deb https://download.docker.com/linux/debian stretch stable" >> /etc/apt/sources.list
apt update && apt install docker-ce -y
curl -L https://github.com/docker/compose/releases/download/1.18.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
systemctl enable docker && systemctl start docker
mkdir ~/docker && nano ~/docker/docker-compose.yml
version: "2.2"
services:
selenium_hub:
image: selenium/hub:3.4.0
ports:
- 4444:4444
nexus_7.1.1:
image: butomo1989/docker-android-x86-7.1.1
privileged: true
# Increase scale number if needed
scale: 1
ports:
- 6080:6080
- 5554:5554
- 5555:5555
volumes:
- ./video-nexus_7.1.1:/tmp/video
environment:
- DEVICE=Nexus 5
- CONNECT_TO_GRID=True
- APPIUM=true
- SELENIUM_HOST=selenium_hub
- AUTO_RECORD=True
cd ~/docker && docker-compose up -d
cd ~/docker && docker-compose down