Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI errors #658

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading