diff options
author | François Andriot <albator78@libertysurf.fr> | 2017-11-12 12:20:18 +0100 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2017-11-12 12:20:18 +0100 |
commit | 8a9f8ca470c2bb5cebff1da897fd3d4898344a49 (patch) | |
tree | 0a2da582d6d43e183a383c2e22ee7e1e103adea7 /redhat/docker/el6 | |
parent | 6750b594657a1f38b2739c4a5414aa9130878a4d (diff) | |
download | tde-packaging-8a9f8ca470c2bb5cebff1da897fd3d4898344a49.tar.gz tde-packaging-8a9f8ca470c2bb5cebff1da897fd3d4898344a49.zip |
RPM: add Docker build scripts for el5 and el6
Diffstat (limited to 'redhat/docker/el6')
-rw-r--r-- | redhat/docker/el6/Dockerfile.i686 | 27 | ||||
-rw-r--r-- | redhat/docker/el6/Dockerfile.x86_64 | 27 | ||||
-rw-r--r-- | redhat/docker/el6/centos-6.repo | 30 | ||||
-rw-r--r-- | redhat/docker/el6/epel-6.repo | 5 | ||||
-rw-r--r-- | redhat/docker/el6/packages.base | 5 | ||||
-rw-r--r-- | redhat/docker/el6/packages.trinity | 206 | ||||
-rw-r--r-- | redhat/docker/el6/repoforge-6.repo | 5 | ||||
-rw-r--r-- | redhat/docker/el6/rpmbuild.repo | 11 | ||||
-rw-r--r-- | redhat/docker/el6/rpmmacros | 5 |
9 files changed, 321 insertions, 0 deletions
diff --git a/redhat/docker/el6/Dockerfile.i686 b/redhat/docker/el6/Dockerfile.i686 new file mode 100644 index 000000000..b1e12529f --- /dev/null +++ b/redhat/docker/el6/Dockerfile.i686 @@ -0,0 +1,27 @@ +FROM centos32:6 + +ARG TDE_VERSION=14.0.4 +ARG ARCH=i686 + +# Add EPEL repository +RUN yum install -y epel-release + +# Add NUX repository +RUN rpm -Uvh http://li.nux.ro/download/nux/dextop/el6/x86_64/nux-dextop-release-0-2.el6.nux.noarch.rpm + +# Install Trinity build dependencies +ADD packages.trinity /etc/yum.repos.d/packages +RUN setarch ${ARCH} yum update -y +RUN setarch ${ARCH} yum install -y $(</etc/yum.repos.d/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 +ADD rpmmacros /home/trinity/.rpmmacros + +# Distro-specific patches +RUN sed -i "/usr/include/jasper/jas_math.h" -e "/#include <stdint.h>/ s|$|\n#ifndef SIZE_MAX\n#define SIZE_MAX ((size_t) -1)\n#endif\n|" diff --git a/redhat/docker/el6/Dockerfile.x86_64 b/redhat/docker/el6/Dockerfile.x86_64 new file mode 100644 index 000000000..297141ea1 --- /dev/null +++ b/redhat/docker/el6/Dockerfile.x86_64 @@ -0,0 +1,27 @@ +FROM centos:6 + +ARG TDE_VERSION=14.0.4 +ARG ARCH=x86_64 + +# Add EPEL repository +RUN yum install -y epel-release + +# Add NUX repository +RUN rpm -Uvh http://li.nux.ro/download/nux/dextop/el6/x86_64/nux-dextop-release-0-2.el6.nux.noarch.rpm + +# Install Trinity build dependencies +ADD packages.trinity /etc/yum.repos.d/packages +RUN yum update -y +RUN yum install -y $(</etc/yum.repos.d/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 +ADD rpmmacros /home/trinity/.rpmmacros + +# Distro-specific patches +RUN sed -i "/usr/include/jasper/jas_math.h" -e "/#include <stdint.h>/ s|$|\n#ifndef SIZE_MAX\n#define SIZE_MAX ((size_t) -1)\n#endif\n|" diff --git a/redhat/docker/el6/centos-6.repo b/redhat/docker/el6/centos-6.repo new file mode 100644 index 000000000..a00a85ad5 --- /dev/null +++ b/redhat/docker/el6/centos-6.repo @@ -0,0 +1,30 @@ +[centos-6-base] +name=CentOS-6 - Base +baseurl=http://repo/repo/centos/6/os/$basearch/ +gpgcheck=1 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 +enabled=1 + +#released updates +[centos-6-updates] +name=CentOS-6 - Updates +baseurl=http://repo/repo/centos/6/updates/$basearch/ +gpgcheck=1 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 +enabled=1 + +#additional packages that may be useful +[centos-6-extras] +name=CentOS-6 - Extras +baseurl=http://repo/repo/centos/6/extras/$basearch/ +gpgcheck=1 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 +enabled=1 + +#additional packages that extend functionality of existing packages +[centos-6-centosplus] +name=CentOS-6 - Plus +baseurl=http://repo/repo/centos/6/centosplus/$basearch/ +gpgcheck=1 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 +enabled=1 diff --git a/redhat/docker/el6/epel-6.repo b/redhat/docker/el6/epel-6.repo new file mode 100644 index 000000000..24134a301 --- /dev/null +++ b/redhat/docker/el6/epel-6.repo @@ -0,0 +1,5 @@ +[epel] +name=epel +baseurl=http://repo/repo/epel/6/$basearch/ +enabled=1 +gpgcheck=0 diff --git a/redhat/docker/el6/packages.base b/redhat/docker/el6/packages.base new file mode 100644 index 000000000..f4cc26a66 --- /dev/null +++ b/redhat/docker/el6/packages.base @@ -0,0 +1,5 @@ +bash +perl +setarch +vim-enhanced +yum diff --git a/redhat/docker/el6/packages.trinity b/redhat/docker/el6/packages.trinity new file mode 100644 index 000000000..6c9e30134 --- /dev/null +++ b/redhat/docker/el6/packages.trinity @@ -0,0 +1,206 @@ +alsa-lib-devel +aspell +aspell-devel +audiofile-devel +autotrace +avahi-devel +bind-devel +binutils-devel +bison +boost-devel +bzip2-devel +ccache +ccrtp-devel +cdparanoia +cdparanoia-devel +chmlib-devel +chrpath +clamav +clamav-devel +clucene-core-devel +cmake +commoncpp2-devel +cpp +cppunit-devel +createrepo +cryptsetup-luks-devel +cups-devel +db4-devel +dbus-glib-devel +djvulibre +djvulibre-devel +doxygen +e2fsprogs-devel +emacs +esound-devel +exempi-devel +exiv2-devel +fdupes +ffmpeg-devel +fftw-devel +file-devel +flac-devel +flex-devel +fontpackages-devel +fribidi-devel +gamin-devel +gcc +gcc-c++ +gcc-gfortran +gcc-java +gettext-devel +glib-devel +gmp-devel +gnokii-devel +gperf +gpgme-devel +gphoto2-devel +GraphicsMagick-devel +gsl-devel +gstreamer-devel +gstreamer-plugins-base-devel +gtk2-devel +gtk+-devel +gtk-doc +guile-devel +hal-devel +heimdal-devel +hspell-devel +htdig +html2ps +icu +ImageMagick-devel +imake +imlib-devel +imlib2-devel +intltool +jack-audio-connection-kit-devel +jasper-devel +java-1.4.2-gcj-compat-devel +java-1.6.0-openjdk-devel +java-1.7.0-openjdk-devel +java-devel +java-openjdk +lame-devel +lcms-devel +libacl-devel +libarchive-devel +libart_lgpl-devel +libblkid-devel +libcap-devel +libcdio-devel +libconfig-devel +libcurl-devel +libdvdread-devel +libfontenc-devel +libgcj-devel +libgpod-devel +libgsf-devel +libgssapi-devel +libical-devel +libidn-devel +liblo-devel +libmad-devel +libmng-devel +libmp4v2-devel +libmpcdec-devel +libmtp-devel +libmusicbrainz-devel +libofx-devel +libogg-devel +libotr-devel +libpaper-devel +libraw1394-devel +libsamplerate-devel +libsmbclient-devel +libsndfile-devel +libssh2-devel +libtheora-devel +libtiff-devel +libtool +libtool-ltdl-devel +libudev-devel +libutempter-devel +libv4l-devel +libvisual-devel +libvorbis-devel +libwmf-devel +libwpd-devel +libXaw-devel +libXcomposite-devel +libXdamage-devel +libXdmcp-devel +libxkbfile-devel +libXScrnSa +libXScrnSaver-devel +libxslt-devel +libXtst-devel +libXv-devel +libXxf86dga-devel +libXxf86vm-devel +libzrtpcpp-devel +lirc-devel +lm_sensors-devel +meanwhile-devel +mysql-devel +nas-devel +neon-devel +netpbm-progs +net-snmp-devel +net-tools +NetworkManager-glib-devel +ocaml +ocaml(compiler) +OpenEXR-devel +openldap-devel +opensc +openslp-devel +opensp-devel +pam-devel +pciutils-devel +pcre-devel +pcsc-lite-devel +perl +perl-devel +perl(ExtUtils::MakeMaker) +perl(XML::Parser) +pilot-link-devel +pkcs11-helper-devel +poppler-devel +postgresql-devel +pth-devel +pulseaudio-libs-devel +recode +redhat-rpm-config +rpm-build +ruby +ruby-devel +sane-backends-devel +scons +SDL-devel +sip-devel +speex-devel +sqlite-devel +subversion-devel +sudo +sword-devel +t1lib-devel +t1utils +taglib-devel +tar +texinfo +texlive-utils +transfig +udisks-devel +unixODBC-devel +usbutils +valgrind +ver-devel +wireless-tools-devel +xine-lib-devel +xmlto +xorg-x11-font-utils +xscreensaver +xscreensaver-extras +xulrunner-devel +xz-devel diff --git a/redhat/docker/el6/repoforge-6.repo b/redhat/docker/el6/repoforge-6.repo new file mode 100644 index 000000000..8747bf2df --- /dev/null +++ b/redhat/docker/el6/repoforge-6.repo @@ -0,0 +1,5 @@ +[dag] +name=dag +baseurl=http://repo/repo/repoforge/redhat/el6/en/$basearch/dag/ +enabled=1 +gpgcheck=0 diff --git a/redhat/docker/el6/rpmbuild.repo b/redhat/docker/el6/rpmbuild.repo new file mode 100644 index 000000000..750290651 --- /dev/null +++ b/redhat/docker/el6/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/el6/rpmmacros b/redhat/docker/el6/rpmmacros new file mode 100644 index 000000000..3b33ecbc0 --- /dev/null +++ b/redhat/docker/el6/rpmmacros @@ -0,0 +1,5 @@ +%dist .el6 +%rhel 6 +%_smp_mflags -j8 +%jobs 8 +%_topdir /home/trinity/rpmbuild |