devzone 0.42.0 → 0.42.1

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 (43) hide show
  1. package/.devcontainer/agent.sh +1 -1
  2. package/.devcontainer/argocd/apps.sh +2 -2
  3. package/.devcontainer/argocd/argocd.sh +22 -10
  4. package/.devcontainer/catalogue/app.sh +22 -4
  5. package/.devcontainer/catalogue/catalogue-veilleur.sh +2 -2
  6. package/.devcontainer/catalogue/mysql/mysql.sh +41 -28
  7. package/.devcontainer/catalogue/mysql/volume.sh +5 -5
  8. package/.devcontainer/catalogue.sh +29 -35
  9. package/.devcontainer/cluster.sh +11 -11
  10. package/.devcontainer/clusters.sh +1 -1
  11. package/.devcontainer/command-aliases.sh +152 -2
  12. package/.devcontainer/demarrage.sh +18 -15
  13. package/.devcontainer/devcontainer.json +1 -1
  14. package/.devcontainer/devzone +106 -118
  15. package/.devcontainer/docker-relais.sh +2 -2
  16. package/.devcontainer/docker-sans-hote.sh +1 -1
  17. package/.devcontainer/etat-json.sh +16 -16
  18. package/.devcontainer/etat.sh +4 -4
  19. package/.devcontainer/gitlab/gitlab.sh +24 -12
  20. package/.devcontainer/gitlab/installation.sh +9 -9
  21. package/.devcontainer/gitlab/secrets.sh +2 -2
  22. package/.devcontainer/gitlab/test-gitlab-restes.sh +16 -0
  23. package/.devcontainer/gitlab/test-gitlab.sh +14 -13
  24. package/.devcontainer/help.sh +40 -0
  25. package/.devcontainer/kube-compte.sh +2 -2
  26. package/.devcontainer/kube-config.sh +1 -1
  27. package/.devcontainer/kube-joignable.sh +2 -0
  28. package/.devcontainer/opencode.jsonc +1 -1
  29. package/.devcontainer/paquets.sh +31 -18
  30. package/.devcontainer/ports-auto.sh +6 -6
  31. package/.devcontainer/ports-json.sh +34 -0
  32. package/.devcontainer/ports.sh +34 -43
  33. package/.devcontainer/post-create.sh +3 -3
  34. package/.devcontainer/postgres/postgres.sh +42 -30
  35. package/.devcontainer/services-admin.sh +1 -1
  36. package/.devcontainer/skills/devzone/SKILL.md +16 -16
  37. package/README.md +17 -17
  38. package/manage/scripts/docker-workstation.sh +73 -0
  39. package/manage/scripts/lancer.sh +1 -1
  40. package/manage/scripts/migrer-retour.sh +1 -0
  41. package/manage/scripts/migrer.sh +6 -0
  42. package/manage/scripts/services-workspace.sh +1 -2
  43. package/package.json +1 -1
@@ -4,6 +4,10 @@
4
4
  # kubectl_flag, copy_to and copy_from. Nothing is ever deleted except by
5
5
  # clean-docker, after confirmation. Run from the devzone workstation folder.
6
6
 
7
+ # Docker workstation sleep on migrate (stop here, start in migrer-retour.sh).
8
+ # shellcheck source=manage/scripts/docker-workstation.sh
9
+ . "$(dirname "${BASH_SOURCE[0]}")/docker-workstation.sh"
10
+
7
11
  # vscode home in the pod and image used to copy Docker volumes.
8
12
  POD_HOME="/home/vscode"
9
13
  COPY_IMAGE="${DEVZONE_IMAGE_COPIE:-busybox:1.36}"
@@ -192,9 +196,11 @@ record_workspace() {
192
196
  }
193
197
 
194
198
  # Step 5: switch, workspace=kubernetes recorded on workstation; nothing is deleted.
199
+ # The Docker workstation containers and port relays are stopped, not removed (#517).
195
200
  step_switch() {
196
201
  echo "▶ [5/5] switch: workspace=kubernetes in .devzone.modules"
197
202
  record_workspace kubernetes || { fail "cannot write .devzone.modules"; return 1; }
203
+ docker_workstation_stop "$PWD"
198
204
  echo " ✔ done; Docker workstation and its volumes are intact (rollback: devzone workspace revert)"
199
205
  }
200
206
 
@@ -125,8 +125,7 @@ services_run() {
125
125
  return 1
126
126
  fi
127
127
  echo "▶ $action $service in the pod $POD…"
128
- # The installer of the pod still spells --oui (#510): --yes translated
129
- set -- "${@/--yes/--oui}"
128
+ # The installer of the pod takes --yes (#557) : no translation, no warning
130
129
  # shellcheck disable=SC2046
131
130
  printf '%s\n' "$token" | kubectl $(drapeau_kubectl) exec -i "$POD" --namespace "$NAMESPACE" \
132
131
  -c workspace -- bash "$SERVICES_ADMIN_SCRIPT" "$action" "$service" "$@" || code=$?
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devzone",
3
- "version": "0.42.0",
3
+ "version": "0.42.1",
4
4
  "description": "Ton poste de développement Linux, prêt en une commande, identique sur Mac, Windows et Linux.",
5
5
  "license": "GPL-3.0-only",
6
6
  "repository": {