From 7f60aefc065a7faf13a594cba851064e4dd00dff Mon Sep 17 00:00:00 2001 From: Victoria Martinez de la Cruz Date: Mon, 26 Aug 2024 18:16:05 +0200 Subject: [PATCH] STF 1.5.5 release ops (#25) * Remove invalid addition to requirements.txt (#11) When I rebased I inadvertently added an invalid reference which breaks cachito. Imports require requirements.txt to be pinned to a version. Signed-off-by: Leif Madsen Signed-off-by: Leif Madsen * Clean up hadolint output (#15) * Clean up hadolint output Clean up hadolint output which causes failures testing in GitHub Actions. Remove unnecessary upgrades (which are reverted by requirements files) and package installation (satisfied by requirements). Resolves: STF-1256 * Syncronize versions across requirements files * Extend available options to prometheus-webhook-snmp (#14) * Extend available options to prometheus-webhook-snmp Related: STF-559 * Adjust Dockerfile to conform to hadolint checks * Set pip installation version * Various fixes for linting and build warnings - Complete clean up of the linting and verify everything continues to build - Clean up the Dockerfile for python package updates which were just being overridden by the requirements-built.txt * Use proper .hadolint.yaml file * Don't Dockerfile lint error on info * Allow shell meta-character problems in SNMP vars (#16) * Allow shell meta-characters in SNMP vars * [zuul] Add zuul jobs to prometheus-webhook-snmp (#18) Depends-On: http://github.com/infrawatch/service-telemetry-operator/pull/512 * [zuul] Use the stf-crc-jobs project template (#19) Instead of updating the .zuul.yaml file everytime infrawatch/service-telemetry-operator adds a new job, the project-template can be updated in STO, which will propogate the change to the project and avoid leaving gaps in testing. Depends-On: http://github.com/infrawatch/service-telemetry-operator/pull/514 * Bump actions checkout to v4 (#21) Bump actions checkout to v4 since Node.js 16 actions are deprecated. We need to update to Node.js 20, which is included in actions/checkout@v4. * [docker] Update yum repos for CentOS8 Stream EOL (#22) --------- Signed-off-by: Leif Madsen Co-authored-by: Leif Madsen Co-authored-by: Leif Madsen Co-authored-by: Chris Sibbitt Co-authored-by: Emma Foley --- .github/workflows/main.yml | 4 ++-- Dockerfile | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 77ba967..f59e46b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4.1.3 with: fetch-depth: 0 @@ -30,7 +30,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4.1.3 - name: Verify image builds run: docker build --tag infrawatch/prometheus-webhook-snmp:latest --file Dockerfile . diff --git a/Dockerfile b/Dockerfile index 3f1c31a..66d68c0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,9 @@ FROM quay.io/centos/centos:stream8 +# Update repos to use the vault mirror, now that CentOS 8 Stream is EOL +RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* +RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* + # >> ignore SC2086 because passing quoted env vars to dnf causes issues (fail to install) # hadolint ignore=SC2086 RUN INSTALL_PKGS="\