Skip to content

Commit

Permalink
Package ondemand_exporter-0.11.2 (#290)
Browse files Browse the repository at this point in the history
* Package ondemand_exporter-0.11.2

* Build ondemand_exporter from source
  • Loading branch information
treydock authored Jan 12, 2025
1 parent e859d93 commit fbeac56
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/ood_packaging/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module OodPackaging
'ondemand-runtime' => '4.0.3',
'scl-utils' => '2.0.3',
'passenger' => '6.0.23',
'ondemand_exporter' => '0.10.0',
'ondemand_exporter' => '0.11.2',
'ondemand-compute' => {
'(ubuntu|debian)' => '4.0.0',
'default' => '4.0.0'
Expand Down
12 changes: 10 additions & 2 deletions packages/ondemand_exporter/rpm/ondemand_exporter.spec
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
%define __strip /bin/true

%define apache_confd /etc/httpd/conf.d

%define go_version 1.23.4
%ifarch x86_64
%define platform amd64
%endif
Expand All @@ -22,7 +24,8 @@ Summary: OnDemand Prometheus Exporter
Group: System Environment/Daemons
License: Apache-2.0
URL: https://github.com/OSC/ondemand_exporter
Source0: https://github.com/OSC/ondemand_exporter/releases/download/v%{version}/ondemand_exporter-%{version}.linux-%{platform}.tar.gz
Source0: https://github.com/OSC/ondemand_exporter/archive/v%{version}.tar.gz
Source1: https://dl.google.com/go/go%{go_version}.linux-%{platform}.tar.gz

BuildRequires: systemd
Requires: ondemand
Expand All @@ -31,7 +34,12 @@ Requires: ondemand
OnDemand Prometheus Exporter

%prep
%setup -q -n ondemand_exporter-%{version}.linux-%{platform}
%setup -q -n ondemand_exporter-%{version}
%__tar -C %{_builddir} -xzf %{SOURCE1}

%build
export PATH=$PATH:%{_builddir}/go/bin
%__make build

%install
%__install -p -m 755 -D ondemand_exporter %{buildroot}%{_bindir}/%{name}
Expand Down
2 changes: 1 addition & 1 deletion release-manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ ondemand-dex:
# deb package
- 2.41.1
ondemand_exporter:
- 0.10.0-1
- 0.11.2-1

# compute
ondemand-compute:
Expand Down

0 comments on commit fbeac56

Please sign in to comment.