Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorporating murre tool under cmsmon-tools. #8236

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 8 additions & 2 deletions cmsmon-tools.spec
Expand Up @@ -11,8 +11,9 @@
%define heyver 0.0.2
%define k8s_info_ver 0.0.1
%define gocurlver 0.0.4
%define murrever 0.0.4
%define monit_commands monit ggus_parser alert annotationManager nats-sub nats-pub dbs_vm
%define common_commands promtool amtool prometheus hey stern trivy k8s_info gocurl
%define common_commands promtool amtool prometheus hey stern trivy k8s_info gocurl murre
%define flags -ldflags="-s -w -extldflags -static" -p %{compiling_processes}
Source0: https://github.com/dmwm/CMSMonitoring/releases/download/%{realversion}/cmsmon-tools.tar.gz
Source1: https://github.com/prometheus/prometheus/releases/download/v%promv/prometheus-%promv.linux-amd64.tar.gz
Expand All @@ -23,7 +24,7 @@ Source5: https://github.com/vkuznet/auth-proxy-server/releases/download/%apsver/
Source6: https://github.com/vkuznet/k8s_info/releases/download/%k8s_info_ver/k8s_info-tools.tar.gz
Source7: https://github.com/aquasecurity/trivy/releases/download/v%trivyver/trivy_%{trivyver}_Linux-64bit.tar.gz
Source8: https://github.com/vkuznet/gocurl/releases/download/%gocurlver/gocurl-tools.tar.gz

Source9: https://github.com/groundcover-com/murre/releases/download/v%murrever/murre_%{murrever}_linux_amd64.tar.gz
BuildRequires: go

# RPM macros documentation
Expand All @@ -39,6 +40,7 @@ BuildRequires: go
%setup -D -T -b 6 -n k8s_info-tools
%setup -D -T -a 7 -n trivy-%trivyver -c trivy-%trivyver
%setup -D -T -b 8 -n gocurl-tools
%setup -D -T -a 9 -c -n murre-%murrever

%build
export CGO_ENABLED=0
Expand Down Expand Up @@ -90,6 +92,10 @@ cp gocurl_amd64 %i/gocurl
chmod +x %i/gocurl
cd -

#install muree
cp %{_builddir}/murre-%murrever/murre %i/murre
chmod +x %i/murre

#####################################################
# **************** IMPORTANT NOTE ***************** #
# Increament cmsdist file revision for every change #
Expand Down