From 718e89a7c1f1dcf2016ca345c5bd9d90d9a90bc5 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Thu, 20 Jul 2017 16:39:57 +0200 Subject: [PATCH] add Fedora's Dockerfile for CI Signed-off-by: Igor Gnatenko --- ci/Dockerfile | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 ci/Dockerfile diff --git a/ci/Dockerfile b/ci/Dockerfile new file mode 100644 index 000000000..1007fa073 --- /dev/null +++ b/ci/Dockerfile @@ -0,0 +1,49 @@ +FROM fedora +MAINTAINER Igor Gnatenko + +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 \ + elfutils-libelf-devel \ + elfutils-devel \ + openssl-devel \ + file-devel \ + popt-devel \ + libarchive-devel \ + libdb-devel \ + 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 \ + --with-lua +RUN make + +CMD make check; rc=$?; cat tests/rpmtests.log; exit $rc