Skip to content

Commit

Permalink
NR-144355: add debian-bookworm platform (#10)
Browse files Browse the repository at this point in the history
* NR-144355: add debian-bookworm platform

* NR-144355: remove al2022 from docs

* NR-144355: wip

* NR-144355: use prod bucket
  • Loading branch information
rogercoll committed Aug 21, 2023
1 parent cad89b6 commit a170c97
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci_build_docker_runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ jobs:
strategy:
matrix:
dockerfile:
- al2022
- al2023
- al2
- centos7
- centos8
- debian-bullseye
- debian-buster
- debian-bookworm
- redhat8
- redhat9
- suse15.2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ jobs:
with:
repo_base_url: 'https://download.newrelic.com/infrastructure_agent'
package_name: 'newrelic-infra'
package_version: '1.40.0'
package_version: '1.45.0'
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"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ Github action that tests the correct installation of a given package and version
## Available platforms

- al2
- al2022
- al2023
- centos7
- centos8
- debian-bullseye
- debian-buster
- debian-bookworm
- redhat8
- redhat9
- suse15.2
Expand Down
10 changes: 10 additions & 0 deletions molecule/default/dockerfiles/debian-bookworm
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM debian:bookworm

RUN apt-get update \
&& apt-get install -y init gpg ca-certificates sudo curl python3 \
&& apt-get clean all

# Adding fake systemctl
RUN curl https://raw.githubusercontent.com/gdraheim/docker-systemctl-replacement/master/files/docker/systemctl.py -o /usr/local/bin/systemctl

CMD ["/usr/local/bin/systemctl"]
4 changes: 2 additions & 2 deletions prepare_platform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ if [[ "${TRACE-0}" == "1" ]]; then set -o xtrace; fi


if [[ "${1-}" =~ ^-*h(elp)?$ ]]; then
echo 'Usage: ./prepare_platform.sh "al2,al2022"
echo 'Usage: ./prepare_platform.sh "al2,al2023"
This is a bash script to make generate a Molecule configutaion.
'
exit
fi

available_platforms=("al2" "al2022" "al2023" "centos7" "centos8" "debian-bullseye" "debian-buster" "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" "ubuntu1604" "ubuntu1804" "ubuntu2004" "ubuntu2204")

# check_platforms verifies that the provided platforms are available
check_platforms() {
Expand Down

0 comments on commit a170c97

Please sign in to comment.