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:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user