forked from vmware/photon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: Ic1fe629eafda1130e6971cea4a7510da66fee4ff Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3704 Tested-by: gerrit-photon <[email protected]> Reviewed-by: Kumar Kaushik <[email protected]>
- Loading branch information
1 parent
7071a10
commit cb436bc
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
Summary: Heapster enables Container Cluster Monitoring and Performance Analysis. | ||
Name: heapster | ||
Version: 1.4.2 | ||
Release: 1%{?dist} | ||
License: Apache 2.0 | ||
URL: https://github.com/wavefrontHQ/cadvisor | ||
Source0: https://github.com/kubernetes/heapster/archive/%{name}-%{version}.tar.gz | ||
%define sha1 heapster=e7c22e3f6c5223345259cabb761571b815a587e6 | ||
Group: Development/Tools | ||
Vendor: VMware, Inc. | ||
Distribution: Photon | ||
BuildRequires: go | ||
BuildRequires: unzip | ||
|
||
%description | ||
Heapster collects and interprets various signals like compute resource usage, lifecycle events, etc, and exports cluster metrics via REST endpoints. | ||
|
||
%prep | ||
%setup -q | ||
|
||
%build | ||
mkdir -p $GOPATH/src/k8s.io/heapster | ||
cp -r . $GOPATH/src/k8s.io/heapster | ||
cd $GOPATH/src/k8s.io/heapster | ||
make build | ||
|
||
%install | ||
cd $GOPATH/src/k8s.io/heapster | ||
install -d -p %{buildroot}%{_bindir} | ||
install -p -m 0755 heapster %{buildroot}%{_bindir} | ||
install -p -m 0755 eventer %{buildroot}%{_bindir} | ||
|
||
%check | ||
cd $GOPATH/src/k8s.io/heapster | ||
make test-unit | ||
|
||
%files | ||
%defattr(-,root,root) | ||
%{_bindir}/heapster | ||
%{_bindir}/eventer | ||
|
||
%changelog | ||
* Thu Aug 31 2017 Dheeraj Shetty <[email protected]> 1.4.2-1 | ||
- Initial heapster package |