forked from SUSE/prometheus-webhook-snmp
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix issue when passing common args to the Docker image. Signed-off-by: Volker Theile <vtheile@suse.com> * Allow users to customize the command via ARGS and RUN_ARGS environment variables. Signed-off-by: Volker Theile <vtheile@suse.com> * Update RPM spec and Debian changelog. Signed-off-by: Volker Theile <vtheile@suse.com> * Fix issue in MIB. 'prometheusAlertNotificationRawData' needs to be a 'DisplayString'. Signed-off-by: Volker Theile <vtheile@suse.com> * Add 'Docker' section to README. Signed-off-by: Volker Theile <vtheile@suse.com> * Update README. Signed-off-by: Volker Theile <vtheile@suse.com> * Bump pyyaml from 5.1 to 5.4 Bumps [pyyaml](https://github.com/yaml/pyyaml) from 5.1 to 5.4. - [Release notes](https://github.com/yaml/pyyaml/releases) - [Changelog](https://github.com/yaml/pyyaml/blob/master/CHANGES) - [Commits](yaml/pyyaml@5.1...5.4) Signed-off-by: dependabot[bot] <support@github.com> * - Improve tox.ini - Fix code * Add option to enable HTTPS Add option to enable HTTPS * Update changelog. Signed-off-by: Volker Theile <vtheile@suse.com> * Add a Dockerfile * Run dnf clean all after install That should save some size * Fix the path and add python3-prometheus_client * Fedora on Dockerhub still on f31 * Change order of arguments * Add debugging tools * Quay has not fedora 32 * Add debug level * Remove snmp timeout and retries for now * Update spec file for Fedora * Fix systemd_pre in spec file systemd_pre was missing its % * Address issues from the review - %pre scripts (missing %) - License - silence %setup * Adjust Dockerfile to use packages also change package build to also build on Centos8 * Use quay.io as the base image repository (#5) Use quay.io to avoid issues building from docker.io and quota overuse. Drop deprecated MAINTAINER option. Remove unused commented line. Also remove telnet package which is not necessary to the operation of this container image. * migrate ci (#6) * Add initial CI * Only lint Dockerfile * Address linting issues * Add .hadolint.yaml Add .hadolint.yaml so that DL3041 can be ignored. We implicitly want the latest versions (unpinned) in the top branch. * Enable pip installs and Cachito compatibility (#9) * Add setup.py for pip compatibility This allows prometheus_webhook_snmp to be installed using pip install. * Add requirements and build requirements, all with locked versions Cachito requires locking all versions to work. It is also generally a good thing to do. * Dockerfile: install with pip instead of RPMs * Rebase prometheus_webhook_snmp.py against upstream Apply changes from SUSE@4c58245 against our prometheus_webhook_snmp/ directory where we moved the main binary into from the root directory. * Update linting tool Signed-off-by: Volker Theile <vtheile@suse.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Volker Theile <vtheile@suse.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nam Xuan Nguyen <nam.xuan.nguyen@est.tech> Co-authored-by: Matthias Runge <mrunge@redhat.com> Co-authored-by: Chris Sibbitt <csibbitt@redhat.com> Co-authored-by: Miguel Garcia <miguelgar27@gmail.com>
- Loading branch information
1 parent
321afe1
commit c75f1da
Showing
11 changed files
with
96 additions
and
20 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
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
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pyfakefs==3.5.8 | ||
pytest==4.4.0 |
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
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 |
---|---|---|
@@ -1,10 +1,48 @@ | ||
[tox] | ||
envlist = py3-{lint,test} | ||
envlist = | ||
fix, | ||
lint, | ||
test | ||
skipsdist = true | ||
sitepackages = true | ||
|
||
[base] | ||
deps = | ||
-rrequirements.txt | ||
|
||
[base-test] | ||
deps = | ||
-rrequirements-test.txt | ||
|
||
[testenv] | ||
setenv = | ||
PYTHONPATH=$PYTHONPATH:./ | ||
|
||
[testenv:lint] | ||
basepython = python3 | ||
deps = | ||
{[base]deps} | ||
{[base-test]deps} | ||
pylint | ||
isort | ||
commands = | ||
pylint --jobs=0 --rcfile=.pylintrc . prometheus-webhook-snmp prometheus_webhook_snmp tests | ||
isort --check-only --diff . | ||
|
||
[testenv:fix] | ||
basepython = python3 | ||
deps = | ||
autopep8 | ||
isort | ||
modules = | ||
prometheus-webhook-snmp | ||
commands = | ||
autopep8 --in-place --recursive --max-line-length 100 . | ||
isort . | ||
|
||
[testenv:test] | ||
basepython = python3 | ||
deps = | ||
{[base]deps} | ||
{[base-test]deps} | ||
commands = | ||
pip install -r {toxinidir}/requirements.txt | ||
lint: pylint --jobs=0 --rcfile=.pylintrc . prometheus-webhook-snmp prometheus_webhook_snmp tests | ||
test: pytest | ||
pytest {posargs} |