diff options
author | François Andriot <albator78@libertysurf.fr> | 2019-07-30 19:54:39 +0200 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2019-07-30 19:54:39 +0200 |
commit | f6042194a160d58772626035fa59604da08e06e0 (patch) | |
tree | 598895a543568639cb582d0013891519357cdf11 /redhat/docker/mga7/Dockerfile.x86_64 | |
parent | 87f8fcd5f192267ad890dd4e923be245bb834658 (diff) | |
download | tde-packaging-f6042194a160d58772626035fa59604da08e06e0.tar.gz tde-packaging-f6042194a160d58772626035fa59604da08e06e0.zip |
RPM: update packages to build on Fedora 30, Mageia 7
Diffstat (limited to 'redhat/docker/mga7/Dockerfile.x86_64')
-rw-r--r-- | redhat/docker/mga7/Dockerfile.x86_64 | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/redhat/docker/mga7/Dockerfile.x86_64 b/redhat/docker/mga7/Dockerfile.x86_64 new file mode 100644 index 000000000..2a567685b --- /dev/null +++ b/redhat/docker/mga7/Dockerfile.x86_64 @@ -0,0 +1,35 @@ +FROM mageia:7 + +ARG TDE_VERSION=14.0.6 +ARG ARCH=x86_64 + +# Reset URPMI repositories to default +RUN urpmi.removemedia -a +RUN urpmi.addmedia --distrib --mirrorlist '$MIRRORLIST' + +# Enable more URPMI repositories +RUN sed -i "/etc/urpmi/urpmi.cfg" -e "/Tainted\\\ Release {/{p;N;d}" -e "/Tainted\\\ Updates {/{p;N;d}" + +# Update distribution +RUN urpmi.update -a +RUN urpmi --auto-select --auto + +# Install Trinity build dependencies +ADD packages.${ARCH} /packages +RUN urpmi --auto $(</packages) + +# Add rpmbuild repositories +RUN mkdir -p /home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/${ARCH} /home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/noarch +RUN genhdlist2 --allow-empty-media /home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/${ARCH} +RUN urpmi.addmedia rpmbuild.${ARCH} /home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/${ARCH} +RUN genhdlist2 --allow-empty-media /home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/noarch +RUN urpmi.addmedia rpmbuild.noarch /home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/noarch + +# Add non-root user to build packages +RUN rm -rf /home/trinity +RUN useradd -m -s /bin/bash -u 1000 trinity +RUN echo "trinity ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers +ADD rpmmacros /home/trinity/.rpmmacros + +# Enable ccache +RUN sed -i "/etc/sysconfig/ccache" -e "s|USE_CCACHE_DEFAULT=.*|USE_CCACHE_DEFAULT=\"yes\"|" |