From ef349b5dcb7259b304fb306c7b3b74da5b723a03 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 30 Dec 2016 17:52:09 +0100 Subject: [PATCH] Allow docker-build.sh as non-root --- id-deb-build/in-docker-rpm.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/id-deb-build/in-docker-rpm.sh b/id-deb-build/in-docker-rpm.sh index 8f915a5..fe68b2f 100755 --- a/id-deb-build/in-docker-rpm.sh +++ b/id-deb-build/in-docker-rpm.sh @@ -15,6 +15,10 @@ echo "%_topdir /build/rpmbuild" >$HOME/.rpmmacros echo "%_source_filedigest_algorithm 0" >>$HOME/.rpmmacros echo "%_binary_filedigest_algorithm 0" >>$HOME/.rpmmacros +# rpmbuild wants a user +groupadd -g 1000 bob +useradd -u 1000 -g bob bob + yum-builddep -y SPECS/*.spec rpmbuild -ba SPECS/*.spec -- 1.7.10.4