Skip to content

Commit

Permalink
Merge pull request #658 from git-hyagi/hardcode-postgres-version
Browse files Browse the repository at this point in the history
Fix CI errors
  • Loading branch information
lubosmj authored Aug 21, 2024
2 parents 3bcaf16 + 422bea8 commit 87209a9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
12 changes: 6 additions & 6 deletions images/pulp_ci_centos/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=1
# https://github.com/just-containers/s6-overlay/issues/467
ENV S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0

RUN dnf -y install postgresql && \
dnf -y install postgresql-contrib && \
dnf -y install postgresql-server && \
dnf -y install postgresql-upgrade && \
dnf -y install nginx && \
dnf -y install redis && \
RUN dnf -y install postgresql \
postgresql-contrib \
postgresql-server \
postgresql-upgrade \
nginx \
redis && \
dnf clean all

COPY images/s6_assets/openssl.cnf /etc/ssl/pulp/openssl.cnf
Expand Down
3 changes: 1 addition & 2 deletions images/s6_assets/init/certs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ if ! [ -e /etc/pki/tls/certs/pulp_webserver.crt ]; then
cp /etc/pulp/certs/pulp_webserver.crt /etc/pki/tls/certs/pulp_webserver.crt
cp /etc/pulp/certs/pulp_webserver.csr /etc/pki/tls/private/pulp_webserver.csr
cp /etc/pulp/certs/pulp_webserver.key /etc/pki/tls/private/pulp_webserver.key
update-ca-trust force-enable
update-ca-trust extract
update-ca-trust
cat /etc/pulp/certs/pulp_webserver.crt >> /etc/pki/tls/cert.pem
echo -e "${PREFIX} ${GREEN}finished adding webserver certificate to the certificate store${ENDCOLOR}"
fi
5 changes: 5 additions & 0 deletions images/s6_assets/init/postgres-prepare
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ export C035="\e[35m"
export C036="\e[36m"
export C037="\e[37m"

if [ ! -d "/var/run/postgresql" ]; then
mkdir -p /var/run/postgresql
chown postgres:postgres /var/run/postgresql
fi

PG_ISREADY=1
while [ "$PG_ISREADY" != "0" ]; do
sleep 1
Expand Down

0 comments on commit 87209a9

Please sign in to comment.