From d93eba3766a509e39b25e559f8c4c9e75e2ff7cb Mon Sep 17 00:00:00 2001 From: Copilot Date: Mon, 20 Jul 2026 18:33:18 +0200 Subject: [PATCH] ci: give migration containers readable names (timestamped) and echo them before launch --- app/run_docker.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/run_docker.sh b/app/run_docker.sh index 53768f393..547be6e3d 100755 --- a/app/run_docker.sh +++ b/app/run_docker.sh @@ -148,6 +148,11 @@ if [[ -z "$QT_ROOT_OVERRIDE" ]]; then QT_ROOT_OVERRIDE="$QT_ROOT_DEFAULT" fi +# Name containers with a readable timestamped name so they can be inspected if orphaned +CONTAINER_NAME="${CONTAINER_NAME:-migration-pipeline-$(date +%s)-$HOST_UID}" +DOCKER_NAME_FLAG="--name ${CONTAINER_NAME}" +echo "Launching container with name: ${CONTAINER_NAME}" + if [[ ! -f "$SCRIPT_DIR/.env" ]]; then echo "Missing env file: $SCRIPT_DIR/.env" >&2 exit 1 @@ -211,7 +216,7 @@ else DOCKER_TTY_FLAG="-i" fi -docker run --rm $DOCKER_TTY_FLAG \ +docker run --rm $DOCKER_TTY_FLAG $DOCKER_NAME_FLAG \ --user root \ --env-file "$SCRIPT_DIR/.env" \ -v "$SCRIPT_DIR:/app" \