This commit is contained in:
1 parent
679a551243
commit
4749ec91e4
1 file changed
+5
-5
+5
-5
@@ -99,13 +99,13 @@ docker compose --progress plain build \
|
|||||||
${NPM_REGISTRY_ARG}
|
${NPM_REGISTRY_ARG}
|
||||||
|
|
||||||
echo "Building support-chat bot image from committed source..."
|
echo "Building support-chat bot image from committed source..."
|
||||||
BOT_IMAGE="canina-support-bot:"
|
BOT_IMAGE="canina-support-bot:\${BRANCH}"
|
||||||
docker build --pull=false -f scripts/support-chat/Dockerfile -t "" .
|
docker build --pull=false -f scripts/support-chat/Dockerfile -t "\${BOT_IMAGE}" .
|
||||||
BOT_OVERRIDE="/opt/services/ai/canina-bot/support.override.cicd.yml"
|
BOT_OVERRIDE="/opt/services/ai/canina-bot/support.override.cicd.yml"
|
||||||
cat > "" <<EOF
|
cat > "\${BOT_OVERRIDE}" <<EOF
|
||||||
services:
|
services:
|
||||||
canina-bot:
|
canina-bot:
|
||||||
image:
|
image: \${BOT_IMAGE}
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
- support.env
|
- support.env
|
||||||
@@ -113,7 +113,7 @@ EOF
|
|||||||
echo "Starting containers..."
|
echo "Starting containers..."
|
||||||
docker compose up -d --remove-orphans
|
docker compose up -d --remove-orphans
|
||||||
echo "Starting support-chat bot container..."
|
echo "Starting support-chat bot container..."
|
||||||
docker compose -p canina-support -f /opt/services/ai/canina-bot/compose.yml -f "" 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..."
|
echo "Waiting for backend to start..."
|
||||||
sleep 15
|
sleep 15
|
||||||
|
|||||||
Reference in new issue
Block a user