1
0
mirror of https://github.com/quay/quay.git synced 2026-01-26 06:21:37 +03:00

alembic: Install certs during alembic migrations (PROJQUAY-9135) (#4125)

Currently, we don't install certs when starting alembic migrations on the db. This poses a problem when Quay is behind a proxy and proxy HTTPS connection is needed to connect to the database. This small fix will make alembic migrations take into account certificates installed in `extra_ca_certs` folder.
This commit is contained in:
Ivan Bazulic
2025-07-15 09:51:09 -04:00
committed by GitHub
parent 4dc25162d3
commit 54554080ee

View File

@@ -78,6 +78,7 @@ case "$QUAYENTRY" in
echo ""; echo "Startup timestamp: "; date; echo ""
: "${MIGRATION_VERSION:=$2}"
: "${MIGRATION_VERSION:?Missing version argument}"
"${QUAYPATH}/conf/init/certs_install.sh" || exit
"${QUAYPATH}/conf/init/client_certs.sh" || exit
echo "Entering migration mode to version: ${MIGRATION_VERSION}"
PYTHONPATH="${QUAYPATH}" alembic upgrade "${MIGRATION_VERSION}"