diff --git a/.github/workflows/ci_build_docker_runner.yml b/.github/workflows/ci_build_docker_runner.yml index 9ea2b8d..422e50e 100644 --- a/.github/workflows/ci_build_docker_runner.yml +++ b/.github/workflows/ci_build_docker_runner.yml @@ -21,6 +21,7 @@ jobs: matrix: dockerfile: - al2022 + - al2023 - al2 - centos7 - centos8 diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 3972522..ff6b845 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -18,4 +18,4 @@ 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,al2023,centos7,centos8,debian-bullseye,debian-buster,redhat8,redhat9,suse15.2,suse15.3,suse15.4,ubuntu1604,ubuntu1804,ubuntu2004,ubuntu2204" diff --git a/README.md b/README.md index b7504e7..03bf5b4 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ Github action that tests the correct installation of a given package and version - al2 - al2022 + - al2023 - centos7 - centos8 - debian-bullseye diff --git a/molecule/default/dockerfiles/al2023 b/molecule/default/dockerfiles/al2023 new file mode 100644 index 0000000..bc69bc0 --- /dev/null +++ b/molecule/default/dockerfiles/al2023 @@ -0,0 +1,13 @@ +FROM amazonlinux:2023 + +# Run a system update so the system doesn't overwrite the fake systemctl later +RUN yum -y update + +RUN yum -y install python3 sudo shadow-utils + +# 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 cf67f17..c91f165 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" "al2022" "centos7" "centos8" "debian-bullseye" "debian-buster" "redhat8" "redhat9" "suse15.2" "suse15.3" "suse15.4" "ubuntu1604" "ubuntu1804" "ubuntu2004" "ubuntu2204") +available_platforms=("al2" "al2022" "al2023" "centos7" "centos8" "debian-bullseye" "debian-buster" "redhat8" "redhat9" "suse15.2" "suse15.3" "suse15.4" "ubuntu1604" "ubuntu1804" "ubuntu2004" "ubuntu2204") # check_platforms verifies that the provided platforms are available check_platforms() {