Files
aimsight-libredesk/.vscode/tasks.json
T
maximeandClaude Opus 5.5 3e0b5d03a3 Relecture : le serveur ne construit jamais l image, réseau retenu par le .env, tâches arrêter
- docs/production.md : seuls compose.yml, compose.reseau.yml et verifier.py vont sur le serveur ; docker compose up -d --no-build ; COMPOSE_FILE dans ~/ollama/.env ; relance par Compose plutôt que docker start ; docker logout après le pull.
- verifier.py lisible par Python 3.8/3.9.
- Tâches « Instance de test : arrêter » et « Ollama : arrêter ».

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 09:57:55 +01:00

132 lines
4.3 KiB
JSON

{
"version": "2.0.0",
"options": { "cwd": "${workspaceFolder}" },
"tasks": [
{
"label": "Tests",
"type": "shell",
"command": "python3 -m unittest discover -s tests -v",
"group": { "kind": "test", "isDefault": true },
"problemMatcher": []
},
{
"label": "Instance de test : démarrer",
"type": "shell",
"command": "bash instance-de-test/demarrer.sh '${input:motDePasse}'",
"problemMatcher": []
},
{
"label": "Instance de test : préparer",
"type": "shell",
"command": "python3 instance-de-test/preparer.py '${input:motDePasse}'",
"problemMatcher": []
},
{
"label": "Instance de test : arrêter",
"type": "shell",
"command": "docker compose -f instance-de-test/docker-compose.yml -p ldtest stop",
"problemMatcher": []
},
{
"label": "Instance de test : effacer",
"type": "shell",
"command": "[ \"${input:confirmation}\" = oui ] || { echo annulé; exit 1; } && docker compose -f instance-de-test/docker-compose.yml -p ldtest down -v",
"problemMatcher": []
},
{
"label": "Instance de test : brancher sur Ollama",
"type": "shell",
"command": "eval \"$(grep '^export ANTHROPIC_API_KEY=' .env)\" && python3 instance-de-test/configurer_ia.py '${input:motDePasse}' http://ollama:11434/v1 bge-m3:567m",
"problemMatcher": []
},
{
"label": "Instance de test : essai des brouillons",
"type": "shell",
"command": "python3 instance-de-test/essayer_brouillons.py '${input:motDePasse}'",
"problemMatcher": []
},
{
"label": "Instance de test : empreintes des extraits",
"type": "shell",
"command": "bash instance-de-test/empreintes.sh",
"problemMatcher": []
},
{
"label": "Ollama : construire",
"type": "shell",
"command": "docker compose -f ollama/compose.yml build",
"problemMatcher": []
},
{
"label": "Ollama : lancer (instance de test)",
"type": "shell",
"command": "RESEAU_LIBREDESK=ldtest_libredesk OLLAMA_PORT=11435 docker compose -f ollama/compose.yml -f ollama/compose.reseau.yml up -d",
"problemMatcher": []
},
{
"label": "Ollama : arrêter",
"type": "shell",
"command": "docker compose -f ollama/compose.yml stop",
"problemMatcher": []
},
{
"label": "Ollama : vérifier (poste, port 11435)",
"type": "shell",
"command": "python3 ollama/verifier.py http://127.0.0.1:11435/v1",
"problemMatcher": []
},
{
"label": "Import : simulation (instance de test)",
"type": "shell",
"command": "set -a && . instance-de-test/.env && set +a && python3 -m base_connaissances.importer",
"problemMatcher": []
},
{
"label": "Import : ÉCRIRE (instance de test)",
"type": "shell",
"command": "set -a && . instance-de-test/.env && set +a && python3 -m base_connaissances.importer --ecrire",
"problemMatcher": []
},
{
"label": "Import : simulation (PRODUCTION)",
"type": "shell",
"command": "set -a && . ./.env && set +a && LIBREDESK_URL='${input:urlProduction}' python3 -m base_connaissances.importer",
"problemMatcher": []
},
{
"label": "Import : ÉCRIRE (PRODUCTION)",
"type": "shell",
"command": "[ \"${input:confirmationProduction}\" = oui ] || { echo annulé; exit 1; } && set -a && . ./.env && set +a && LIBREDESK_URL='${input:urlProduction}' python3 -m base_connaissances.importer --ecrire",
"problemMatcher": []
}
],
"inputs": [
{
"id": "motDePasse",
"type": "promptString",
"description": "Mot de passe de l'utilisateur System de l'instance de test",
"default": "TestAdmin-2026!",
"password": true
},
{
"id": "urlProduction",
"type": "promptString",
"description": "Adresse de LibreDesk en PRODUCTION (les clés admin temporaires viennent de .env)"
},
{
"id": "confirmation",
"type": "pickString",
"description": "Effacer l'instance de test et toutes ses données ?",
"options": ["non", "oui"],
"default": "non"
},
{
"id": "confirmationProduction",
"type": "pickString",
"description": "ÉCRIRE dans la base de connaissances de la PRODUCTION ?",
"options": ["non", "oui"],
"default": "non"
}
]
}