From bac9ba5c6fb84b2b290f74edcc7f65abc8f395d4 Mon Sep 17 00:00:00 2001 From: Grigorii Merkushev Date: Mon, 5 Feb 2024 14:56:18 +0100 Subject: [PATCH] Add suse15.5 support (#11) * Add suse15.5 support * update tests --- .github/workflows/ci_build_docker_runner.yml | 1 + .github/workflows/testing.yml | 4 ++-- README.md | 3 ++- molecule/default/dockerfiles/suse15.5 | 13 +++++++++++++ prepare_platform.sh | 2 +- 5 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 molecule/default/dockerfiles/suse15.5 diff --git a/.github/workflows/ci_build_docker_runner.yml b/.github/workflows/ci_build_docker_runner.yml index 6a7e96a..78c3946 100644 --- a/.github/workflows/ci_build_docker_runner.yml +++ b/.github/workflows/ci_build_docker_runner.yml @@ -32,6 +32,7 @@ jobs: - suse15.2 - suse15.3 - suse15.4 + - suse15.5 - ubuntu1604 - ubuntu1804 - ubuntu2004 diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 2f908ba..bcc2aa1 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -16,6 +16,6 @@ jobs: with: repo_base_url: 'https://download.newrelic.com/infrastructure_agent' package_name: 'newrelic-infra' - package_version: '1.45.0' + package_version: '1.48.4' gpg_key: 'https://download.newrelic.com/infrastructure_agent/gpg/newrelic-infra.gpg' - platforms: "al2,al2023,centos7,centos8,debian-bullseye,debian-buster,redhat8,redhat9,suse15.2,suse15.3,suse15.4,ubuntu1604,ubuntu1804,ubuntu2004,ubuntu2204" + platforms: "al2,al2023,centos7,centos8,debian-bullseye,debian-buster,redhat8,redhat9,suse15.2,suse15.3,suse15.4,suse15.5,ubuntu1604,ubuntu1804,ubuntu2004,ubuntu2204" diff --git a/README.md b/README.md index 1f5a17d..b08de80 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,7 @@ Github action that tests the correct installation of a given package and version - suse15.2 - suse15.3 - suse15.4 + - suse15.5 - ubuntu1604 - ubuntu1804 - ubuntu2004 @@ -54,7 +55,7 @@ jobs: package_name: 'newrelic-infra' package_version: '1.36.0' gpg_key: 'https://download.newrelic.com/infrastructure_agent/gpg/newrelic-infra.gpg' - platforms: "al2,al2022,centos7,centos8,debian-bullseye,debian-buster,redhat8,redhat9,suse15.2,suse15.3,suse15.4,ubuntu1604,ubuntu1804,ubuntu2004,ubuntu2204" + platforms: "al2,al2022,centos7,centos8,debian-bullseye,debian-buster,redhat8,redhat9,suse15.2,suse15.3,suse15.4,suse15.5,ubuntu1604,ubuntu1804,ubuntu2004,ubuntu2204" ``` diff --git a/molecule/default/dockerfiles/suse15.5 b/molecule/default/dockerfiles/suse15.5 new file mode 100644 index 0000000..cc1abbb --- /dev/null +++ b/molecule/default/dockerfiles/suse15.5 @@ -0,0 +1,13 @@ +FROM opensuse/leap:15.5 + +# Run a system update so the system doesn't overwrite the fake systemctl later +RUN zypper -n update + +RUN zypper -n install python3 sudo curl + +# Adding fake systemctl +RUN curl https://raw.githubusercontent.com/gdraheim/docker-systemctl-replacement/master/files/docker/systemctl3.py -o /usr/local/bin/systemctl + +RUN chmod +x /usr/local/bin/systemctl + +CMD ["/usr/local/bin/systemctl"] diff --git a/prepare_platform.sh b/prepare_platform.sh index ee2d67d..d8447b8 100755 --- a/prepare_platform.sh +++ b/prepare_platform.sh @@ -24,7 +24,7 @@ This is a bash script to make generate a Molecule configutaion. exit fi -available_platforms=("al2" "al2023" "centos7" "centos8" "debian-bullseye" "debian-buster" "debian-bookworm" "redhat8" "redhat9" "suse15.2" "suse15.3" "suse15.4" "ubuntu1604" "ubuntu1804" "ubuntu2004" "ubuntu2204") +available_platforms=("al2" "al2023" "centos7" "centos8" "debian-bullseye" "debian-buster" "debian-bookworm" "redhat8" "redhat9" "suse15.2" "suse15.3" "suse15.4" "suse15.5" "ubuntu1604" "ubuntu1804" "ubuntu2004" "ubuntu2204") # check_platforms verifies that the provided platforms are available check_platforms() {