forked from zhang-ray/docker-android-operating-system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
executable file
·51 lines (36 loc) · 1.61 KB
/
Dockerfile
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
########################################## TODO ##########################################
### make base image for build stage only, and make extra image for test/deploy stage?
##########################################################################################
FROM ubuntu:18.04
### for RPC's environment
#RUN sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
ARG DEBIAN_FRONTEND=noninteractive
RUN apt -y update
RUN apt -y install git make wget g++ gcc python openjdk-8-jdk unzip bc bison build-essential ccache curl dos2unix flex g++-multilib gcc-multilib git gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses5 libncurses5-dev libsdl1.2-dev libssl-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev
# for static code check
RUN apt -y install cppcheck
# for Airtest/Behave
RUN apt -y install python3 python3-pip
RUN pip3 install --upgrade pip
RUN pip3 install airtest
RUN pip3 install pocoui
RUN pip3 install behave
RUN pip3 install moviepy
RUN pip3 install allure-behave
RUN chmod +x /usr/local/lib/python3.6/dist-packages/airtest/core/android/static/adb/linux/adb
#RUN ls -lh /usr/local/lib/
# for OTA upgrade
RUN apt -y install adb
# for dev
RUN apt -y install tree vim
# Dump Linux distro version
CMD cat /etc/issue
# sh to bash
RUN apt -y install python-pip
RUN echo "dash dash/sh boolean false" | debconf-set-selections
RUN DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash
# for allure
RUN apt -y install npm
RUN npm install -g allure-commandline --save-dev
# for scp
RUN apt -y install sshpass