devzone 1.1.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/.devcontainer/Dockerfile +4 -4
  2. package/.devcontainer/{agent-erreurs.sh → agent-errors.sh} +6 -6
  3. package/.devcontainer/agent-local.sh +2 -2
  4. package/.devcontainer/{agent-modele.messages → agent-model.messages} +1 -1
  5. package/.devcontainer/{agent-modele.sh → agent-model.sh} +5 -5
  6. package/.devcontainer/agent-pod-manifest.sh +4 -4
  7. package/.devcontainer/{agent-droits.sh → agent-rights.sh} +2 -2
  8. package/.devcontainer/agent-session.sh +3 -3
  9. package/.devcontainer/{agent-etat-json.sh → agent-state-json.sh} +6 -6
  10. package/.devcontainer/agent-workspace.sh +1 -1
  11. package/.devcontainer/agent.sh +14 -14
  12. package/.devcontainer/{ia/docker-garde.sh → ai/docker-guard.sh} +1 -1
  13. package/.devcontainer/{ia → ai}/host-models.sh +2 -2
  14. package/.devcontainer/{ia/plugins/devzone-garde-v2.js → ai/plugins/devzone-guard-v2.js} +7 -7
  15. package/.devcontainer/{ia/plugins/devzone-garde.js → ai/plugins/devzone-guard.js} +6 -6
  16. package/.devcontainer/argocd/argocd.sh +94 -93
  17. package/.devcontainer/argocd/{catalogue-argocd.sh → catalog-argocd.sh} +3 -3
  18. package/.devcontainer/argocd/services-hook.sh +8 -8
  19. package/.devcontainer/argocd/services.sh +1 -1
  20. package/.devcontainer/catalog/app.sh +209 -0
  21. package/.devcontainer/catalog/catalog-watcher.sh +130 -0
  22. package/.devcontainer/{catalogue → catalog}/mysql/app.conf +1 -1
  23. package/.devcontainer/catalog/mysql/install.sh +87 -0
  24. package/.devcontainer/catalog/mysql/mysql.sh +262 -0
  25. package/.devcontainer/catalog/mysql/volume.sh +71 -0
  26. package/.devcontainer/catalog.sh +231 -0
  27. package/.devcontainer/chart-direct.sh +1 -1
  28. package/.devcontainer/cluster.sh +222 -224
  29. package/.devcontainer/clusters.sh +41 -41
  30. package/.devcontainer/devcontainer.json +1 -1
  31. package/.devcontainer/devzone +103 -1506
  32. package/.devcontainer/devzone-ai-guard.sh +76 -0
  33. package/.devcontainer/devzone-ai.sh +201 -0
  34. package/.devcontainer/devzone-cluster.sh +210 -0
  35. package/.devcontainer/devzone-modules.sh +126 -0
  36. package/.devcontainer/devzone-platform.sh +189 -0
  37. package/.devcontainer/devzone-repair.sh +94 -0
  38. package/.devcontainer/devzone-services.sh +241 -0
  39. package/.devcontainer/devzone-skill.sh +97 -0
  40. package/.devcontainer/devzone-status.sh +140 -0
  41. package/.devcontainer/devzone-version.sh +78 -0
  42. package/.devcontainer/git-identity.sh +28 -0
  43. package/.devcontainer/gitlab/argocd.sh +2 -2
  44. package/.devcontainer/gitlab/chart.sh +2 -2
  45. package/.devcontainer/gitlab/gitlab.sh +83 -84
  46. package/.devcontainer/gitlab/installation.sh +111 -111
  47. package/.devcontainer/gitlab/secrets.sh +47 -47
  48. package/.devcontainer/gitlab/seed.sh +77 -77
  49. package/.devcontainer/gitlab/test-gitlab.sh +242 -243
  50. package/.devcontainer/help.sh +1 -1
  51. package/.devcontainer/isolation.sh +65 -0
  52. package/.devcontainer/kind-wrapper.sh +45 -0
  53. package/.devcontainer/kube-account.sh +199 -0
  54. package/.devcontainer/kube-config.sh +45 -46
  55. package/.devcontainer/{invite-kube.sh → kube-prompt.sh} +6 -6
  56. package/.devcontainer/kube-reachable.sh +64 -0
  57. package/.devcontainer/{memoire.sh → memory.sh} +1 -1
  58. package/.devcontainer/metrics-server.sh +2 -2
  59. package/.devcontainer/opencode.jsonc +2 -2
  60. package/.devcontainer/packages.sh +228 -0
  61. package/.devcontainer/password.sh +1 -1
  62. package/.devcontainer/ports-auto.sh +152 -153
  63. package/.devcontainer/ports-json.sh +16 -15
  64. package/.devcontainer/ports.sh +127 -123
  65. package/.devcontainer/post-create.sh +52 -52
  66. package/.devcontainer/postgres/postgres.sh +176 -176
  67. package/.devcontainer/rename-legacy-files.sh +103 -0
  68. package/.devcontainer/services-admin.sh +5 -5
  69. package/.devcontainer/skills/devzone/SKILL.md +40 -41
  70. package/.devcontainer/startup.sh +65 -0
  71. package/.devcontainer/{etat-gitops.sh → state-gitops.sh} +1 -1
  72. package/.devcontainer/{etat-json.sh → state-json.sh} +39 -65
  73. package/.devcontainer/{etat-verrou.sh → state-lock.sh} +1 -1
  74. package/.devcontainer/{etat.sh → state.sh} +4 -4
  75. package/.devcontainer/workspace-init.sh +17 -3
  76. package/Makefile +8 -8
  77. package/README.md +195 -194
  78. package/charts/devzone-workspace/templates/statefulset.yaml +1 -1
  79. package/manage/devzone +8 -10
  80. package/manage/scripts/argocd-workspace.sh +1 -1
  81. package/manage/scripts/check-go-layout.sh +40 -0
  82. package/manage/scripts/check-names.sh +61 -0
  83. package/manage/scripts/create-cluster.sh +1 -1
  84. package/manage/scripts/create-mode.sh +2 -2
  85. package/manage/scripts/devzone-create.sh +5 -5
  86. package/manage/scripts/devzone-manifest.sh +3 -3
  87. package/manage/scripts/devzone-update.sh +12 -8
  88. package/manage/scripts/docker-workstation.sh +2 -2
  89. package/manage/scripts/docker.sh +2 -2
  90. package/manage/scripts/{lancer.sh → launch.sh} +10 -51
  91. package/manage/scripts/{migrer-retour.sh → migrate-revert.sh} +4 -4
  92. package/manage/scripts/{migrer.sh → migrate.sh} +8 -14
  93. package/manage/scripts/ports-apps.sh +1 -1
  94. package/manage/scripts/ports-workspace.sh +7 -7
  95. package/manage/scripts/{desinstaller.sh → uninstall.sh} +8 -8
  96. package/manage/scripts/workspace-egress.sh +2 -2
  97. package/manage/scripts/workspace-update.sh +5 -2
  98. package/manage/scripts/workspace-wait.sh +2 -2
  99. package/manage/workspace.sh +4 -4
  100. package/package.json +1 -1
  101. package/.devcontainer/catalogue/app.sh +0 -211
  102. package/.devcontainer/catalogue/catalogue-veilleur.sh +0 -130
  103. package/.devcontainer/catalogue/mysql/installer.sh +0 -87
  104. package/.devcontainer/catalogue/mysql/mysql.sh +0 -262
  105. package/.devcontainer/catalogue/mysql/volume.sh +0 -71
  106. package/.devcontainer/catalogue.sh +0 -231
  107. package/.devcontainer/demarrage.sh +0 -66
  108. package/.devcontainer/docker-relais.sh +0 -149
  109. package/.devcontainer/docker-sans-hote.sh +0 -12
  110. package/.devcontainer/git-identite.sh +0 -28
  111. package/.devcontainer/isolement.sh +0 -65
  112. package/.devcontainer/kind-enveloppe.sh +0 -45
  113. package/.devcontainer/kube-compte.sh +0 -200
  114. package/.devcontainer/kube-joignable.sh +0 -64
  115. package/.devcontainer/paquets.sh +0 -227
  116. /package/.devcontainer/{ia/docker-garde.message → ai/docker-guard.message} +0 -0
  117. /package/.devcontainer/{ia → ai}/host-check.message +0 -0
  118. /package/.devcontainer/{ia → ai}/host-check.sh +0 -0
@@ -1,73 +1,72 @@
1
1
  ---
2
2
  name: devzone
3
- description: Utiliser pour travailler dans un conteneur devzone — modules et catalogue, devzone agent, worktrees, garde-fou.
3
+ description: Use to work in a devzone container — modules and catalog, devzone agent, worktrees, guard.
4
4
  ---
5
5
 
6
- <!-- devzone : skill posée par devzone enable ia -->
6
+ <!-- devzone : skill set by devzone enable ia -->
7
7
 
8
- # Skill devzone (assistants IA)
8
+ # devzone skill (AI assistants)
9
9
 
10
- Cette skill est pour Claude Code (lead) et opencode (développeur) dans un conteneur devzone. Elle est posée par `devzone enable ia` dans `~/.claude/skills/devzone/` et `~/.config/opencode/skills/devzone/` (volumes, gardés aux rebuilds). Pour la personnaliser sans qu'elle soit remplacée, retirer la ligne repère ci-dessus.
10
+ This skill is for Claude Code (lead) and opencode (developer) in a devzone container. It is set by `devzone enable ia` in `~/.claude/skills/devzone/` and `~/.config/opencode/skills/devzone/` (volumes, kept across rebuilds). To customize it without it being replaced, remove the marker line above.
11
11
 
12
- ## Règle d'or
12
+ ## Golden rule
13
13
 
14
- Tout se fait dans le conteneur, avec les commandes `devzone`, jamais en lançant les scripts de `.devcontainer/` à la main.
14
+ Everything is done in the container, with the `devzone` commands, never by running the scripts of `.devcontainer/` by hand.
15
15
 
16
- Dans les tests bats, n'utilise que de faux outils dans un dossier `bin` temporaire : jamais un script système réel (`devzone`, `kubectl`, `helm`…) sous bats.
16
+ In bats tests, only use fake tools in a temporary `bin` folder: never a real system script (`devzone`, `kubectl`, `helm`…) under bats.
17
17
 
18
18
  ## Worktrees
19
19
 
20
- Les projets vivent dans `workspace/` ; les worktrees des tickets sous `workspace/wt/`. Un worktree se crée et se supprime **dans le conteneur** (`git worktree add` / `git worktree remove`). Jamais `git worktree prune` de l'hôte, ni un outil de l'hôte (VS Code, GitHub Desktop). Un worktree créé sur le poste a un chemin absolu que le conteneur ne voit pas : le gérer du côté qui l'a créé.
20
+ Projects live in `workspace/`; ticket worktrees under `workspace/wt/`. A worktree is created and removed **in the container** (`git worktree add` / `git worktree remove`). Never `git worktree prune` from the host, nor a host tool (VS Code, GitHub Desktop). A worktree created on the workstation has an absolute path that the container cannot see: manage it on the side that created it.
21
21
 
22
- ## Modules et catalogue
22
+ ## Modules and catalog
23
23
 
24
- Les modules sont désactivés par défaut, activés à la demande, sans rebuild :
24
+ Modules are disabled by default, enabled on demand, without a rebuild:
25
25
 
26
- - `devzone enable ia` : Claude Code et opencode (versions figées), garde-fou repowarden, configuration opencode par défaut. Se connecter ensuite : `claude` (puis `/login`), `opencode auth login`.
27
- - `devzone disable ia` : désinstalle les assistants ; retire le garde-fou et la configuration opencode par défaut ; garde l'état de `devzone agent`, les journaux `workspace/.agents/` et les connexions.
28
- - `devzone enable kubernetes` : se connecte au cluster de la machine à chaque démarrage et installe metrics-server sur les clusters locaux.
29
- - `devzone enable gitlab` : installe GitLab de test dans le cluster des services (namespace `devzone-gitlab*`).
30
- - `devzone enable postgres` : PostgreSQL partagé, une base par projet (`devzone postgres create <projet>`).
31
- - `devzone enable mysql` : MySQL partagé du catalogue, une base par projet.
32
- - `devzone enable argocd` : Argo CD du cluster des services, interface dans le conteneur sur https://127.0.0.1:8443.
33
- - `devzone disable docker-hote` : retire le socket Docker de l'hôte (puis `make rebuild` sur le poste) ; `devzone enable docker-hote` le remet.
34
- - `devzone disable <module>` : désactive et applique tout de suite.
35
- - `devzone apply` : installe ce qui est actif.
36
- - `devzone repair` : relance relais Docker, gitlab, postgres, mysql, argocd, ports étiquetés et le veilleur du catalogue.
37
- - `devzone status --json` : récapitulatif complet en JSON, pour les outils (aucun secret, commande à lancer par point à traiter).
26
+ - `devzone enable ia`: Claude Code and opencode (pinned versions), repowarden guard, default opencode configuration. Then log in: `claude` (then `/login`), `opencode auth login`.
27
+ - `devzone disable ia`: uninstalls the assistants; removes the guard and the default opencode configuration; keeps the state of `devzone agent`, the logs `workspace/.agents/` and the logins.
28
+ - `devzone enable kubernetes`: connects to the machine's cluster at each startup and installs metrics-server on local clusters.
29
+ - `devzone enable gitlab`: installs a test GitLab in the services cluster (namespace `devzone-gitlab*`).
30
+ - `devzone enable postgres`: shared PostgreSQL, one database per project (`devzone postgres create <project>`).
31
+ - `devzone enable mysql`: shared MySQL of the catalog, one database per project.
32
+ - `devzone enable argocd`: Argo CD of the services cluster, interface in the container at https://127.0.0.1:8443.
33
+ - `devzone disable <module>`: disables and applies at once.
34
+ - `devzone apply`: installs what is active.
35
+ - `devzone repair`: relaunches gitlab, postgres, mysql, argocd, labelled ports and the catalog watcher.
36
+ - `devzone status --json`: full summary in JSON, for tools (no secret; the `command` field of each item gives the command to run).
38
37
 
39
- Le catalogue d'applications se consulte avec `devzone catalog` ; un veilleur applique à chaud les changements de `.devzone.modules`, et `devzone repair` le relance. MySQL se pilote avec `devzone mysql create <projet>`, `devzone mysql list`, `devzone mysql delete <projet>`, `devzone mysql volume [<nom>|--delete <nom>]` et `devzone mysql delete-data` (données gardées par défaut).
38
+ The application catalog is consulted with `devzone catalog`; a watcher applies the changes of `.devzone.modules` on the fly, and `devzone repair` relaunches it. MySQL is driven with `devzone mysql create <project>`, `devzone mysql list`, `devzone mysql delete <project>`, `devzone mysql volume [<name>|--delete <name>]` and `devzone mysql delete-data` (data kept by default).
40
39
 
41
- Le choix est propre à chaque devzone, gardé dans `.devzone.modules` du dossier devzone.
40
+ The choice is specific to each devzone, kept in `.devzone.modules` of the devzone folder.
42
41
 
43
- ## Diriger opencode (devzone agent)
42
+ ## Directing opencode (devzone agent)
44
43
 
45
- `devzone agent <dossier> <fichier-consigne>` dirige opencode sur une consigne, au premier plan ou en parallèle (`&`, une par ticket et par worktree).
46
- - `devzone agent etat` : sessions, modèles écartés et leur cause.
47
- - `devzone agent liberer <modèle>|--tous` : lève un écart de modèle.
44
+ `devzone agent <folder> <instruction-file>` directs opencode on an instruction, in the foreground or in parallel (`&`, one per ticket and per worktree).
45
+ - `devzone agent etat`: sessions, discarded models and their cause.
46
+ - `devzone agent liberer <model>|--tous`: lifts a model discard.
48
47
 
49
- Le journal est `workspace/.agents/<dossier>.log`. `--auto` évite l'attente d'une permission ; `< /dev/null` évite une session muette.
48
+ The log is `workspace/.agents/<folder>.log`. `--auto` avoids waiting for a permission; `< /dev/null` avoids a silent session.
50
49
 
51
- ## Garde-fou et fichiers protégés
50
+ ## Guard and protected files
52
51
 
53
- Avec `ia` actif, le garde-fou repowarden est branché pour Claude Code et opencode : l'agent est arrêté avant de modifier `main`/`develop`, de commiter sans `repowarden cc` ou de contourner les hooks. `repowarden cc -m "…"` pour commiter.
52
+ With `ia` active, the repowarden guard is plugged in for Claude Code and opencode: the agent is stopped before modifying `main`/`develop`, committing without `repowarden cc` or bypassing the hooks. `repowarden cc -m "…"` to commit.
54
53
 
55
- Fichiers de droits protégés (jamais écrits par un agent, listés fixes, qu'aucune variable ne change) : `.devcontainer/opencode/agent.json`, `.devcontainer/opencode.jsonc`, `.repowarden.conf`, `.devcontainer/agent-droits.sh`. Un agent qui les touche est refusé et le changement est annulé dans l'arbre.
54
+ Protected rights files (never written by an agent, fixed list, no variable changes it): `.devcontainer/opencode/agent.json`, `.devcontainer/opencode.jsonc`, `.repowarden.conf`, `.devcontainer/agent-rights.sh`. An agent that touches them is refused and the change is reverted in the tree.
56
55
 
57
- ## Kubernetes seulement
56
+ ## Kubernetes only
58
57
 
59
- devzone se décrit avec **le cluster**, **le pod** et **les nœuds** ; jamais « Docker » pour décrire devzone. Seuls les **pods** sont des conteneurs.
58
+ devzone is described with **the cluster**, **the pod** and **the nodes**; never "Docker" to describe devzone. Only **pods** are containers.
60
59
 
61
- Pour un essai jetable, crée un **pod** ou un **namespace** jetable (`kubectl run`, `kubectl create ns`), puis supprime-le. Ne lance pas `docker`.
60
+ For a disposable test, create a disposable **pod** or **namespace** (`kubectl run`, `kubectl create ns`), then delete it. Do not run `docker`.
62
61
 
63
- Un garde-fou arrête les agents qui lancent `docker` ou `docker-compose` ; `DEVZONE_ALLOW_DOCKER=1` est réservé à une action sur l'**hôte** lui-même, jamais au cluster.
62
+ A guard stops agents that run `docker` or `docker-compose`; `DEVZONE_ALLOW_DOCKER=1` is reserved for an action on the **host** itself, never on the cluster.
64
63
 
65
- ## Services Kubernetes et workspace
64
+ ## Kubernetes services and workspace
66
65
 
67
- Les services (PostgreSQL, MySQL, GitLab, Argo CD) vivent sur le **cluster des services de devzone**, choisi une fois (`devzone cluster CTX`) et gardé dans l'état. Le contexte `devzone` de kubectl est posé sur ce cluster. Namespaces des services : `devzone-*`. `devzone cluster` affiche le cluster et les possibles, `devzone clusters` donne la vue travail/services ; le module `kubernetes` actif relie au cluster de la machine et installe metrics-server au démarrage.
66
+ The services (PostgreSQL, MySQL, GitLab, Argo CD) live on the **devzone services cluster**, chosen once (`devzone cluster CTX`) and kept in the state. The kubectl `devzone` context is set on this cluster. Services namespaces: `devzone-*`. `devzone cluster` shows the cluster and the possible ones, `devzone clusters` gives the work/services view; the active `kubernetes` module connects to the machine's cluster and installs metrics-server at startup.
68
67
 
69
- Le poste de développement peut tourner dans le cluster : `devzone workspace start|stop|status|shell|vscode|copy-to <dossier>|copy-from <dossier>` pilote le workspace Kubernetes (lancé du poste).
68
+ The development workstation can run in the cluster: `devzone workspace start|stop|status|shell|vscode|copy-to <folder>|copy-from <folder>` drives the Kubernetes workspace (run from the workstation).
70
69
 
71
- ## Ce qui revient au mainteneur
70
+ ## What falls to the maintainer
72
71
 
73
- Le développeur (opencode) code, teste et commite `repowarden cc` ; le lead (Claude Code) relit, pousse, fait l'essai réel, suit la CI et peut passer une PR en ready quand tous ses jobs sont verts. Les connexions (GitHub, Claude Code, opencode), la validation des tickets, les approbations de déploiement et le lancement des releases restent au mainteneur. La skill « repowarden » est déjà posée par `repowarden agents init` : vérifie seulement qu'elle est présente.
72
+ The developer (opencode) codes, tests and commits with `repowarden cc`; the lead (Claude Code) reviews, pushes, does the real test, follows CI and can move a PR to ready when all its jobs are green. Logins (GitHub, Claude Code, opencode), ticket validation, deployment approvals and release launches remain with the maintainer. The “repowarden” skill is already placed by `repowarden agents init`: just check that it is present.
@@ -0,0 +1,65 @@
1
+ #!/usr/bin/env bash
2
+ # At each startup, in order: git identity (deduced from the gh account),
3
+ # Kubernetes clusters, gitlab.localhost name and 8929/2224
4
+ # relay of the gitlab module if enabled, relays of the postgres and argocd
5
+ # modules if enabled, port relays to the workstation, grouped credentials
6
+ # (.password), then the summary of what remains to be done (devzone).
7
+ # Sequential: the summary sees the identity just set; the failure of one step
8
+ # does not prevent the following ones.
9
+ # Never a question (gh, kubectl and its authentication plugins): output hidden
10
+ # behind make, a wait would block (see post-create.sh)
11
+ exec </dev/null
12
+ ICI="$(dirname "$0")"
13
+ # Former French names renamed first (#733): the packages check below reads the
14
+ # English names
15
+ bash "$ICI/rename-legacy-files.sh" || echo "startup : legacy names not renamed (devzone repair)"
16
+ bash "$ICI/git-identity.sh" || echo "startup : git identity not handled (devzone start)"
17
+ bash "$ICI/kube-config.sh" || echo "startup : clusters not handled (devzone start)"
18
+ # Token of the limited Kubernetes account (#430): 24 h, renewed at each
19
+ # startup; account set up on the way if missing. Without a chosen services
20
+ # cluster, nothing to do
21
+ bash "$ICI/kube-account.sh" jeton || echo "startup : kubernetes account token not renewed (devzone repair)"
22
+ # gitlab module enabled: /etc/hosts is a Docker mount regenerated at each
23
+ # startup, gitlab.localhost must be set again (ssh, glab and getent go through
24
+ # the system resolver); hote-poser never fails (warning only)
25
+ if bash "$ICI/devzone" is-enabled gitlab; then
26
+ bash "$ICI/gitlab/gitlab.sh" hote-poser || echo "startup : gitlab.localhost name not set (devzone repair)"
27
+ # TCP relay 8929/2224: curl and git over HTTP go through the local loop for
28
+ # *.localhost, the relay must be restarted after each startup
29
+ bash "$ICI/gitlab/gitlab.sh" relay-start || echo "startup : gitlab relay not started (devzone repair)"
30
+ fi
31
+ # postgres module enabled: the relay (port-forward to 127.0.0.1:5432) does not
32
+ # survive the container stop, restarted here after the clusters
33
+ if bash "$ICI/devzone" is-enabled postgres; then
34
+ bash "$ICI/postgres/postgres.sh" relay-start || echo "startup : postgres relay not started (devzone repair)"
35
+ fi
36
+ # argocd module enabled: relay (port-forward to 127.0.0.1:8443), restarted
37
+ # after the clusters like the one of postgres
38
+ if bash "$ICI/devzone" is-enabled argocd; then
39
+ bash "$ICI/argocd/argocd.sh" relay-start || echo "startup : argocd relay not started (devzone repair)"
40
+ fi
41
+ # mysql module enabled: the relay 127.0.0.1:3306, restarted like the one of
42
+ # postgres after each startup
43
+ if bash "$ICI/devzone" is-enabled mysql; then
44
+ bash "$ICI/catalog/mysql/mysql.sh" relay-start || echo "startup : mysql relay not started (devzone repair)"
45
+ fi
46
+ # Port relays to the workstation (#290): the container IP changes at each
47
+ # startup, each relay of the state is recreated; a failure prevents nothing
48
+ bash "$ICI/ports.sh" restart || echo "startup : port relays not restarted (devzone repair)"
49
+ # Automatic port watcher to the workstation (#394, guard #293): a single
50
+ # instance in the background, real context set for this call only.
51
+ # Kubernetes workspace (#517): no watcher, ports go through devzone workspace ports
52
+ if [ "${DEVZONE_WORKSPACE:-}" != kubernetes ]; then
53
+ DEVZONE_PORTS_AUTO_REAL=yes bash "$ICI/ports-auto.sh" demarrer >/dev/null 2>&1 || echo "startup : auto ports watcher not started (devzone repair)"
54
+ fi
55
+ # Application catalog: one <app>=off line per absent application, written
56
+ # once, never an existing line modified (#414)
57
+ bash "$ICI/catalog.sh" sync || echo "startup : catalog not synchronized (devzone repair)"
58
+ # Catalog watcher: applies again on the fly as soon as .devzone.modules changes
59
+ DEVZONE_CATALOG_REAL=yes bash "$ICI/catalog/catalog-watcher.sh" demarrer >/dev/null 2>&1 || echo "startup : catalog watcher not started (devzone repair)"
60
+
61
+ # Grouped view of the credentials (#332), regenerated at each startup; a failure
62
+ # prevents nothing and the content is never displayed
63
+ bash "$ICI/password.sh" regenerer || echo "startup : grouped credentials not updated (devzone repair)"
64
+ echo
65
+ bash "$ICI/devzone"
@@ -3,7 +3,7 @@
3
3
  # The pod has no kubeconfig and its service account cannot read Applications
4
4
  # today: one short read of the root Application tells whether Argo CD manages
5
5
  # the cluster from Git; a refusal or an absence falls back to the workstation
6
- # state. Sourced by devzone, called only when dans_pod is true.
6
+ # state. Sourced by devzone, called only when in_pod is true.
7
7
 
8
8
  # Namespace of the Argo CD of devzone: GITOPS_NS when the includer knows it
9
9
  # (argocd/gitops.sh), otherwise the namespace of the module.
@@ -1,7 +1,8 @@
1
1
  #!/usr/bin/env bash
2
2
  # Machine output of devzone status (--json): stable, versioned JSON object.
3
- # Sourced by devzone: reuses its functions (valeur, description, …), does not
4
- # rewrite etat(). Built only with jq. JSON keys are a contract: French names kept.
3
+ # Sourced by devzone: reuses its functions (value_of, description, …), does not
4
+ # rewrite etat(). Built only with jq. JSON keys are a contract: English names
5
+ # (#733), listed in manage/docs/reference.md.
5
6
 
6
7
  # Adds an entry to $errors: the section that failed and why.
7
8
  add_error() {
@@ -15,7 +16,7 @@ append_alert() {
15
16
  --arg code "$code" \
16
17
  --arg message "$message" \
17
18
  --arg command "$command" \
18
- '. + [{code:$code,message:$message,commande:(if $command=="" then null else $command end)}]' \
19
+ '. + [{code:$code,message:$message,command:(if $command=="" then null else $command end)}]' \
19
20
  <<<"$alerts_json")"
20
21
  }
21
22
 
@@ -29,7 +30,6 @@ state_json() {
29
30
  local platform_name platform_url="" github_json="null"
30
31
  local tools_late_json='[]' tools_command=""
31
32
  local modules_json='[]' m active desc failure_file content state_value failure_value command_value out argocd_repo=""
32
- local docker_host=false docker_host_active=false relay_source
33
33
  local services_cluster="" services_remote=false
34
34
  local work_ctx="" work_internal=false host_ctx=""
35
35
  local clusters_services_raw="" clusters_work_raw="" clusters_command=""
@@ -37,15 +37,15 @@ state_json() {
37
37
  local applications_json='[]'
38
38
  local credentials_raw=""
39
39
  local late_out package frozen installed count
40
- local relay_marker packages_marker packages_names n path wt_out
40
+ local packages_marker packages_names n path wt_out
41
41
  local gh_status gh_code
42
42
 
43
- if v="$(version_du_dossier 2>/dev/null)"; then
43
+ if v="$(folder_version 2>/dev/null)"; then
44
44
  dv_raw="$v"
45
45
  else
46
- add_error devzone "version_du_dossier unavailable"
46
+ add_error devzone "folder_version unavailable"
47
47
  fi
48
- dvp_raw="$(version_publiee 2>/dev/null || true)"
48
+ dvp_raw="$(published_version 2>/dev/null || true)"
49
49
 
50
50
  id_name="$(git config --get user.name 2>/dev/null || true)"
51
51
  id_email="$(git config --get user.email 2>/dev/null || true)"
@@ -55,9 +55,9 @@ state_json() {
55
55
  id_command='gh auth login -s workflow (automatic), or git config --file ~/.config/git/config user.name "<name>" and user.email "<email>"'
56
56
  fi
57
57
 
58
- platform_name="$(plateforme_lue)"
58
+ platform_name="$(platform_read)"
59
59
  if [ "$platform_name" = gitlab ]; then
60
- platform_url="$(url_gitlab_lue)"
60
+ platform_url="$(gitlab_url_read)"
61
61
  else
62
62
  platform_url=""
63
63
  fi
@@ -68,16 +68,16 @@ state_json() {
68
68
  add_error github "gh auth status failed"
69
69
  else
70
70
  if printf '%s\n' "$gh_status" | grep -q "Token scopes:" && ! printf '%s\n' "$gh_status" | grep -q "'workflow'"; then
71
- github_json="$(jq -cn '{connecte:true,workflow:false,commande:"gh auth refresh -h github.com -s workflow"}')"
71
+ github_json="$(jq -cn '{connected:true,workflow:false,command:"gh auth refresh -h github.com -s workflow"}')"
72
72
  else
73
- github_json="$(jq -cn '{connecte:true,workflow:true,commande:null}')"
73
+ github_json="$(jq -cn '{connected:true,workflow:true,command:null}')"
74
74
  fi
75
75
  fi
76
76
  else
77
77
  github_json="null"
78
78
  fi
79
79
 
80
- if late_out="$(outils_retard 2>/dev/null)"; then
80
+ if late_out="$(outdated_tools 2>/dev/null)"; then
81
81
  tools_late_json='[]'
82
82
  while IFS= read -r line; do
83
83
  [ -n "$line" ] || continue
@@ -87,7 +87,7 @@ state_json() {
87
87
  [ -n "$package" ] || continue
88
88
  tools_late_json="$(jq -c \
89
89
  --arg p "$package" --arg f "$frozen" --arg i "$installed" \
90
- '. + [{paquet:$p,figee:$f,installee:$i}]' <<<"$tools_late_json")"
90
+ '. + [{package:$p,frozen:$f,installed:$i}]' <<<"$tools_late_json")"
91
91
  done <<<"$late_out"
92
92
  count="$(jq 'length' <<<"$tools_late_json" 2>/dev/null || echo 0)"
93
93
  if [ "$count" -gt 0 ]; then
@@ -95,18 +95,18 @@ state_json() {
95
95
  fi
96
96
  else
97
97
  tools_late_json="null"
98
- add_error outils "outils_retard unavailable"
98
+ add_error tools "outdated_tools unavailable"
99
99
  fi
100
100
 
101
101
  modules_json='[]'
102
102
  for m in "${MODULES[@]}"; do
103
103
  active=false
104
- [ "$(valeur "$m")" = on ] && active=true
104
+ [ "$(value_of "$m")" = on ] && active=true
105
105
  desc="$(description "$m")"
106
106
  failure_value=""
107
107
  state_value=""
108
108
  command_value=""
109
- if dans_pod && service_module "$m"; then
109
+ if in_pod && service_module "$m"; then
110
110
  # Kubernetes workspace pod (#528): presence by the cluster DNS,
111
111
  # installation from the workstation; no failure marker read here
112
112
  if service_present "$m"; then
@@ -119,7 +119,7 @@ state_json() {
119
119
  command_value="devzone workspace services enable $m"
120
120
  fi
121
121
  elif [ "$active" = true ]; then
122
- failure_file="$(fichier_echec "$m")"
122
+ failure_file="$(failure_marker_file "$m")"
123
123
  if [ -f "$failure_file" ]; then
124
124
  content="$(cat "$failure_file" 2>/dev/null || true)"
125
125
  failure_value="$content"
@@ -147,7 +147,7 @@ state_json() {
147
147
  add_error modules "argocd.sh status unavailable"
148
148
  fi
149
149
  elif [ "$m" = mysql ]; then
150
- if out="$(bash "$ICI/catalogue/mysql/mysql.sh" status 2>/dev/null)"; then
150
+ if out="$(bash "$ICI/catalog/mysql/mysql.sh" status 2>/dev/null)"; then
151
151
  state_value="$out"
152
152
  else
153
153
  state_value=""
@@ -167,37 +167,20 @@ state_json() {
167
167
  --arg state "$state_value" \
168
168
  --arg failure "$failure_value" \
169
169
  --arg command "$command_value" \
170
- '. + [{nom:$name,actif:$active,description:$description,etat:(if $state=="" then null else $state end),echec:(if $failure=="" then null else $failure end),commande:(if $command=="" then null else $command end)}]' \
170
+ '. + [{name:$name,active:$active,description:$description,state:(if $state=="" then null else $state end),failed:(if $failure=="" then null else $failure end),command:(if $command=="" then null else $command end)}]' \
171
171
  <<<"$modules_json")"
172
172
  done
173
173
 
174
- # docker-hote option (#432): absent = on; socket really mounted (same
175
- # source as docker-relais.sh), may differ until make rebuild
176
- # In the Kubernetes workspace (DEVZONE_WORKSPACE=kubernetes), the pod has
177
- # no Docker host socket: the socket is absent (#515)
178
- if [ "${DEVZONE_WORKSPACE:-}" = kubernetes ]; then
179
- docker_host=false
180
- docker_host_active=false
181
- else
182
- if [ "$(valeur docker-hote)" = on ]; then
183
- docker_host=true
184
- fi
185
- relay_source="${DEVZONE_RELAIS_SOURCE:-/var/run/docker-host.sock}"
186
- if [ -e "$relay_source" ]; then
187
- docker_host_active=true
188
- fi
189
- fi
190
-
191
- services_cluster="$(cluster_lu)"
192
- if [ -n "$services_cluster" ] && ! cluster_est_local "$services_cluster"; then
174
+ services_cluster="$(cluster_saved)"
175
+ if [ -n "$services_cluster" ] && ! cluster_is_local "$services_cluster"; then
193
176
  services_remote=true
194
177
  fi
195
178
  clusters_services_raw="$services_cluster"
196
179
  work_ctx="$(kubectl config current-context 2>/dev/null || true)"
197
180
  case "$work_ctx" in
198
181
  kind-gitlab* | kind-devzone*)
199
- host_ctx="$(KUBECONFIG="${DEVZONE_KUBE_HOTE:-$HOME/.kube/hote.config}" kubectl config current-context 2>/dev/null || true)"
200
- if [ -n "$host_ctx" ] && cluster_joignable "$host_ctx" 2>/dev/null; then
182
+ host_ctx="$(KUBECONFIG="${DEVZONE_KUBE_HOST:-$HOME/.kube/hote.config}" kubectl config current-context 2>/dev/null || true)"
183
+ if [ -n "$host_ctx" ] && cluster_reachable "$host_ctx" 2>/dev/null; then
201
184
  work_internal=true
202
185
  fi
203
186
  ;;
@@ -219,36 +202,31 @@ state_json() {
219
202
  add_error ports "ports.sh unavailable"
220
203
  fi
221
204
 
222
- applications_json="$(bash "$ICI/catalogue.sh" json 2>/dev/null || echo '[]')"
205
+ applications_json="$(bash "$ICI/catalog.sh" json 2>/dev/null || echo '[]')"
223
206
  if ! printf '%s' "$applications_json" | jq -e . >/dev/null 2>&1; then
224
207
  applications_json='[]'
225
- add_error modules "catalogue.sh json unavailable"
208
+ add_error modules "catalog.sh json unavailable"
226
209
  fi
227
210
 
228
211
  if [ -f "$RACINE/.password" ]; then
229
212
  credentials_raw="$RACINE/.password"
230
213
  fi
231
214
 
232
- relay_marker="${DEVZONE_RELAIS_MARQUE:-/tmp/devzone-relais-docker.echec}"
233
- if [ -f "$relay_marker" ]; then
234
- msg="$(head -1 "$relay_marker" 2>/dev/null || true)"
235
- append_alert relais_docker "$msg" "devzone repair"
236
- fi
237
- packages_marker="${DEVZONE_PAQUETS_MARQUE:-/tmp/devzone-paquets.echec}"
215
+ packages_marker="${DEVZONE_PACKAGES_MARKER:-/tmp/devzone-packages.failed}"
238
216
  if [ -f "$packages_marker" ]; then
239
217
  packages_names=""
240
218
  while IFS= read -r n; do
241
219
  [ -n "$n" ] || continue
242
220
  packages_names="${packages_names:+$packages_names, }$n"
243
221
  done < "$packages_marker"
244
- append_alert paquets "$packages_names" "devzone packages"
222
+ append_alert packages "$packages_names" "devzone packages"
245
223
  fi
246
- wt_out="$(worktrees_absents 2>/dev/null || true)"
224
+ wt_out="$(missing_worktrees 2>/dev/null || true)"
247
225
  while IFS= read -r path; do
248
226
  [ -n "$path" ] || continue
249
227
  append_alert worktree "$path missing here (created outside the container?)" ""
250
228
  done <<<"$wt_out"
251
- if [ -n "$services_cluster" ] && ! cluster_est_local "$services_cluster"; then
229
+ if [ -n "$services_cluster" ] && ! cluster_is_local "$services_cluster"; then
252
230
  append_alert cluster_distant "remote cluster: $services_cluster — services on a remote cluster" ""
253
231
  fi
254
232
  if [ "$work_internal" = true ]; then
@@ -258,7 +236,7 @@ state_json() {
258
236
  argocd_repo="$(conf_get argocd repo)"
259
237
 
260
238
  jq -n \
261
- --argjson schema 1 \
239
+ --argjson schema 2 \
262
240
  --arg dv "$dv_raw" \
263
241
  --arg dvp "$dvp_raw" \
264
242
  --argjson id_ok "$id_ok" \
@@ -272,8 +250,6 @@ state_json() {
272
250
  --arg tools_command "$tools_command" \
273
251
  --argjson modules "$modules_json" \
274
252
  --arg argocd_repo "$argocd_repo" \
275
- --argjson docker_host "$docker_host" \
276
- --argjson docker_host_active "$docker_host_active" \
277
253
  --arg clusters_services "$clusters_services_raw" \
278
254
  --argjson services_remote "$services_remote" \
279
255
  --arg clusters_work "$clusters_work_raw" \
@@ -286,20 +262,18 @@ state_json() {
286
262
  --argjson errors "$errors" \
287
263
  '{
288
264
  schema: $schema,
289
- devzone: { version: (if $dv=="" then null else $dv end), disponible: (if $dvp=="" then null else $dvp end) },
290
- identite_git: { ok: $id_ok, nom: (if $id_name=="" then null else $id_name end), email: (if $id_email=="" then null else $id_email end), commande: (if $id_command=="" then null else $id_command end) },
291
- plateforme: { nom: $platform_name, url: (if $platform_url=="" then null else $platform_url end), github: $github },
265
+ devzone: { version: (if $dv=="" then null else $dv end), available: (if $dvp=="" then null else $dvp end) },
266
+ git_identity: { ok: $id_ok, name: (if $id_name=="" then null else $id_name end), email: (if $id_email=="" then null else $id_email end), command: (if $id_command=="" then null else $id_command end) },
267
+ platform: { name: $platform_name, url: (if $platform_url=="" then null else $platform_url end), github: $github },
292
268
  argocd_repo: (if $argocd_repo == "" then null else $argocd_repo end),
293
- outils: { retards: $tools_late, commande: (if $tools_command=="" then null else $tools_command end) },
269
+ tools: { outdated: $tools_late, command: (if $tools_command=="" then null else $tools_command end) },
294
270
  modules: $modules,
295
- docker_hote: $docker_host,
296
- docker_hote_actif: $docker_host_active,
297
- clusters: { services: (if $clusters_services=="" then null else $clusters_services end), services_distant: $services_remote, travail: (if $clusters_work=="" then null else $clusters_work end), travail_interne: $work_internal, commande: (if $clusters_command=="" then null else $clusters_command end) },
271
+ clusters: { services: (if $clusters_services=="" then null else $clusters_services end), services_remote: $services_remote, work: (if $clusters_work=="" then null else $clusters_work end), internal_work: $work_internal, command: (if $clusters_command=="" then null else $clusters_command end) },
298
272
  ports: $ports,
299
273
  applications: (if $applications=="" then null else $applications end),
300
- identifiants: (if $credentials=="" then null else $credentials end),
301
- alertes: $alerts,
302
- erreurs: $errors
274
+ credentials: (if $credentials=="" then null else $credentials end),
275
+ alerts: $alerts,
276
+ errors: $errors
303
277
  }'
304
278
  }
305
279
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # Write lock of the module state, sourced by etat.sh (#417 and #476)
2
+ # Write lock of the module state, sourced by state.sh (#417 and #476)
3
3
  # state_lock_take / state_lock_release write lock
4
4
 
5
5
  # Exclusive lock (mkdir): one write at a time. A vanished holder is guessed
@@ -15,9 +15,9 @@
15
15
  # state_init [modules…] creates the state if it is missing
16
16
 
17
17
  # Write lock (#476): state_lock_take, state_lock_release
18
- # shellcheck source=SCRIPTDIR/etat-verrou.sh
18
+ # shellcheck source=SCRIPTDIR/state-lock.sh
19
19
  # shellcheck disable=SC1091
20
- . "$(dirname "${BASH_SOURCE[0]}")/etat-verrou.sh"
20
+ . "$(dirname "${BASH_SOURCE[0]}")/state-lock.sh"
21
21
 
22
22
  # Abort under lock: the temporary file goes, the lock is released
23
23
  state_abort() {
@@ -121,7 +121,7 @@ state_default() {
121
121
  # cluster= line of the state expects this context, not "devzone" (services cluster)
122
122
  host_context_of_cluster() {
123
123
  local cluster="$1" host ctx
124
- host="${DEVZONE_KUBE_HOTE:-$HOME/.kube/hote.config}"
124
+ host="${DEVZONE_KUBE_HOST:-$HOME/.kube/hote.config}"
125
125
  while IFS= read -r ctx; do
126
126
  [ -n "$ctx" ] || continue
127
127
  # The "devzone" context is set on the services cluster: we look for the
@@ -140,7 +140,7 @@ host_context_of_cluster() {
140
140
  # cluster= of the devzone context); returns 1 otherwise.
141
141
  state_rebuild() {
142
142
  local namespaces m v stage seen=0 code=0 cluster_ctx cluster_host label
143
- label="${CLUSTER_ETIQUETTE:-app.kubernetes.io/managed-by=devzone}"
143
+ label="${CLUSTER_LABEL:-app.kubernetes.io/managed-by=devzone}"
144
144
  command -v kubectl >/dev/null 2>&1 || return 1
145
145
  namespaces="$(kubectl get namespaces -l "$label" -o name 2>/dev/null || true)"
146
146
  [ -n "$namespaces" ] || return 1
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # Why: post-create.sh and demarrage.sh never run in the Kubernetes workspace
2
+ # Why: post-create.sh and startup.sh never run in the Kubernetes workspace
3
3
  # pod (#503). This script installs the devzone tools when the container starts.
4
4
  # Each step logs one "devzone init:" line, and a failure never stops the next
5
5
  # step. No Docker socket is used and no kubeconfig is fabricated.
@@ -58,12 +58,25 @@ init_modules() {
58
58
  fi
59
59
  }
60
60
 
61
+ # Former French names renamed to English (#733). Idempotent: the script logs one
62
+ # line per rename, and a pair already renamed is left alone
63
+ init_legacy_names() {
64
+ bash "$HERE/rename-legacy-files.sh" || log "legacy names: not renamed"
65
+ }
66
+
61
67
  init_prompt() {
62
68
  local bashrc="$HOME/.bashrc"
63
69
  if ! touch "$bashrc" 2>/dev/null; then
64
70
  log "prompt: cannot write $bashrc"
65
71
  return 0
66
72
  fi
73
+ # Block written before the rename invite-kube.sh -> kube-prompt.sh: the file
74
+ # no longer exists, every prompt would fail (migration, idempotent)
75
+ if grep -qE 'invite-kube\.sh|devzone_invite_kube' "$bashrc" 2>/dev/null; then
76
+ sed -i -e 's#/\.devcontainer/invite-kube\.sh#/.devcontainer/kube-prompt.sh#' \
77
+ -e 's#devzone_invite_kube#devzone_kube_prompt#' "$bashrc"
78
+ log "prompt block migrated to kube-prompt.sh"
79
+ fi
67
80
  if grep -qF "$PROMPT_START" "$bashrc" 2>/dev/null; then
68
81
  log "prompt block already present"
69
82
  return 0
@@ -71,8 +84,8 @@ init_prompt() {
71
84
  cat >>"$bashrc" <<'PROMPT'
72
85
  # >>> devzone prompt >>>
73
86
  # shellcheck source=/dev/null
74
- . /usr/local/share/devzone/.devcontainer/invite-kube.sh
75
- PS1='$(devzone_invite_kube) '"$PS1"
87
+ . /usr/local/share/devzone/.devcontainer/kube-prompt.sh
88
+ PS1='$(devzone_kube_prompt) '"$PS1"
76
89
  # <<< devzone prompt <<<
77
90
  PROMPT
78
91
  log "prompt block added to $bashrc"
@@ -81,5 +94,6 @@ PROMPT
81
94
  init_safe_directory
82
95
  init_repowarden
83
96
  init_modules
97
+ init_legacy_names
84
98
  init_prompt
85
99
  log "done"
package/Makefile CHANGED
@@ -19,36 +19,36 @@ help: ## Liste les commandes
19
19
  @grep -E '^[a-z-]+:.*## ' $(MAKEFILE_LIST) | awk -F':.*## ' '{printf " make %-16s %s\n", $$1, $$2}'
20
20
 
21
21
  # up et rebuild : étapes affichées, journal complet dans .devzone.log, question
22
- # posée dans le conteneur signalée au lieu d'attendre (manage/scripts/lancer.sh)
22
+ # posée dans le conteneur signalée au lieu d'attendre (manage/scripts/launch.sh)
23
23
  # En workspace Kubernetes, up/shell/stop pilotent le pod (#472).
24
24
  up: hors-conteneur ## Lance le conteneur (le crée si absent)
25
- @bash manage/scripts/poste.sh up "$(CURDIR)"; c=$$?; [ $$c = 3 ] || exit $$c; bash manage/scripts/lancer.sh up "$(CURDIR)"
25
+ @bash manage/scripts/poste.sh up "$(CURDIR)"; c=$$?; [ $$c = 3 ] || exit $$c; bash manage/scripts/launch.sh up "$(CURDIR)"
26
26
 
27
27
  shell: hors-conteneur ## Ouvre un shell dans le conteneur
28
- @bash manage/scripts/poste.sh shell "$(CURDIR)"; c=$$?; [ $$c = 3 ] || exit $$c; bash manage/scripts/lancer.sh up "$(CURDIR)" && $(DC) exec $(WS) bash
28
+ @bash manage/scripts/poste.sh shell "$(CURDIR)"; c=$$?; [ $$c = 3 ] || exit $$c; bash manage/scripts/launch.sh up "$(CURDIR)" && $(DC) exec $(WS) bash
29
29
 
30
30
  stop: hors-conteneur ## Arrête le conteneur (état conservé)
31
31
  @bash manage/scripts/poste.sh stop "$(CURDIR)"; c=$$?; [ $$c = 3 ] || exit $$c; ids=$$(docker ps -q $(FILTRE)); if [ -z "$$ids" ]; then echo "déjà arrêté"; else docker stop $$ids >/dev/null && echo "devzone arrêté"; fi
32
32
 
33
33
  down: hors-conteneur ## Supprime le conteneur (volumes et image conservés)
34
34
  @ids=$$(docker ps -aq $(FILTRE)); if [ -z "$$ids" ]; then echo "aucun conteneur"; else \
35
- docker inspect $$ids --format 'IMAGE={{.Config.Image}}{{range .Mounts}}{{if eq .Destination "/var/lib/docker"}} DIND={{.Name}}{{end}}{{end}}' | head -1 | tr ' ' '\n' > .devzone.etat; \
35
+ docker inspect $$ids --format 'IMAGE={{.Config.Image}}{{range .Mounts}}{{if eq .Destination "/var/lib/docker"}} DIND={{.Name}}{{end}}{{end}}' | head -1 | tr ' ' '\n' > .devzone.state; \
36
36
  docker rm -f $$ids >/dev/null && echo "devzone supprimé (désinstallation complète : make desinstaller)"; fi
37
37
 
38
38
  rebuild: hors-conteneur ## Reconstruit de zéro (après modif de .devcontainer/)
39
- @bash manage/scripts/poste.sh rebuild "$(CURDIR)"; c=$$?; [ $$c = 3 ] || exit $$c; bash manage/scripts/lancer.sh rebuild "$(CURDIR)"
39
+ @bash manage/scripts/poste.sh rebuild "$(CURDIR)"; c=$$?; [ $$c = 3 ] || exit $$c; bash manage/scripts/launch.sh rebuild "$(CURDIR)"
40
40
 
41
41
  status: hors-conteneur ## État du conteneur
42
42
  @docker ps -a $(FILTRE) --format '{{.Status}}' | grep . || echo "aucun conteneur"
43
43
 
44
44
  test-fonctionnel: hors-conteneur ## Tests fonctionnels : devzone isolé, construit puis supprimé (5 à 10 min)
45
- @bash manage/test/fonctionnel.sh
45
+ @bash manage/test/functional.sh
46
46
 
47
47
  test-cli: hors-conteneur ## Tests de la CLI dans un vrai terminal : devzone isolé, puis supprimé (10 à 15 min)
48
48
  @bash manage/test/cli-terminal.sh
49
49
 
50
50
  desinstaller: hors-conteneur ## Supprime tout ce que devzone a créé, après confirmation (GARDER=connexions : garde les connexions)
51
- @GARDER="$(GARDER)" bash manage/scripts/desinstaller.sh
51
+ @GARDER="$(GARDER)" bash manage/scripts/uninstall.sh
52
52
 
53
53
  uninstall: hors-conteneur ## Supprime tout ce que devzone a créé, après confirmation (alias de desinstaller)
54
- @GARDER="$(GARDER)" bash manage/scripts/desinstaller.sh
54
+ @GARDER="$(GARDER)" bash manage/scripts/uninstall.sh