From e4ade513ced4cd9f7f03f2f5f5d016fbe8818ead Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Tue, 18 Jun 2024 21:49:00 +0100 Subject: [PATCH] feat: Add start-ai, build-ai, and force-build-ai scripts for AI services This commit adds three new scripts, start-ai, build-ai, and force-build-ai, to the package.json file. These scripts are used to start, build, and force-build the AI services respectively. They are configured to export environment variables, run the prerun script, and execute the necessary docker compose commands with the specified configuration file. This addition enhances the development workflow by providing convenient commands for managing the AI services. --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index 23faf19a5b..3b31657fdd 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,9 @@ "fix": "npm run fix-lint", "status-check": "bash ./Tests/Scripts/status-check.sh $npm_config_services", "start": "export $(grep -v '^#' config.env | xargs) && docker compose up --remove-orphans -d $npm_config_services && npm run status-check", + "start-ai": "export $(grep -v '^#' config.env | xargs) && npm run prerun && docker compose -f docker-compose.ai.yml up --remove-orphans -d $npm_config_services", + "build-ai": "export $(grep -v '^#' config.env | xargs) && npm run prerun && docker compose -f docker-compose.ai.yml build $npm_config_services", + "force-build-ai": "export $(grep -v '^#' config.env | xargs) && npm run prerun && docker compose -f docker-compose.ai.yml build --no-cache $npm_config_services", "ps": "export $(grep -v '^#' config.env | xargs) && docker compose ps", "save-logs": "export $(grep -v '^#' config.env | xargs) && docker compose logs --tail=100000 $npm_config_services > logs.txt", "logs": "export $(grep -v '^#' config.env | xargs) && docker compose logs --tail=100 -f $npm_config_services",