summaryrefslogtreecommitdiffstats
path: root/redhat/docker/el8
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/docker/el8')
-rw-r--r--redhat/docker/el8/Dockerfile.x86_6432
-rw-r--r--redhat/docker/el8/packages4
2 files changed, 24 insertions, 12 deletions
diff --git a/redhat/docker/el8/Dockerfile.x86_64 b/redhat/docker/el8/Dockerfile.x86_64
index a8667f1eb..d83c0c1c9 100644
--- a/redhat/docker/el8/Dockerfile.x86_64
+++ b/redhat/docker/el8/Dockerfile.x86_64
@@ -3,11 +3,15 @@ FROM centos:8
ARG TDE_VERSION=14.0.7
ARG ARCH=x86_64
-RUN echo "proxy=http://proxy:3128" >>/etc/dnf/dnf.conf
+# Enable proxy
+RUN echo "proxy=http://proxy:3128" >>"/etc/dnf/dnf.conf"
# Install OVL plugin for DNF
RUN curl -o /usr/lib/python3.6/site-packages/dnf-plugins/ovl.py https://raw.githubusercontent.com/FlorianLudwig/dnf-plugin-ovl/master/ovl.py
+# Update distribution packages
+RUN dnf -y update
+
# Add EPEL repository
RUN dnf -y install epel-release
@@ -21,27 +25,26 @@ RUN dnf config-manager --enable PowerTools
# Enable custom repository
ADD centos-devel.repo /etc/yum.repos.d/centos-devel.repo
-# Update distribution packages
-RUN dnf -y update
-
# Install Trinity build dependencies
ADD packages /packages
-RUN dnf -y install $(</packages)
+RUN dnf -y --enableplugin=ovl install $(</packages)
# Add YUM repository for locally built packages
-ADD rpmbuild.repo /etc/yum.repos.d/rpmbuild.repo
-RUN sed -i "/etc/yum.repos.d/rpmbuild.repo" -e "s|\${ARCH}|${ARCH}|g" -e "s|\${TDE_VERSION}|${TDE_VERSION}|g"
+WORKDIR /etc/yum.repos.d
+ADD rpmbuild.repo rpmbuild.repo
+RUN sed -i "rpmbuild.repo" -e "s|\${ARCH}|${ARCH}|g" -e "s|\${TDE_VERSION}|${TDE_VERSION}|g"
+
+# Fix utempter detection
+RUN chmod a+r /usr/libexec/utempter/utempter
# Add non-root user to build packages
RUN useradd -m -s /bin/bash -u 1000 trinity
-RUN echo "trinity ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers
+RUN echo "trinity ALL=(ALL) NOPASSWD: ALL" >>"/etc/sudoers"
-# Build development packages
USER trinity
ADD rpmmacros /home/trinity/.rpmmacros
-RUN rpmbuild --rebuild http://ftp.free.fr/mirrors/fedora.redhat.com/fedora/linux/releases/30/Everything/source/tree/Packages/s/sword-1.8.1-11.fc30.src.rpm
-RUN sudo rpm -Uvh ${HOME}/rpmbuild/RPMS/*/sword{,-devel}-1.8*.rpm
+# Build supplementary development tools
RUN rpmbuild --rebuild http://ftp.free.fr/mirrors/fedora.redhat.com/fedora/linux/releases/30/Everything/source/tree/Packages/l/libxml%2b%2b-2.40.1-8.fc30.src.rpm
RUN sudo rpm -Uvh ${HOME}/rpmbuild/RPMS/*/libxml++{,-devel}-2*.rpm
@@ -56,7 +59,7 @@ RUN rpmbuild --rebuild http://ftp.free.fr/mirrors/fedora.redhat.com/fedora/linux
RUN sudo rpm -Uvh ${HOME}/rpmbuild/RPMS/*/pilot-link-{devel,libs}-0*.rpm
RUN rpmbuild --rebuild http://ftp.free.fr/mirrors/fedora.redhat.com/fedora/linux/releases/30/Everything/source/tree/Packages/r/rdiff-backup-1.2.8-31.fc30.src.rpm
-RUN sudo rpm -Uvh ${HOME}/rpmbuild/RPMS/*/rdiff-backup-*.rpm
+RUN sudo rpm -Uvh ${HOME}/rpmbuild/RPMS/*/rdiff-backup-1*.rpm --nodeps
#RUN rpmbuild --rebuild http://ftp.free.fr/mirrors/fedora.redhat.com/fedora/linux/releases/30/Everything/source/tree/Packages/l/liblo-0.29-2.fc30.src.rpm
#RUN sudo rpm -Uvh ${HOME}/rpmbuild/RPMS/*/liblo{,-devel}-0*.rpm
@@ -73,3 +76,8 @@ RUN sudo rpm -Uvh ${HOME}/rpmbuild/RPMS/*/rdiff-backup-*.rpm
RUN rpmbuild --rebuild http://ftp.free.fr/mirrors/fedora.redhat.com/fedora/linux/releases/30/Everything/source/tree/Packages/p/pcsc-perl-1.4.14-10.fc30.src.rpm
RUN sudo rpm -Uvh ${HOME}/rpmbuild/RPMS/*/pcsc-perl-1*.rpm
+
+RUN rpmbuild --rebuild http://ftp.free.fr/mirrors/fedora.redhat.com/fedora/linux/releases/30/Everything/source/tree/Packages/s/sword-1.8.1-11.fc30.src.rpm
+RUN sudo rpm -Uvh ${HOME}/rpmbuild/RPMS/*/sword{,-devel}-1*.rpm
+
+RUN sudo rpm -Uvh http://rpms.remirepo.net/enterprise/8/remi/x86_64//hiredis-0.13.3-9.el8.remi.x86_64.rpm http://rpms.remirepo.net/enterprise/8/remi/x86_64//libyaz-5.14.11-14.el8.remi.x86_64.rpm
diff --git a/redhat/docker/el8/packages b/redhat/docker/el8/packages
index 45ace1eb3..739d439c4 100644
--- a/redhat/docker/el8/packages
+++ b/redhat/docker/el8/packages
@@ -88,6 +88,7 @@ libical-devel
libidn-devel
libksba-devel
libmad-devel
+libmemcached-devel
libmng-devel
libmp4v2-devel
libmpcdec-devel
@@ -154,6 +155,7 @@ perl(inc::Module::Install)
perl(IPC::Run3)
perl(Module::Signature)
perl(XML::Parser)
+pigz
pkcs11-helper-devel
pkgconfig(pygtk-2.0)
poppler-devel
@@ -168,6 +170,7 @@ python3-devel
readline-devel
recode
redhat-rpm-config
+redis
rpcgen
rpm-build
ruby
@@ -181,6 +184,7 @@ sudo
swig
systemd-devel
taglib-devel
+tcl
texinfo
torsocks
transfig