Ticket #821: test_cross_xapian.dockerfile

File test_cross_xapian.dockerfile, 1.2 KB (added by mgautier, 12 months ago)

Dockerfile applying patch

Line 
1FROM fedora:35
2
3ENV LANG C.UTF-8
4ENV OS_NAME f35
5
6RUN dnf install -y --nodocs \
7# Base build tools
8 make automake libtool cmake git-core subversion pkg-config gcc-c++ \
9 wget unzip ninja-build ccache which patch gcovr xz openssh-clients \
10# Cross win32 compiler
11 mingw32-gcc-c++ mingw32-bzip2-static mingw32-win-iconv-static \
12 mingw32-winpthreads-static mingw32-zlib-static mingw32-xz-libs-static \
13 && dnf remove -y "*-doc" \
14 && dnf autoremove -y \
15 && dnf clean all
16
17# Create user
18RUN groupadd --gid 121 runner
19RUN useradd --uid 1001 --gid 121 --create-home runner
20USER runner
21
22RUN cd $HOME \
23 && pwd \
24 && wget https://oligarchy.co.uk/xapian/1.4.22/xapian-core-1.4.22.tar.xz \
25 && tar -xf xapian-core-1.4.22.tar.xz \
26 && ls
27
28RUN cd $HOME \
29 && wget -O /home/runner/xapian.patch "https://trac.xapian.org/changeset/d2080b2feae47c9a263611e32244c6ebe7976755/git?format=diff&new=d2080b2feae47c9a263611e32244c6ebe7976755" \
30 && cd xapian-core-1.4.22 \
31 && cat ../xapian.patch \
32 && patch -p1 < ../xapian.patch \
33 && head -n50 common/safesyssocket.h
34
35RUN cd $HOME/xapian-core-1.4.22 \
36 && mingw32-configure --disable-sse --disable-backend-chert --disable-backend-remote --disable-documentation \
37 && head config.log \
38 && make