This commit is contained in:
1 parent
4749ec91e4
commit
ec420e6053
1 file changed
+9
-9
+9
-9
@@ -70,7 +70,7 @@ cd "$TARGET_DIR"
|
||||
if [ "${SUPPORT_CHAT_KEY+x}" = x ]; then
|
||||
touch .support-chat.env
|
||||
grep -v '^SUPPORT_CHAT_KEY=' .support-chat.env > .support-chat.env.tmp || true
|
||||
printf "SUPPORT_CHAT_KEY=%s\n" "$SUPPORT_CHAT_KEY" >> .support-chat.env.tmp
|
||||
printf "SUPPORT_CHAT_KEY=%sn" "$SUPPORT_CHAT_KEY" >> .support-chat.env.tmp
|
||||
mv .support-chat.env.tmp .support-chat.env
|
||||
chmod 600 .support-chat.env
|
||||
fi
|
||||
@@ -93,19 +93,19 @@ echo "Using Nexus npm proxy: $NPM_REGISTRY"
|
||||
NPM_REGISTRY_ARG="--build-arg NPM_REGISTRY=${NPM_REGISTRY}"
|
||||
|
||||
echo "Building Docker images..."
|
||||
docker compose --progress plain build \
|
||||
--build-arg NEXT_PUBLIC_API_URL="${API_URL}/api" \
|
||||
--build-arg VITE_API_URL="${API_URL}" \
|
||||
docker compose --progress plain build
|
||||
--build-arg NEXT_PUBLIC_API_URL="${API_URL}/api"
|
||||
--build-arg VITE_API_URL="${API_URL}"
|
||||
${NPM_REGISTRY_ARG}
|
||||
|
||||
echo "Building support-chat bot image from committed source..."
|
||||
BOT_IMAGE="canina-support-bot:\${BRANCH}"
|
||||
docker build --pull=false -f scripts/support-chat/Dockerfile -t "\${BOT_IMAGE}" .
|
||||
BOT_IMAGE="canina-support-bot:${BRANCH}"
|
||||
docker build --pull=false -f scripts/support-chat/Dockerfile -t "${BOT_IMAGE}" .
|
||||
BOT_OVERRIDE="/opt/services/ai/canina-bot/support.override.cicd.yml"
|
||||
cat > "\${BOT_OVERRIDE}" <<EOF
|
||||
cat > "${BOT_OVERRIDE}" <<EOF
|
||||
services:
|
||||
canina-bot:
|
||||
image: \${BOT_IMAGE}
|
||||
image: ${BOT_IMAGE}
|
||||
env_file:
|
||||
- .env
|
||||
- support.env
|
||||
@@ -113,7 +113,7 @@ EOF
|
||||
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 compose -p canina-support -f /opt/services/ai/canina-bot/compose.yml -f "${BOT_OVERRIDE}" up -d --no-build --force-recreate canina-bot
|
||||
|
||||
echo "Waiting for backend to start..."
|
||||
sleep 15
|
||||
|
||||
Reference in new issue
Block a user