Commit bbaeb8a1 authored by Konstantin Pavlov's avatar Konstantin Pavlov

Added debian-android image.

parent 236ff6b8
FROM debian:sid
MAINTAINER VideoLAN roots <roots@videolan.org>
# jenkins-specific part
RUN apt-get update && \
apt-get install -y openssh-server && \
apt-get clean -y && rm -rf /var/lib/apt/lists/* && \
sed -i 's|session required pam_loginuid.so|session optional pam_loginuid.so|g' /etc/pam.d/sshd && \
mkdir -p /var/run/sshd
RUN apt-get update && \
apt-get install -y openjdk-8-jdk && \
apt-get clean -y && rm -rf /var/lib/apt/lists/*
RUN adduser --quiet jenkins && \
echo "jenkins:jenkins" | chpasswd
EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]
# build-specific part
RUN echo "deb http://ftp.fr.debian.org/debian/ sid main" > /etc/apt/sources.list
# install VLC deps
RUN apt-get update && \
apt-get install -y autoconf m4 ant automake ant autopoint cmake \
build-essential libtool libtool-bin patch pkg-config ragel subversion \
unzip git rpm2cpio libwebkitgtk-1.0-0 yasm ragel unzip g++ \
protobuf-compiler gettext libgsm1-dev chromium wget expect \
&& apt-get clean -y && rm -rf /var/lib/apt/lists/*
# install android sdk
RUN mkdir sdk && cd sdk && \
wget http://dl.google.com/android/ndk/android-ndk-r10e-linux-x86_64.bin && \
chmod +x android-ndk-r10e-linux-x86_64.bin && \
./android-ndk-r10e-linux-x86_64.bin && \
rm -f android-ndk-r10e-linux-x86_64.bin && \
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
RUN chown -R jenkins /sdk
# leaving that here just in case we will need to update sdk in the image
#
#RUN cd sdk && cd android-sdk-linux && \
# /accept-licenses.sh tools/android update sdk -u -a --filter \
# tool,platform-tool,platform,build-tools,extra-android-support,extra-android-m2repository
.PHONY: build
build:
docker build -t jenkins-vlc-android:latest .
#!/usr/bin/expect -f
set timeout 1800
set command [lindex $argv 0]
set arguments [lrange $argv 1 end]
eval spawn $command $arguments
expect {
"Do you accept the license '*'*" {
exp_send "y\r"
exp_continue
}
eof
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment