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.
This commit is contained in:
Simon Larsen
2024-06-18 21:49:00 +01:00
parent 3c2af1dc38
commit e4ade513ce

View File

@@ -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",