From fed8da9b84cbb78128b229a645fa76f943184358 Mon Sep 17 00:00:00 2001 From: Guillaume Duval <117720964+g-duval@users.noreply.github.com> Date: Tue, 17 Dec 2024 10:05:42 +0100 Subject: [PATCH] Update postgres version for Sonar checks (#3215) --- .rhcicd/sonarqube/Dockerfile | 4 ++-- .rhcicd/sonarqube/scanner/scan_code.bash | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.rhcicd/sonarqube/Dockerfile b/.rhcicd/sonarqube/Dockerfile index 108d87b642..656b84681f 100644 --- a/.rhcicd/sonarqube/Dockerfile +++ b/.rhcicd/sonarqube/Dockerfile @@ -12,8 +12,8 @@ ARG rh_it_root_ca_cert_secondary_url RUN microdnf install -y dnf RUN dnf install -y 'dnf-command(config-manager)' RUN dnf --disablerepo=* -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm -RUN dnf install -y postgresql15-server -RUN dnf install -y postgresql15-contrib +RUN dnf install -y postgresql16-server +RUN dnf install -y postgresql16-contrib # Add RedHat CAs on OS truststore (check https://certs.corp.redhat.com/ for more details) RUN curl --output rh_it_root_ca_file.crt --insecure "${rh_it_root_ca_cert_url}" \ diff --git a/.rhcicd/sonarqube/scanner/scan_code.bash b/.rhcicd/sonarqube/scanner/scan_code.bash index 3a555f4ab1..5d28c62740 100644 --- a/.rhcicd/sonarqube/scanner/scan_code.bash +++ b/.rhcicd/sonarqube/scanner/scan_code.bash @@ -10,8 +10,8 @@ set -euxo pipefail # Start Postgresql and init notifications database -su -l postgres -c /usr/pgsql-15/bin/initdb -su -l postgres -c "/usr/pgsql-15/bin/pg_ctl -D /var/lib/pgsql/15/data -l /tmp/pg_logfile start" +su -l postgres -c /usr/pgsql-16/bin/initdb +su -l postgres -c "/usr/pgsql-16/bin/pg_ctl -D /var/lib/pgsql/16/data -l /tmp/pg_logfile start" createdb -U postgres notifications #