summaryrefslogtreecommitdiffstats
path: root/tests/Dockerfile.centos
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Dockerfile.centos')
-rw-r--r--tests/Dockerfile.centos12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/Dockerfile.centos b/tests/Dockerfile.centos
new file mode 100644
index 0000000..06013ee
--- /dev/null
+++ b/tests/Dockerfile.centos
@@ -0,0 +1,12 @@
+FROM centos:centos7
+RUN yum install -y rpm-build yum-utils
+WORKDIR /src
+COPY mod_authnz_pam.spec .
+RUN yum-builddep -y mod_authnz_pam.spec
+COPY * source/
+RUN rpm -q --qf '%{name}-%{version}\n' --specfile mod_authnz_pam.spec | head -1 > name_version
+RUN mv -v source $( cat name_version )
+RUN mkdir -p ~/rpmbuild/SOURCES
+RUN tar cvzf ~/rpmbuild/SOURCES/$( cat name_version ).tar.gz $( cat name_version )
+RUN rpmbuild -bb --define "dist $( rpm --eval '%{dist}' ).localbuild" mod_authnz_pam.spec
+RUN yum install -y ~/rpmbuild/RPMS/*/$( cat name_version )-*.localbuild.*.rpm