2017-07-20 22:39:57 +08:00
|
|
|
FROM fedora
|
|
|
|
MAINTAINER Igor Gnatenko <i.gnatenko.brain@gmail.com>
|
|
|
|
|
|
|
|
WORKDIR /opt/rpm
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
RUN echo -e "deltarpm=0\ninstall_weak_deps=0\ntsflags=nodocs" >> /etc/dnf/dnf.conf
|
|
|
|
RUN dnf -y update
|
|
|
|
RUN dnf -y install \
|
|
|
|
autoconf \
|
|
|
|
automake \
|
|
|
|
libtool \
|
|
|
|
gettext-devel \
|
|
|
|
make \
|
|
|
|
gcc \
|
|
|
|
zlib-devel \
|
|
|
|
bzip2-devel \
|
|
|
|
xz-devel \
|
2017-07-31 13:35:29 +08:00
|
|
|
libzstd-devel \
|
2017-07-20 22:39:57 +08:00
|
|
|
elfutils-libelf-devel \
|
|
|
|
elfutils-devel \
|
|
|
|
openssl-devel \
|
|
|
|
file-devel \
|
|
|
|
popt-devel \
|
|
|
|
libarchive-devel \
|
|
|
|
libdb-devel \
|
2017-07-30 10:05:38 +08:00
|
|
|
lmdb-devel \
|
2017-07-20 22:39:57 +08:00
|
|
|
libselinux-devel \
|
|
|
|
ima-evm-utils \
|
|
|
|
libcap-devel \
|
|
|
|
libacl-devel \
|
|
|
|
lua-devel readline-devel \
|
|
|
|
dbus-devel \
|
|
|
|
fakechroot which \
|
|
|
|
elfutils binutils \
|
|
|
|
findutils sed grep gawk diffutils file patch \
|
|
|
|
tar unzip gzip bzip2 cpio xz \
|
|
|
|
pkgconfig \
|
|
|
|
/usr/bin/gdb-add-index \
|
|
|
|
dwz \
|
|
|
|
&& dnf clean all
|
|
|
|
RUN autoreconf -vfi
|
|
|
|
RUN ./configure \
|
|
|
|
--with-crypto=openssl \
|
|
|
|
--with-selinux \
|
|
|
|
--with-cap \
|
|
|
|
--with-acl \
|
2017-07-20 22:57:29 +08:00
|
|
|
--with-lua \
|
|
|
|
--enable-silent-rules
|
2017-07-20 22:39:57 +08:00
|
|
|
RUN make
|
|
|
|
|
|
|
|
CMD make check; rc=$?; cat tests/rpmtests.log; exit $rc
|