Dockerfile 1.42 KB
Newer Older
1
FROM registry.videolan.org:5000/videolan-base-sid:latest
root's avatar
root committed
2

3
RUN dpkg --add-architecture i386 && apt-get update && \
4
    apt-get install -y autoconf m4 automake ant autopoint cmake \
root's avatar
root committed
5
    build-essential libtool libtool-bin patch pkg-config ragel subversion \
6 7
    git rpm2cpio libwebkitgtk-1.0-0 yasm ragel g++ protobuf-compiler gettext \
    libgsm1-dev chromium wget expect unzip \
8 9
    zlib1g:i386 libstdc++6:i386 libc6:i386 && \
    apt-get clean -y && rm -rf /var/lib/apt/lists/*
root's avatar
root committed
10

root's avatar
root committed
11 12
# install android sdk
COPY accept-licenses.sh /root
root's avatar
root committed
13
RUN mkdir sdk && cd sdk && \
14 15 16
    wget http://dl.google.com/android/repository/android-ndk-r12b-linux-x86_64.zip && \
    unzip android-ndk-r12b-linux-x86_64.zip && \
    rm -f android-ndk-r12b-linux-x86_64.zip && \
17
    ln -s android-ndk-r12b android-ndk && \
18 19 20 21 22 23 24
    wget http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz && \
    tar -xzf android-sdk_r24.4.1-linux.tgz && \
    rm -f android-sdk_r24.4.1-linux.tgz && \
    cd android-sdk-linux && \
    /root/accept-licenses.sh tools/android update sdk -u -t \
        $(tools/android list sdk | grep 'Android SDK Build-tools' | sed 's/ *\([0-9]\+\)\-.*/\1/'),$(tools/android list sdk | grep 'SDK Platform Android' | head -n 1 | sed 's/ *\([0-9]\+\)\-.*/\1/'),$(tools/android list sdk | grep 'Android SDK Tools' | sed 's/ *\([0-9]\+\)\-.*/\1/'),$(tools/android list sdk | grep 'Android SDK Platform-tools' | sed 's/ *\([0-9]\+\)\-.*/\1/') && \
    chown -R jenkins /sdk