summaryrefslogtreecommitdiffstats
path: root/redhat/docker/mga7/Dockerfile.x86_64
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2019-11-08 20:47:18 +0100
committerFrançois Andriot <albator78@libertysurf.fr>2019-11-19 15:07:31 +0100
commit5259ca7ff29406043491aa22851af6b7ce32a748 (patch)
tree7d79564eb7d916fd0defb8c7bbfb065e56a58978 /redhat/docker/mga7/Dockerfile.x86_64
parent18cafac14a063cb54c8ed6afc64e87b929c957ee (diff)
downloadtde-packaging-5259ca7ff29406043491aa22851af6b7ce32a748.tar.gz
tde-packaging-5259ca7ff29406043491aa22851af6b7ce32a748.zip
RPM: update build scripts
Diffstat (limited to 'redhat/docker/mga7/Dockerfile.x86_64')
-rw-r--r--redhat/docker/mga7/Dockerfile.x86_645
1 files changed, 4 insertions, 1 deletions
diff --git a/redhat/docker/mga7/Dockerfile.x86_64 b/redhat/docker/mga7/Dockerfile.x86_64
index b8d29a318..6f0599b57 100644
--- a/redhat/docker/mga7/Dockerfile.x86_64
+++ b/redhat/docker/mga7/Dockerfile.x86_64
@@ -21,6 +21,9 @@ RUN urpmi --auto $(</packages)
# Enable ccache
RUN sed -i "/etc/sysconfig/ccache" -e "s|USE_CCACHE_DEFAULT=.*|USE_CCACHE_DEFAULT=\"yes\"|"
+# Fix utempter detection
+RUN chmod a+r /usr/libexec/utempter/utempter
+
# Add non-root user to build packages
RUN rm -rf /home/trinity
RUN useradd -m -s /bin/bash -u 1000 trinity
@@ -28,7 +31,7 @@ RUN echo "trinity ALL=(ALL) NOPASSWD: ALL" >>"/etc/sudoers"
# Configure user trinity
USER trinity
-ADD rpmmacros ${HOME}/.rpmmacros
+ADD rpmmacros /home/trinity/.rpmmacros
# Add rpmbuild repositories
RUN mkdir -p ${HOME}/rpmbuild/RPMS.tde-${TDE_VERSION}/${ARCH}