-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (36 loc) · 1.34 KB
/
Dockerfile
File metadata and controls
43 lines (36 loc) · 1.34 KB
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
FROM centos:7
MAINTAINER Ukhanov Anton a.ukhanov@corp.mail.ru
# Installing packages
RUN yum install -y epel-release
RUN yum install -y centos-release-scl-rh
RUN yum install -y \
curl \
locales \
which \
openjdk-8-jdk \
python36 \
java-1.8.0-openjdk \
unzip \
wget \
devtoolset-6-libquadmath-devel
RUN yum-config-manager --add-repo http://pkg.corp.mail.ru/centos/6/mapsme/mapsme.repo
RUN yum install -y boost_prefix168*
# Install Android SDK
RUN \
wget --no-check-certificate \
https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip && \
mkdir /usr/local/android && \
unzip sdk-tools-linux-3859397.zip -d /usr/local/android && \
rm sdk-tools-linux-3859397.zip
# Configure SDK
RUN yes | /usr/local/android/tools/bin/sdkmanager "ndk-bundle" "platforms;android-23" "platforms;android-26" "build-tools;27.0.3" "cmake;3.6.4111459" "platform-tools"
RUN chmod -R 0777 /usr/local/android
# Install gradle
RUN wget --no-check-certificate \
https://services.gradle.org/distributions/gradle-4.4-bin.zip && \
unzip gradle-4.4-bin.zip -d /usr/local && \
rm gradle-4.4-bin.zip && \
chmod -R 0777 /usr/local/gradle-4.4
ENV ANDROID_HOME /usr/local/android
ENV PATH $PATH:$ANDROID_HOME/ndk-bundle:/usr/local/gradle-4.4/bin
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'