comms: use guest-tools image for guest rename

This commit is contained in:
Brad Stein 2026-01-17 17:51:21 -03:00
parent f9830c6678
commit 6997d5e202
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -62,7 +62,7 @@ spec:
defaultMode: 0555 defaultMode: 0555
containers: containers:
- name: rename - name: rename
image: python:3.11-slim image: registry.bstein.dev/bstein/comms-guest-tools:0.1.0
volumeMounts: volumeMounts:
- name: vault-scripts - name: vault-scripts
mountPath: /vault/scripts mountPath: /vault/scripts
@ -94,7 +94,6 @@ spec:
- | - |
set -euo pipefail set -euo pipefail
. /vault/scripts/comms_vault_env.sh . /vault/scripts/comms_vault_env.sh
pip install --no-cache-dir requests psycopg2-binary >/dev/null
python - <<'PY' python - <<'PY'
import base64 import base64
import os import os