FROM mageia:5.1 ARG TDE_VERSION=14.0.10 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} /etc/urpmi/packages RUN while ! urpmi --auto $(>/etc/sudoers ADD rpmmacros /home/trinity/.rpmmacros # Enable ccache RUN sed -i "/etc/sysconfig/ccache" -e "s|USE_CCACHE_DEFAULT=.*|USE_CCACHE_DEFAULT=\"yes\"|"