Skip to content

Commit

Permalink
Update postgres version for Sonar checks (#3215)
Browse files Browse the repository at this point in the history
  • Loading branch information
g-duval authored Dec 17, 2024
1 parent 9c95257 commit fed8da9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .rhcicd/sonarqube/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}" \
Expand Down
4 changes: 2 additions & 2 deletions .rhcicd/sonarqube/scanner/scan_code.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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

#
Expand Down

0 comments on commit fed8da9

Please sign in to comment.