{"action":"created","issue":{"url":"https://api.github.com/repos/lest/prometheus-rpm/issues/36","repository_url":"https://api.github.com/repos/lest/prometheus-rpm","labels_url":"https://api.github.com/repos/lest/prometheus-rpm/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/lest/prometheus-rpm/issues/36/comments","events_url":"https://api.github.com/repos/lest/prometheus-rpm/issues/36/events","html_url":"https://github.com/lest/prometheus-rpm/issues/36","id":309047258,"node_id":"MDU6SXNzdWUzMDkwNDcyNTg=","number":36,"title":"Building fails when run locally","user":{"login":"zoonage","id":7557073,"node_id":"MDQ6VXNlcjc1NTcwNzM=","avatar_url":"https://avatars2.githubusercontent.com/u/7557073?v=4","gravatar_id":"","url":"https://api.github.com/users/zoonage","html_url":"https://github.com/zoonage","followers_url":"https://api.github.com/users/zoonage/followers","following_url":"https://api.github.com/users/zoonage/following{/other_user}","gists_url":"https://api.github.com/users/zoonage/gists{/gist_id}","starred_url":"https://api.github.com/users/zoonage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoonage/subscriptions","organizations_url":"https://api.github.com/users/zoonage/orgs","repos_url":"https://api.github.com/users/zoonage/repos","events_url":"https://api.github.com/users/zoonage/events{/privacy}","received_events_url":"https://api.github.com/users/zoonage/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-03-27T16:41:28Z","updated_at":"2018-06-29T14:19:50Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"# Problem\r\n\r\nRunning `make` for exporters fails locally due to bad owners / groups. However it passes the builds in TravisCI.\r\n\r\n# Expected\r\n\r\nRunning `make` to succeed and produce the appropriate RPM\r\n\r\n# Example\r\n```\r\naaron@neptune:~/Programming/prometheus-rpm$ make consul_exporter\r\ndocker run --rm \\\r\n\t-v /home/aaron/Programming/prometheus-rpm/consul_exporter:/rpmbuild/SOURCES \\\r\n\t-v /home/aaron/Programming/prometheus-rpm/_dist:/rpmbuild/RPMS/x86_64 \\\r\n\t-v /home/aaron/Programming/prometheus-rpm/_dist:/rpmbuild/RPMS/noarch \\\r\n\tlest/centos7-rpm-builder \\\r\n\tbuild-spec SOURCES/consul_exporter.spec\r\n+ SPEC=SOURCES/consul_exporter.spec\r\n+ yum-builddep -y SOURCES/consul_exporter.spec\r\nLoaded plugins: fastestmirror, ovl\r\nEnabling base-source repository\r\nEnabling extras-source repository\r\nEnabling updates-source repository\r\nDetermining fastest mirrors\r\n * base: repo.uk.bigstepcloud.com\r\n * extras: mirrors.clouvider.net\r\n * updates: mirrors.vooservers.com\r\nChecking for new repos for mirrors\r\nGetting requirements for SOURCES/consul_exporter.spec\r\nNo uninstalled build requires\r\n+ spectool -g -R SOURCES/consul_exporter.spec\r\n/rpmbuild/SOURCES/consul_exporter-0.3.0.linux-amd64.tar.gz already exists, skipping download\r\nGetting https://github.com/prometheus/consul_exporter/releases/download/v0.3.0/consul_exporter-0.3.0.linux-amd64.tar.gz to /rpmbuild/SOURCES/consul_exporter-0.3.0.linux-amd64.tar.gz\r\n+ rpmbuild -ba SOURCES/consul_exporter.spec\r\nExecuting(%prep): /bin/sh -e /var/tmp/rpm-tmp.3QzLCQ\r\n+ umask 022\r\n+ cd /rpmbuild/BUILD\r\n+ cd /rpmbuild/BUILD\r\n+ rm -rf consul_exporter-0.3.0.linux-amd64\r\n+ /usr/bin/gzip -dc /rpmbuild/SOURCES/consul_exporter-0.3.0.linux-amd64.tar.gz\r\n+ /usr/bin/tar -xf -\r\n+ STATUS=0\r\n+ '[' 0 -ne 0 ']'\r\n+ cd consul_exporter-0.3.0.linux-amd64\r\n+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .\r\n+ exit 0\r\nExecuting(%build): /bin/sh -e /var/tmp/rpm-tmp.7fLGhH\r\n+ umask 022\r\n+ cd /rpmbuild/BUILD\r\n+ cd consul_exporter-0.3.0.linux-amd64\r\n+ /bin/true\r\n+ exit 0\r\nExecuting(%install): /bin/sh -e /var/tmp/rpm-tmp.Jqg2Wx\r\n+ umask 022\r\n+ cd /rpmbuild/BUILD\r\n+ '[' /rpmbuild/BUILDROOT/consul_exporter-0.3.0-1.el7.centos.x86_64 '!=' / ']'\r\n+ rm -rf /rpmbuild/BUILDROOT/consul_exporter-0.3.0-1.el7.centos.x86_64\r\n++ dirname /rpmbuild/BUILDROOT/consul_exporter-0.3.0-1.el7.centos.x86_64\r\n+ mkdir -p /rpmbuild/BUILDROOT\r\n+ mkdir /rpmbuild/BUILDROOT/consul_exporter-0.3.0-1.el7.centos.x86_64\r\n+ cd consul_exporter-0.3.0.linux-amd64\r\n+ mkdir -vp /rpmbuild/BUILDROOT/consul_exporter-0.3.0-1.el7.centos.x86_64/var/lib/prometheus\r\nmkdir: created directory '/rpmbuild/BUILDROOT/consul_exporter-0.3.0-1.el7.centos.x86_64/var'\r\nmkdir: created directory '/rpmbuild/BUILDROOT/consul_exporter-0.3.0-1.el7.centos.x86_64/var/lib'\r\nmkdir: created directory '/rpmbuild/BUILDROOT/consul_exporter-0.3.0-1.el7.centos.x86_64/var/lib/prometheus'\r\n+ mkdir -vp /rpmbuild/BUILDROOT/consul_exporter-0.3.0-1.el7.centos.x86_64/usr/bin\r\nmkdir: created directory '/rpmbuild/BUILDROOT/consul_exporter-0.3.0-1.el7.centos.x86_64/usr'\r\nmkdir: created directory '/rpmbuild/BUILDROOT/consul_exporter-0.3.0-1.el7.centos.x86_64/usr/bin'\r\n+ mkdir -vp /rpmbuild/BUILDROOT/consul_exporter-0.3.0-1.el7.centos.x86_64/usr/lib/systemd/system\r\nmkdir: created directory '/rpmbuild/BUILDROOT/consul_exporter-0.3.0-1.el7.centos.x86_64/usr/lib'\r\nmkdir: created directory '/rpmbuild/BUILDROOT/consul_exporter-0.3.0-1.el7.centos.x86_64/usr/lib/systemd'\r\nmkdir: created directory '/rpmbuild/BUILDROOT/consul_exporter-0.3.0-1.el7.centos.x86_64/usr/lib/systemd/system'\r\n+ mkdir -vp /rpmbuild/BUILDROOT/consul_exporter-0.3.0-1.el7.centos.x86_64/etc/default\r\nmkdir: created directory '/rpmbuild/BUILDROOT/consul_exporter-0.3.0-1.el7.centos.x86_64/etc'\r\nmkdir: created directory '/rpmbuild/BUILDROOT/consul_exporter-0.3.0-1.el7.centos.x86_64/etc/default'\r\n+ install -m 755 consul_exporter /rpmbuild/BUILDROOT/consul_exporter-0.3.0-1.el7.centos.x86_64/usr/bin/consul_exporter\r\n+ install -m 644 /rpmbuild/SOURCES/consul_exporter.service /rpmbuild/BUILDROOT/consul_exporter-0.3.0-1.el7.centos.x86_64/usr/lib/systemd/system/consul_exporter.service\r\n+ install -m 644 /rpmbuild/SOURCES/consul_exporter.default /rpmbuild/BUILDROOT/consul_exporter-0.3.0-1.el7.centos.x86_64/etc/default/consul_exporter\r\n+ /usr/lib/rpm/check-buildroot\r\n+ /usr/lib/rpm/redhat/brp-compress\r\n+ /usr/lib/rpm/redhat/brp-strip /usr/bin/strip\r\n+ /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump\r\n+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip\r\n+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1\r\n+ /usr/lib/rpm/redhat/brp-python-hardlink\r\n+ /usr/lib/rpm/redhat/brp-java-repack-jars\r\nerror: Bad owner/group: /rpmbuild/SOURCES/consul_exporter.spec\r\nerror: Bad owner/group: /rpmbuild/SOURCES/consul_exporter.default\r\n\r\n\r\nRPM build errors:\r\nerror: Bad owner/group: /rpmbuild/SOURCES/consul_exporter.service\r\n    Bad owner/group: /rpmbuild/SOURCES/consul_exporter.spec\r\n    Bad owner/group: /rpmbuild/SOURCES/consul_exporter.default\r\n    Bad owner/group: /rpmbuild/SOURCES/consul_exporter.service\r\nmake: *** [Makefile:27: consul_exporter] Error 1\r\n```"},"comment":{"url":"https://api.github.com/repos/lest/prometheus-rpm/issues/comments/401368684","html_url":"https://github.com/lest/prometheus-rpm/issues/36#issuecomment-401368684","issue_url":"https://api.github.com/repos/lest/prometheus-rpm/issues/36","id":401368684,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTM2ODY4NA==","user":{"login":"zoonage","id":7557073,"node_id":"MDQ6VXNlcjc1NTcwNzM=","avatar_url":"https://avatars2.githubusercontent.com/u/7557073?v=4","gravatar_id":"","url":"https://api.github.com/users/zoonage","html_url":"https://github.com/zoonage","followers_url":"https://api.github.com/users/zoonage/followers","following_url":"https://api.github.com/users/zoonage/following{/other_user}","gists_url":"https://api.github.com/users/zoonage/gists{/gist_id}","starred_url":"https://api.github.com/users/zoonage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoonage/subscriptions","organizations_url":"https://api.github.com/users/zoonage/orgs","repos_url":"https://api.github.com/users/zoonage/repos","events_url":"https://api.github.com/users/zoonage/events{/privacy}","received_events_url":"https://api.github.com/users/zoonage/received_events","type":"User","site_admin":false},"created_at":"2018-06-29T14:19:50Z","updated_at":"2018-06-29T14:19:50Z","author_association":"CONTRIBUTOR","body":"@lest I've opened a PR in https://github.com/lest/centos7-rpm-builder-docker/pull/2 for this."}}
{"actor":{"display_login":"zoonage"}}