From 6997d5e202c49ce6faa240f7d68f34c724a695f1 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Sat, 17 Jan 2026 17:51:21 -0300 Subject: [PATCH] comms: use guest-tools image for guest rename --- dockerfiles/Dockerfile.comms-guest-tools | 5 +++++ services/comms/guest-name-job.yaml | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 dockerfiles/Dockerfile.comms-guest-tools diff --git a/dockerfiles/Dockerfile.comms-guest-tools b/dockerfiles/Dockerfile.comms-guest-tools new file mode 100644 index 0000000..2a18016 --- /dev/null +++ b/dockerfiles/Dockerfile.comms-guest-tools @@ -0,0 +1,5 @@ +FROM python:3.11-slim + +ENV PIP_DISABLE_PIP_VERSION_CHECK=1 + +RUN pip install --no-cache-dir requests psycopg2-binary diff --git a/services/comms/guest-name-job.yaml b/services/comms/guest-name-job.yaml index bae2d49..ef7b2e0 100644 --- a/services/comms/guest-name-job.yaml +++ b/services/comms/guest-name-job.yaml @@ -62,7 +62,7 @@ spec: defaultMode: 0555 containers: - name: rename - image: python:3.11-slim + image: registry.bstein.dev/bstein/comms-guest-tools:0.1.0 volumeMounts: - name: vault-scripts mountPath: /vault/scripts @@ -94,7 +94,6 @@ spec: - | set -euo pipefail . /vault/scripts/comms_vault_env.sh - pip install --no-cache-dir requests psycopg2-binary >/dev/null python - <<'PY' import base64 import os