From 8997f6563cda0a5f84f7b7dbf3e24fabdb2df33e Mon Sep 17 00:00:00 2001 From: adam Date: Mon, 16 Oct 2023 11:27:41 -0700 Subject: [PATCH] add postgresql-client to image --- scripts/install-dependency-packages.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/install-dependency-packages.sh b/scripts/install-dependency-packages.sh index f35d08f..3706c90 100755 --- a/scripts/install-dependency-packages.sh +++ b/scripts/install-dependency-packages.sh @@ -31,6 +31,14 @@ apt-get update apt-get -y install --no-install-recommends build-essential libffi-dev \ libpq-dev python3-dev +# postgresql-client is not *strictly* necessary, but if we're using +# CloudSQL proxy against a Cloud SQL instance that has no public IP +# and a network policy only allowing access to the proxy from the Hub +# pod, this is a much easier way to inspect the DB than an interactive +# python instance. + +apt-get -y install --no-install-recommends postgresql-client + # Delete cached files we don't need anymore: apt-get clean rm -rf /var/lib/apt/lists/*