-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Python version and dependencies
- Update to python 3.9 - Update dependencies - Add Dockerfile - Update documentation Co-authored-by: Harri Hirvonsalo <[email protected]>
- Loading branch information
Showing
5 changed files
with
84 additions
and
30 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,16 @@ | ||
FROM rockylinux:9 | ||
# eudat-docker.artifactory.ci.csc.fi/ | ||
|
||
LABEL maintainer Giacomo Furlan <[email protected]> | ||
LABEL description="Image to test nagios plugin on eudat b2share instances." | ||
|
||
RUN dnf update -y && \ | ||
dnf install -y python3.9 && \ | ||
dnf install -y python3.9-pip | ||
|
||
WORKDIR /root | ||
|
||
ADD check_b2share.py check_b2share.py | ||
ADD requirements.txt requirements.txt | ||
|
||
RUN pip3 install -r requirements.txt |
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
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
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
# limitations under the License. | ||
|
||
Name: nagios-plugins-eudat-b2share | ||
Version: 0.1.1 | ||
Version: 0.2.1 | ||
Release: 1%{?dist} | ||
Summary: Nagios B2SHARE probe | ||
License: Apache License, Version 2.0 | ||
|
@@ -26,11 +26,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version} | |
|
||
AutoReqProv: no | ||
|
||
Requires: python | ||
Requires: python-argparse | ||
Requires: python-requests | ||
Requires: python-jsonschema | ||
Requires: python-validators | ||
Requires: python3 | ||
Requires: python3-requests | ||
Requires: python3-jsonschema | ||
|
||
|
||
%description | ||
|
@@ -40,7 +38,7 @@ Nagios probe to check functionality of B2SHARE Service | |
%setup -q | ||
|
||
%define _unpackaged_files_terminate_build 0 | ||
%define probe_namespace eudat-b2share | ||
%define probe_namespace eudat-b2share | ||
|
||
%install | ||
|
||
|
@@ -55,6 +53,10 @@ install -m 755 check_b2share.py %{buildroot}/%{_libexecdir}/argo-monitoring/prob | |
%attr(0755,root,root) /%{_libexecdir}/argo-monitoring/probes/%{probe_namespace}/check_b2share.py | ||
|
||
%changelog | ||
* Fri Apr 05 2024 Giacomo Furlan <[email protected]> - 0.2.1 | ||
- Update python to 3.9 | ||
- Update requirements and dependencies | ||
- Remove validator dependency | ||
* Mon Sep 02 2019 Harri Hirvonsalo <[email protected]> - 0.1.1-1 | ||
- Improved error handling to address false positive alerts. | ||
* Wed Dec 05 2018 Harri Hirvonsalo <[email protected]> - 0.1-1 | ||
|
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