Skip to content

Commit

Permalink
chore: upgrade db to pg 16
Browse files Browse the repository at this point in the history
RHINENG-13495
  • Loading branch information
MichaelMraka authored and jdobes committed Oct 17, 2024
1 parent cb66ec6 commit 25d00c4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM registry.access.redhat.com/ubi9/ubi-minimal

RUN curl -o /etc/yum.repos.d/mmraka-postgresql-15-epel-9.repo https://copr.fedorainfracloud.org/coprs/mmraka/postgresql-15/repo/epel-9/mmraka-postgresql-15-epel-9.repo
RUN curl -o /etc/yum.repos.d/postgresql.repo \
https://copr.fedorainfracloud.org/coprs/g/insights/postgresql-16/repo/epel-9/group_insights-postgresql-16-epel-9.repo

RUN microdnf install -y --setopt=install_weak_deps=0 --setopt=tsflags=nodocs \
python311 python3.11-pip python3.11-devel libpq-devel gcc which shadow-utils diffutils systemd libicu git-core postgresql pg_repack && \
microdnf clean all
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM registry.access.redhat.com/ubi9/ubi-minimal

RUN curl -o /etc/yum.repos.d/mmraka-postgresql-15-epel-9.repo https://copr.fedorainfracloud.org/coprs/mmraka/postgresql-15/repo/epel-9/mmraka-postgresql-15-epel-9.repo
RUN curl -o /etc/yum.repos.d/postgresql.repo \
https://copr.fedorainfracloud.org/coprs/g/insights/postgresql-16/repo/epel-9/group_insights-postgresql-16-epel-9.repo

RUN microdnf install -y --setopt=install_weak_deps=0 --setopt=tsflags=nodocs \
python311 python3.11-pip python3.11-devel libpq-devel gcc git postgresql-server which findutils diffutils && \
microdnf clean all
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
- "-c"
- "timezone=UTC"
container_name: vulnerability-engine-database
image: docker.io/library/postgres:15
image: docker.io/library/postgres:16
restart: unless-stopped
env_file:
- ./conf/common.env
Expand Down
3 changes: 2 additions & 1 deletion platform_mock/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM registry.access.redhat.com/ubi9/ubi-minimal

RUN curl -o /etc/yum.repos.d/mmraka-postgresql-15-epel-9.repo https://copr.fedorainfracloud.org/coprs/mmraka/postgresql-15/repo/epel-9/mmraka-postgresql-15-epel-9.repo
RUN curl -o /etc/yum.repos.d/postgresql.repo \
https://copr.fedorainfracloud.org/coprs/g/insights/postgresql-16/repo/epel-9/group_insights-postgresql-16-epel-9.repo

RUN microdnf install -y --setopt=install_weak_deps=0 --setopt=tsflags=nodocs \
python311 python3.11-pip python3.11-devel libpq-devel gcc which java-openjdk-headless shadow-utils tar gzip file vim systemd libicu postgresql && \
Expand Down

0 comments on commit 25d00c4

Please sign in to comment.