Browse Source

added qemu to emulate whatsapp

master
Eorn 3 years ago
parent
commit
8cc613604f
  1. 16
      apps/android/Dockerfile
  2. 21
      apps/android/docker-compose.yml
  3. 10
      apps/android/run.sh

16
apps/android/Dockerfile

@ -0,0 +1,16 @@
FROM debian:buster-20190228-slim
RUN apt-get update && apt-get -y upgrade && \
apt-get --no-install-recommends -y install \
iproute2 \
jq \
python3 \
qemu-system-x86 \
udhcpd \
&& apt-get clean
COPY run.sh /run/
VOLUME /image
ENTRYPOINT ["/run/run.sh"]

21
apps/android/docker-compose.yml

@ -0,0 +1,21 @@
version: '3'
services:
android:
image: android
build:
context: .
restart: unless-stopped
networks:
- myweb
devices:
- /dev/net/tun
- /dev/kvm
volumes:
- './data/android.img:/image'
networks:
myweb:
external: true

10
apps/android/run.sh

@ -0,0 +1,10 @@
#!/usr/bin/env bash
exec qemu-system-x86_64 \
-m 2058 \
-boot d \
-enable-kvm \
-smp 3 \
-net nic \
-net user,hostfwd=tcp::4444-:5555 \
-hda /image
Loading…
Cancel
Save