diff options
author | François Andriot <albator78@libertysurf.fr> | 2019-11-03 11:26:19 +0100 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2019-11-03 11:26:19 +0100 |
commit | 096e163b680861784102352fb1883d967f114433 (patch) | |
tree | 644e72acda6e41be818e63f4b94148837456c8e0 /redhat/docker/el8 | |
parent | aea1ff0939a3189717eef06cda052860db755ce7 (diff) | |
download | tde-packaging-096e163b680861784102352fb1883d967f114433.tar.gz tde-packaging-096e163b680861784102352fb1883d967f114433.zip |
RPM: update docker scripts
Diffstat (limited to 'redhat/docker/el8')
-rw-r--r-- | redhat/docker/el8/Dockerfile.x86_64 | 75 | ||||
-rw-r--r-- | redhat/docker/el8/centos-devel.repo | 12 | ||||
-rw-r--r-- | redhat/docker/el8/packages | 192 | ||||
-rw-r--r-- | redhat/docker/el8/rpmbuild.repo | 11 | ||||
-rw-r--r-- | redhat/docker/el8/rpmmacros | 3 |
5 files changed, 293 insertions, 0 deletions
diff --git a/redhat/docker/el8/Dockerfile.x86_64 b/redhat/docker/el8/Dockerfile.x86_64 new file mode 100644 index 000000000..a8667f1eb --- /dev/null +++ b/redhat/docker/el8/Dockerfile.x86_64 @@ -0,0 +1,75 @@ +FROM centos:8 + +ARG TDE_VERSION=14.0.7 +ARG ARCH=x86_64 + +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 + +# Add EPEL repository +RUN dnf -y install epel-release + +# Add RPMFUSION repository +RUN dnf -y install https://download1.rpmfusion.org/free/el/updates/8/x86_64/r/rpmfusion-free-release-8-0.1.noarch.rpm + +# Enable supplementary repositories +RUN dnf -y install dnf-plugins-core +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) + +# 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" + +# 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 + +# 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 + +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 + +RUN rpmbuild --rebuild http://ftp.free.fr/mirrors/fedora.redhat.com/fedora/linux/releases/30/Everything/source/tree/Packages/l/libofx-0.9.13-2.fc30.src.rpm +RUN sudo rpm -Uvh ${HOME}/rpmbuild/RPMS/*/libofx{,-devel}-0*.rpm + +RUN rpmbuild --rebuild http://ftp.free.fr/mirrors/fedora.redhat.com/fedora/linux/releases/30/Everything/source/tree/Packages/g/gnuchess-6.2.5-8.fc30.src.rpm +RUN sudo rpm -Uvh ${HOME}/rpmbuild/RPMS/*/gnuchess-6*.rpm + +RUN rpmbuild --rebuild http://ftp.free.fr/mirrors/fedora.redhat.com/fedora/linux/releases/30/Everything/source/tree/Packages/p/pilot-link-0.12.5-41.fc30.src.rpm +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 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 + +#RUN rpmbuild --rebuild http://ftp.free.fr/mirrors/fedora.redhat.com/fedora/linux/releases/30/Everything/source/tree/Packages/t/t1utils-1.39-9.fc30.src.rpm +#RUN sudo rpm -Uvh ${HOME}/rpmbuild/RPMS/*/t1utils-1*.rpm + +#RUN rpmbuild --rebuild http://ftp.free.fr/mirrors/fedora.redhat.com/fedora/linux/releases/30/Everything/source/tree/Packages/m/mftrace-1.2.19-6.fc30.src.rpm +#RUN sudo rpm -Uvh ${HOME}/rpmbuild/RPMS/*/mftrace-1*.rpm + +#RUN rpm -i http://ftp.free.fr/mirrors/fedora.redhat.com/fedora/linux/releases/30/Everything/source/tree/Packages/l/lilypond-2.19.82-4.fc30.src.rpm +#RUN sed -i ${HOME}/rpmbuild/SPECS/lilypond.spec -e "s|texlive-lh||" +#RUN rpmbuild -bb ${HOME}/rpmbuild/SPECS/lilypond.spec + +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 diff --git a/redhat/docker/el8/centos-devel.repo b/redhat/docker/el8/centos-devel.repo new file mode 100644 index 000000000..9f2fc0051 --- /dev/null +++ b/redhat/docker/el8/centos-devel.repo @@ -0,0 +1,12 @@ +[centos-devel] +name=centos-devel +baseurl=http://repo/repo/centos-devel/8/$basearch/ +enabled=1 +gpgcheck=0 + +[centos-devel.noarch] +name=centos-devel.noarch +baseurl=http://repo/repo/centos-devel/8/noarch/ +enabled=1 +gpgcheck=0 + diff --git a/redhat/docker/el8/packages b/redhat/docker/el8/packages new file mode 100644 index 000000000..716acb2fc --- /dev/null +++ b/redhat/docker/el8/packages @@ -0,0 +1,192 @@ +alsa-lib-devel +aspell +aspell-devel +audiofile-devel +autotrace +avahi-devel +bind-devel +binutils-devel +bison +bluez-libs-devel +boost-devel +bzip2-devel +cdparanoia +cdparanoia-devel +chrpath +clamav +clamav-devel +clucene-core-devel +cmake +cpp +cppunit-devel +createrepo +cryptsetup-devel +cups-devel +dbus-glib-devel +doxygen +emacs +exempi-devel +exiv2-devel +fdupes +ffmpeg-devel +fftw-devel +file-devel +flac-devel +flex-devel +fontforge +fontpackages-devel +fribidi-devel +gamin-devel +gcc +gcc-c++ +gcc-gfortran +gettext-devel +giflib-devel +glibmm24-devel +gmp-devel +gperf +gpgme-devel +gphoto2-devel +GraphicsMagick-devel +gsl-devel +gstreamer1-devel +gstreamer1-plugins-base-devel +gtk2-devel +gtk3-devel +gtk-doc +guile-devel +hspell-devel +icu +ImageMagick-devel +imake +imlib2-devel +intltool +jack-audio-connection-kit-devel +jasper-devel +java-1.8.0-openjdk-devel +java-devel +java-openjdk +kernel +lame-devel +libacl-devel +libarchive-devel +libassuan-devel +libblkid-devel +libcap-devel +libcdio-devel +libcdio-paranoia-devel +libconfig-devel +libcurl-devel +libdb-devel +libdb-cxx-devel +libdvdread-devel +libfontenc-devel +libgpod-devel +libgsf-devel +libical-devel +libidn-devel +libksba-devel +libmad-devel +libmng-devel +libmp4v2-devel +libmpcdec-devel +libmtp-devel +libnsl2-devel +libogg-devel +libotr-devel +libpaper-devel +libpcap-devel +libraw1394-devel +librsvg2-tools +librsync-devel +libsamplerate-devel +libsmbclient-devel +libsndfile-devel +libtheora-devel +libtiff-devel +libtirpc-devel +libtool +libtool-ltdl-devel +libutempter-devel +libv4l-devel +libvisual-devel +libvorbis-devel +libwmf-devel +libwpd-devel +libXaw-devel +libXcomposite-devel +libXdamage-devel +libXdmcp-devel +libxkbfile-devel +libXScrnSaver-devel +libxslt-devel +libXtst-devel +libXv-devel +libXxf86dga-devel +libXxf86vm-devel +libudisks2-devel +libusb-devel +lirc-devel +lm_sensors-devel +mysql-devel +neon-devel +netpbm-progs +NetworkManager-libnm-devel +net-snmp-devel +net-tools +nspr-devel +ocaml +ocaml(compiler) +OpenEXR-devel +openldap-devel +opensc +opensp-devel +pam-devel +pciutils-devel +pcre-devel +pcsc-lite-devel +perl +perl-devel +perl-generators +perl(ExtUtils::MakeMaker) +perl(inc::Module::Install) +perl(IPC::Run3) +perl(Module::Signature) +perl(XML::Parser) +pkcs11-helper-devel +poppler-devel +postgresql +postgresql-devel +postgresql-server-devel +pulseaudio-libs-devel +python2 +python2-devel +python3 +python3-devel +readline-devel +recode +redhat-rpm-config +rpcgen +rpm-build +ruby +ruby-devel +sane-backends-devel +SDL-devel +speex-devel +sqlite-devel +subversion-devel +sudo +swig +systemd-devel +taglib-devel +texinfo +torsocks +transfig +unixODBC-devel +usbutils +valgrind +wireless-tools-devel +xine-lib-devel +xmlto +xorg-x11-font-utils +xz-devel diff --git a/redhat/docker/el8/rpmbuild.repo b/redhat/docker/el8/rpmbuild.repo new file mode 100644 index 000000000..750290651 --- /dev/null +++ b/redhat/docker/el8/rpmbuild.repo @@ -0,0 +1,11 @@ +[rpmbuild.${ARCH}] +name=rpmbuild.${ARCH} +baseurl=file:///home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/${ARCH} +enabled=1 +gpgcheck=0 + +[rpmbuild.noarch] +name=rpmbuild.noarch +baseurl=file:///home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/noarch +enabled=1 +gpgcheck=0 diff --git a/redhat/docker/el8/rpmmacros b/redhat/docker/el8/rpmmacros new file mode 100644 index 000000000..c6a7ce03a --- /dev/null +++ b/redhat/docker/el8/rpmmacros @@ -0,0 +1,3 @@ +%dist .el8 +%_smp_mflags -j8 +%jobs 8 |