From 332d400a3788c83ed49d733201f59bbf55bc06c2 Mon Sep 17 00:00:00 2001 From: devops Date: Thu, 15 Oct 2026 06:55:16 +0000 Subject: [PATCH] fix(ci): recreate bot through runner docker daemon --- scripts/deploy.sh | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index bc769846..e918eb44 100644 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -115,21 +115,16 @@ docker compose --progress plain build \ echo "Building support-chat bot image from committed source..." BOT_IMAGE="canina-support-bot:${BRANCH}" DOCKER_BUILDKIT=0 docker build --pull=false -f scripts/support-chat/Dockerfile -t "${BOT_IMAGE}" . -BOT_OVERRIDE="/opt/services/ai/canina-bot/support.override.cicd.yml" -mkdir -p "$(dirname "${BOT_OVERRIDE}")" -cat > "${BOT_OVERRIDE}" < "${BOT_ENV}" +chmod 600 "${BOT_ENV}" echo "Starting containers..." docker compose up -d --remove-orphans echo "Starting support-chat bot container..." -docker compose -p canina-support -f /opt/services/ai/canina-bot/compose.yml -f "${BOT_OVERRIDE}" up -d --no-build --force-recreate canina-bot - +docker rm -f canina-bot >/dev/null 2>&1 || true +docker run -d --name canina-bot --restart unless-stopped --env-file "${BOT_ENV}" -e HERMES_HOME=/opt/data -e HERMES_RUNTIME_DIR=/opt/hermes/tools -e API_SERVER_HOST=0.0.0.0 -e API_SERVER_PORT=8642 --network traefik_public -v canina_bot_data:/opt/data "${BOT_IMAGE}" gateway run +docker network connect --ip 172.22.0.15 vpn_net canina-bot +rm -f "${BOT_ENV}" echo "Waiting for backend to start..." sleep 15