devzone 0.42.0 → 0.43.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.
- package/.devcontainer/Dockerfile +1 -1
- package/.devcontainer/agent.sh +1 -1
- package/.devcontainer/argocd/apps.sh +2 -2
- package/.devcontainer/argocd/argocd.sh +22 -10
- package/.devcontainer/argocd/catalogue-argocd.sh +4 -0
- package/.devcontainer/argocd/gitops-gitlab.sh +127 -0
- package/.devcontainer/argocd/gitops.sh +12 -2
- package/.devcontainer/argocd/services-hook.sh +181 -0
- package/.devcontainer/catalogue/app.sh +29 -12
- package/.devcontainer/catalogue/catalogue-veilleur.sh +2 -2
- package/.devcontainer/catalogue/mysql/installer.sh +9 -8
- package/.devcontainer/catalogue/mysql/mysql.sh +42 -29
- package/.devcontainer/catalogue/mysql/volume.sh +5 -5
- package/.devcontainer/catalogue.sh +30 -36
- package/.devcontainer/chart-direct.sh +49 -0
- package/.devcontainer/cluster.sh +11 -11
- package/.devcontainer/clusters.sh +1 -1
- package/.devcontainer/command-aliases.sh +152 -2
- package/.devcontainer/demarrage.sh +18 -15
- package/.devcontainer/devcontainer.json +1 -1
- package/.devcontainer/devzone +114 -122
- package/.devcontainer/docker-relais.sh +2 -2
- package/.devcontainer/docker-sans-hote.sh +1 -1
- package/.devcontainer/etat-json.sh +16 -16
- package/.devcontainer/etat.sh +4 -4
- package/.devcontainer/gitlab/argocd.sh +54 -0
- package/.devcontainer/gitlab/chart.sh +39 -0
- package/.devcontainer/gitlab/gitlab.sh +35 -180
- package/.devcontainer/gitlab/installation.sh +34 -47
- package/.devcontainer/gitlab/secrets.sh +2 -2
- package/.devcontainer/gitlab/seed.sh +204 -0
- package/.devcontainer/gitlab/test-gitlab-restes.sh +16 -0
- package/.devcontainer/gitlab/test-gitlab.sh +14 -13
- package/.devcontainer/help.sh +40 -0
- package/.devcontainer/kube-compte.sh +2 -2
- package/.devcontainer/kube-config.sh +1 -1
- package/.devcontainer/kube-joignable.sh +2 -0
- package/.devcontainer/opencode.jsonc +1 -1
- package/.devcontainer/paquets.sh +31 -18
- package/.devcontainer/ports-auto.sh +6 -6
- package/.devcontainer/ports-json.sh +34 -0
- package/.devcontainer/ports.sh +34 -43
- package/.devcontainer/post-create.sh +3 -3
- package/.devcontainer/postgres/postgres.sh +46 -32
- package/.devcontainer/services-admin.sh +13 -3
- package/.devcontainer/skills/devzone/SKILL.md +16 -16
- package/.devcontainer/versions.env +1 -1
- package/README.md +72 -40
- package/charts/devzone-gitlab/Chart.lock +9 -0
- package/charts/devzone-gitlab/Chart.yaml +15 -0
- package/charts/devzone-gitlab/values.yaml +94 -0
- package/charts/devzone-mysql/values.yaml +3 -3
- package/charts/devzone-postgres/values.yaml +2 -2
- package/manage/scripts/check-charts.sh +67 -19
- package/manage/scripts/docker-workstation.sh +73 -0
- package/manage/scripts/lancer.sh +1 -1
- package/manage/scripts/migrer-retour.sh +1 -0
- package/manage/scripts/migrer.sh +6 -0
- package/manage/scripts/services-workspace.sh +11 -3
- package/package.json +1 -1
- package/.devcontainer/catalogue/mysql/manifeste.yaml +0 -81
- package/.devcontainer/gitlab/runner-values.yaml +0 -27
- package/.devcontainer/gitlab/values.yaml +0 -83
- package/.devcontainer/postgres/postgres.yaml +0 -84
|
@@ -13,51 +13,54 @@ exec </dev/null
|
|
|
13
13
|
ICI="$(dirname "$0")"
|
|
14
14
|
# Relais du socket Docker d'abord (#293) : sans lui, les docker exec longs
|
|
15
15
|
# (kind, modules) sont coupés au bout de 0,5 s sous Docker Desktop
|
|
16
|
-
DEVZONE_RELAIS_REEL=oui bash "$ICI/docker-relais.sh" || echo "démarrage : relais Docker non corrigé (devzone
|
|
17
|
-
bash "$ICI/git-identite.sh" || echo "démarrage : identité git non traitée (devzone
|
|
18
|
-
bash "$ICI/kube-config.sh" || echo "démarrage : clusters non traités (devzone
|
|
16
|
+
DEVZONE_RELAIS_REEL=oui bash "$ICI/docker-relais.sh" || echo "démarrage : relais Docker non corrigé (devzone repair)"
|
|
17
|
+
bash "$ICI/git-identite.sh" || echo "démarrage : identité git non traitée (devzone start)"
|
|
18
|
+
bash "$ICI/kube-config.sh" || echo "démarrage : clusters non traités (devzone start)"
|
|
19
19
|
# Jeton du compte Kubernetes limité (#430) : 24 h, renouvelé à chaque
|
|
20
20
|
# démarrage ; compte posé au passage s'il manque. Sans cluster des services
|
|
21
21
|
# choisi, rien à faire
|
|
22
|
-
bash "$ICI/kube-compte.sh" jeton || echo "démarrage : jeton du compte kubernetes non renouvelé (devzone
|
|
22
|
+
bash "$ICI/kube-compte.sh" jeton || echo "démarrage : jeton du compte kubernetes non renouvelé (devzone repair)"
|
|
23
23
|
# Module gitlab actif : /etc/hosts est un montage Docker régénéré à chaque
|
|
24
24
|
# démarrage, gitlab.localhost doit être re-pose (ssh, glab et getent passent
|
|
25
25
|
# par le résolveur système) ; hote-poser n'échoue jamais (avertissement seul)
|
|
26
26
|
if bash "$ICI/devzone" is-enabled gitlab; then
|
|
27
|
-
bash "$ICI/gitlab/gitlab.sh" hote-poser || echo "démarrage : nom gitlab.localhost non posé (devzone
|
|
27
|
+
bash "$ICI/gitlab/gitlab.sh" hote-poser || echo "démarrage : nom gitlab.localhost non posé (devzone repair)"
|
|
28
28
|
# Relais TCP 8929/2224 : curl et git en HTTP passent par la boucle locale
|
|
29
29
|
# pour *.localhost, le relais doit être relancé après chaque démarrage
|
|
30
|
-
bash "$ICI/gitlab/gitlab.sh"
|
|
30
|
+
bash "$ICI/gitlab/gitlab.sh" relay-start || echo "démarrage : relais gitlab non lancé (devzone repair)"
|
|
31
31
|
fi
|
|
32
32
|
# Module postgres actif : le relais (port-forward vers 127.0.0.1:5432) ne
|
|
33
33
|
# survit pas à l'arrêt du conteneur, relancé ici après les clusters
|
|
34
34
|
if bash "$ICI/devzone" is-enabled postgres; then
|
|
35
|
-
bash "$ICI/postgres/postgres.sh"
|
|
35
|
+
bash "$ICI/postgres/postgres.sh" relay-start || echo "démarrage : relais postgres non lancé (devzone repair)"
|
|
36
36
|
fi
|
|
37
37
|
# Module argocd actif : relais (port-forward vers 127.0.0.1:8443), relancé
|
|
38
38
|
# après les clusters comme celui de postgres
|
|
39
39
|
if bash "$ICI/devzone" is-enabled argocd; then
|
|
40
|
-
bash "$ICI/argocd/argocd.sh"
|
|
40
|
+
bash "$ICI/argocd/argocd.sh" relay-start || echo "démarrage : relais argocd non lancé (devzone repair)"
|
|
41
41
|
fi
|
|
42
42
|
# Module mysql actif : le relais 127.0.0.1:3306, relancé comme celui de
|
|
43
43
|
# postgres après chaque démarrage
|
|
44
44
|
if bash "$ICI/devzone" is-enabled mysql; then
|
|
45
|
-
bash "$ICI/catalogue/mysql/mysql.sh"
|
|
45
|
+
bash "$ICI/catalogue/mysql/mysql.sh" relay-start || echo "démarrage : relais mysql non lancé (devzone repair)"
|
|
46
46
|
fi
|
|
47
47
|
# Relais de ports vers le poste (#290) : l'IP du conteneur change à chaque
|
|
48
48
|
# démarrage, chaque relais de l'état est recréé ; un échec n'empêche rien
|
|
49
|
-
bash "$ICI/ports.sh"
|
|
49
|
+
bash "$ICI/ports.sh" restart || echo "démarrage : relais de ports non relancés (devzone repair)"
|
|
50
50
|
# Veilleur de ports automatiques vers le poste (#394, garde #293) : une seule
|
|
51
|
-
# instance en arrière-plan, contexte réel posé pour cet appel seulement
|
|
52
|
-
|
|
51
|
+
# instance en arrière-plan, contexte réel posé pour cet appel seulement.
|
|
52
|
+
# Kubernetes workspace (#517): no watcher, ports go through devzone workspace ports
|
|
53
|
+
if [ "${DEVZONE_WORKSPACE:-}" != kubernetes ]; then
|
|
54
|
+
DEVZONE_PORTS_AUTO_REEL=oui bash "$ICI/ports-auto.sh" demarrer >/dev/null 2>&1 || echo "démarrage : veilleur de ports auto non lancé (devzone repair)"
|
|
55
|
+
fi
|
|
53
56
|
# Catalogue d'applications : une ligne <app>=off par application absente,
|
|
54
57
|
# écrite une fois, jamais une ligne existante modifiée (#414)
|
|
55
|
-
bash "$ICI/catalogue.sh"
|
|
58
|
+
bash "$ICI/catalogue.sh" sync || echo "démarrage : catalogue non synchronisé (devzone repair)"
|
|
56
59
|
# Veilleur du catalogue : réapplique à chaud dès que .devzone.modules change
|
|
57
|
-
DEVZONE_CATALOGUE_REEL=oui bash "$ICI/catalogue/catalogue-veilleur.sh" demarrer >/dev/null 2>&1 || echo "démarrage : veilleur catalogue non lancé (devzone
|
|
60
|
+
DEVZONE_CATALOGUE_REEL=oui bash "$ICI/catalogue/catalogue-veilleur.sh" demarrer >/dev/null 2>&1 || echo "démarrage : veilleur catalogue non lancé (devzone repair)"
|
|
58
61
|
|
|
59
62
|
# Vue regroupée des identifiants (#332), regénérée à chaque démarrage ; un
|
|
60
63
|
# échec n'empêche rien et le contenu n'est jamais affiché
|
|
61
|
-
bash "$ICI/password.sh" regenerer || echo "démarrage : identifiants regroupés non mis à jour (devzone
|
|
64
|
+
bash "$ICI/password.sh" regenerer || echo "démarrage : identifiants regroupés non mis à jour (devzone repair)"
|
|
62
65
|
echo
|
|
63
66
|
bash "$ICI/devzone"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
// config globale) : le conteneur reconstruit peut commiter et pousser
|
|
46
46
|
"source=${localEnv:DEVZONE_VOLUMES:devzone}-gh,target=/home/vscode/.config/gh,type=volume",
|
|
47
47
|
"source=${localEnv:DEVZONE_VOLUMES:devzone}-git,target=/home/vscode/.config/git,type=volume",
|
|
48
|
-
// Modules activés (devzone
|
|
48
|
+
// Modules activés (devzone enable|desactiver) : état par instance
|
|
49
49
|
// ($RACINE/.devzone.modules) ; ce volume garde l'ancien état utilisateur
|
|
50
50
|
"source=${localEnv:DEVZONE_VOLUMES:devzone}-config,target=/home/vscode/.config/devzone,type=volume"
|
|
51
51
|
],
|