-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy pathDockerfile.save
96 lines (71 loc) · 2.65 KB
/
Dockerfile.save
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Alpine Linux with python 2.7 and Oracle Java 8
FROM ubuntu:artful
# Installing Oracle JDK 8
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
software-properties-common \
wget \
git \
lib32gcc1 \
lib32ncurses5 \
lib32stdc++6 \
lib32z1 \
libc6-i386 \
libgl1-mesa-dev \
python-pip \
python-dev \
gcc \
python-tk \
curl \
#&& add-apt-repository ppa:webupd8team/java -y \
#&& apt-get update \
#&& echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections \
#&& apt-get install -y oracle-java8-installer \
&& echo "y" | apt-get install openjdk-8-jdk \
&& echo "y" | apt-get install openjdk-8-jre \
&& apt-get install -y python-setuptools \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Installing Android SDK and Android 16
RUN cd / \
&& wget -qO- http://dl.google.com/android/android-sdk_r24.2-linux.tgz | tar xz -C /root/ --no-same-permissions \
# && wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz \
# && tar xfz android-sdk_r24.2-linux.tgz \
# && ln -s /android-sdk-linux/tools/android /usr/bin/android
&& chmod -R a+rX /root/android-sdk-linux \
&& echo y | /root/android-sdk-linux/tools/android update sdk --filter tools --no-ui --force -a \
&& echo y | /root/android-sdk-linux/tools/android update sdk --filter platform-tools --no-ui --force -a \
&& echo y | /root/android-sdk-linux/tools/android update sdk --filter android-16 --no-ui --force -a \
&& echo y | /root/android-sdk-linux/tools/android update sdk --filter sys-img-armeabi-v7a-android-16 --no-ui -a
ENV ANDROID_HOME="/root/android-sdk-linux" \
PATH=$PATH:/root/android-sdk-linux/platform-tools:/root/android-sdk-linux/tools \
ANDROID_EMULATOR_FORCE_32BIT=true \
TERM=linux \
TERMINFO=/etc/terminfo
RUN cd /root/
RUN cd /root/
RUN cd /
RUN cd /root/
RUN cd /root/
RUN cd /root/
RUN pwd \
&& cd /root/ \
&& git clone --recursive https://github.com/alexMyG/AndroPyTool.git \
&& wget https://github.com/pjlantz/droidbox/releases/download/v4.1.1/DroidBox411RC.tar.gz \
&& tar -zxvf DroidBox411RC.tar.gz \
&& cp -r DroidBox_4.1.1/images AndroPyTool/DroidBox_AndroPyTool/images \
&& pip install wheel \
&& pip install -r AndroPyTool/requirements.txt \
&& touch AndroPyTool/avclass/__init__.py \
&& chmod 744 /root/AndroPyTool/run_androPyTool.sh
# Preparing droidbox
RUN pwd \
&& cd /root/ \
&& chmod 744 AndroPyTool/DroidBox_AndroPyTool/*.sh \
&& echo "no" | ./AndroPyTool/DroidBox_AndroPyTool/createDroidBoxDevice.sh
RUN adb devices; exit 0
VOLUME /apks
EXPOSE 5554 5555
WORKDIR /root/AndroPyTool/
ENTRYPOINT ["python", "-u", "/root/AndroPyTool/androPyTool.py"]
#CMD cd