From 321512f2226e340ec9fd88080260dc88f2b5203a Mon Sep 17 00:00:00 2001 From: Edoardo Zoni Date: Fri, 8 May 2026 15:29:35 -0700 Subject: [PATCH] Read password from stdin for podman-hpc login --- ml/training_pm.sbatch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ml/training_pm.sbatch b/ml/training_pm.sbatch index a4f3cfdf..6c2fe564 100644 --- a/ml/training_pm.sbatch +++ b/ml/training_pm.sbatch @@ -25,7 +25,7 @@ REGISTRY_NAME="registry.nersc.gov" IMAGE_NAME="m558/superfacility/synapse-ml" IMAGE_VERSION="latest" -podman-hpc login --username "${REGISTRY_USER}" --password "${REGISTRY_PASSWORD}" ${REGISTRY_NAME} +echo "${REGISTRY_PASSWORD}" | podman-hpc login --username "${REGISTRY_USER}" --password-stdin "${REGISTRY_NAME}" # As the local image, we use the digest id. # podman-hpc lists to entries with the same digest id, # one local and one migrated (read-write and read-only).