Commit 236ff6b8 authored by Konstantin Pavlov's avatar Konstantin Pavlov

Added vlc-debian-win64 image.

parent 3cc399cd
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
COPY enforce-static.sh /
RUN echo "deb http://ftp.fr.debian.org/debian/ sid main" > /etc/apt/sources.list
RUN apt-get update && apt-get -y install gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 mingw-w64-tools lua5.2-dev lua5.2 libtool automake autoconf autopoint make gettext pkg-config qt4-dev-tools qt4-default git subversion cmake cvs libwine-dev wine-development wine zip nsis bzip2 p7zip-full && apt-get clean -y && rm -rf /var/lib/apt/lists/*
RUN /enforce-static.sh
.PHONY: build
build:
docker build -t jenkins-vlc-win64:latest .
#!/bin/sh
# This script enforces statically linking of libgcc, libstdc++-6, and libpthread,
# without needing to rebuild gcc and mingw-w64 from scratch.
# -static-libgcc -static-libstdc++ flags can not be used in a libtool build system,
# as libtool removes flags that it doesn't understand.
move() {
[ -f $1 ] || return 1
mkdir -p old/
mv -v $* old/
return 0
}
for x in i686 x86_64
do
library_path_list=`$x-w64-mingw32-gcc -v /dev/null 2>&1 | grep ^LIBRARY_PATH|cut -d= -f2|sort|uniq`
IFS=':'
for i in $library_path_list
do
cd $i
move libstdc++-6.dll libstdc++.dll.a libgcc_s.a libgcc_s_sjlj-1.dll && ln -s libgcc_eh.a libgcc_s.a
move libpthread.dll.a libwinpthread.dll.a
move libwinpthread-1.dll
[ -d ../bin ] && cd ../bin && move libwinpthread-1.dll
done
done
exit 0
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