forked from ghostery/browser-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
86 lines (78 loc) · 2.67 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
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
FROM spacifici/fennec:65.0
MAINTAINER Sharath G Pai <sharath@cliqz.com>
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && \
apt-get install -y \
autoconf \
automake \
bison \
curl \
gawk \
gnupg2 \
libffi-dev \
libgdbm-dev \
libgmp-dev \
libncurses5-dev \
libreadline-dev \
libsqlite3-dev \
libssl-dev \
libtool \
libyaml-dev \
openssh-client \
pkg-config \
python-pip \
python-virtualenv \
sqlite3 \
git \
zlib1g-dev && \
apt-get clean -y && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ARG UID
ARG GID
ARG USER
ENV SHELL=/bin/bash
ENV NPM_CONFIG_PREFIX=/home/jenkins/.npm-global
ENV PATH=/sdk/android-sdk/platform-tools:/sdk/android-sdk/platform-tools/bin:/sdk/android-sdk/tools:/sdk/android-sdk/tools/bin:${NPM_CONFIG_PREFIX}/bin:${PATH}
RUN getent group $GID || groupadd $USER --gid $GID && \
useradd --create-home --shell /bin/bash $USER --uid $UID --gid $GID
# Add extra dependencies to the maven cache
RUN mvn dependency:get \
-Dmaven.repo.local=/sdk/android-gradle-dependencies/jcenter \
-DgroupId=com.android.support.test.uiautomator \
-DartifactId=uiautomator-v18 \
-Dversion=2.1.3 -Dpackaging=aar \
-DremoteRepositories=http://repo.spring.io/libs-milestone && \
mvn dependency:get \
-Dmaven.repo.local=/sdk/android-gradle-dependencies/jcenter \
-DgroupId=com.github.PhilJay \
-DartifactId=MPAndroidChart \
-Dversion=v3.0.2 \
-DremoteRepositories=https://jitpack.io && \
mvn dependency:get \
-Dmaven.repo.local=/sdk/android-gradle-dependencies/jcenter \
-DgroupId=com.android.support.test \
-DartifactId=testing-support-lib \
-Dversion=0.1 \
-Dpackaging=aar \
-DremoteRepositories=https://maven.google.com
RUN mkdir -p /app && chown $UID:$GID /app
USER $USER
SHELL ["/bin/bash", "-l", "-c"]
#Installation of 'appium' & 'wd' for Integration Tests
RUN npm install --global appium wd npm@6.5.0
#Install Ruby and Fastlane
RUN for key in 409B6B1796C275462A1703113804BB82D39DC0E3 \
7D2BAF1CF37B13E2069D6956105BD0E739499BDB; do \
for server in "hkp://keys.gnupg.net" \
"hkp://p80.pool.sks-keyservers.net:80" \
"pgp.mit.edu" \
"hkp://keyserver.ubuntu.com:80"; do \
gpg2 --keyserver "${server}" --recv-keys "${key}" || echo "Trying new server..."; \
done; \
done
RUN curl -sSL https://get.rvm.io | bash -s stable --ruby=2.4.3 --autolibs=read-fail && \
source /home/$USER/.rvm/scripts/rvm \
rvm reload && \
gem install fastlane --version 2.111.0
#Install AWS CLI
RUN pip install awscli --upgrade --user