blob: 0ba81cbbdc3cdf8087ca27ed214661315e9af001 [file] [log] [blame]
akutz77457a62018-08-22 16:07:21 -05001all: build
2
akutz7e7852a2018-08-24 12:31:46 -05003rpm-centos7:
4 @mkdir -p rpmbuild/centos7/RPMS rpmbuild/centos7/SPECS \
5 rpmbuild/centos7/SRPMS \
6 rpmbuild/centos7/BUILD/etc/cloud/cloud.cfg.d \
7 rpmbuild/centos7/BUILD/usr/lib/python2.7/site-packages/cloudinit/sources
8 docker build -f Dockerfile.rpmbuild -t rpmbuild:centos7 .
akutz77457a62018-08-22 16:07:21 -05009 docker run --rm -it \
10 -v $$(pwd)/rpmmacros:/root/.rpmmacros:ro \
akutz7e7852a2018-08-24 12:31:46 -050011 -v $$(pwd)/rpmbuild/centos7:/root/rpmbuild \
12 -v $$(pwd)/rpm.centos7.spec:/root/rpmbuild/SPECS/rpm.spec:ro \
akutzdf8fa192018-08-24 12:21:26 -050013 -v $$(pwd)/99_vmx_guestinfo.cfg:/root/rpmbuild/BUILD/etc/cloud/cloud.cfg.d/99_vmx_guestinfo.cfg:ro \
akutz77457a62018-08-22 16:07:21 -050014 -v $$(pwd)/DataSourceVmxGuestinfo.py:/root/rpmbuild/BUILD/usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceVmxGuestinfo.py:ro \
akutz7e7852a2018-08-24 12:31:46 -050015 rpmbuild:centos7 \
akutz77457a62018-08-22 16:07:21 -050016 rpmbuild -ba /root/rpmbuild/SPECS/rpm.spec
akutz7e7852a2018-08-24 12:31:46 -050017
18rpm: rpm-centos7
19
20build: rpm
21