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.
- package/.devcontainer/agent.sh +1 -1
- package/.devcontainer/argocd/apps.sh +2 -2
- package/.devcontainer/argocd/argocd.sh +22 -10
- package/.devcontainer/catalogue/app.sh +22 -4
- package/.devcontainer/catalogue/catalogue-veilleur.sh +2 -2
- package/.devcontainer/catalogue/mysql/mysql.sh +41 -28
- package/.devcontainer/catalogue/mysql/volume.sh +5 -5
- package/.devcontainer/catalogue.sh +29 -35
- 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 +106 -118
- 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/gitlab.sh +24 -12
- package/.devcontainer/gitlab/installation.sh +9 -9
- package/.devcontainer/gitlab/secrets.sh +2 -2
- 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 +42 -30
- package/.devcontainer/services-admin.sh +1 -1
- package/.devcontainer/skills/devzone/SKILL.md +16 -16
- package/README.md +17 -17
- 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 +1 -2
- package/package.json +1 -1
package/manage/scripts/migrer.sh
CHANGED
|
@@ -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
|
|
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=$?
|