devzone 7.0.3 → 7.1.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 (53) hide show
  1. package/.devcontainer/Dockerfile +1 -8
  2. package/.devcontainer/catalog/app.sh +5 -12
  3. package/.devcontainer/cluster.sh +1 -11
  4. package/.devcontainer/devcontainer.json +1 -11
  5. package/.devcontainer/devzone +18 -10
  6. package/.devcontainer/devzone-cluster.sh +1 -1
  7. package/.devcontainer/devzone-modules.sh +7 -2
  8. package/.devcontainer/devzone-repair.sh +10 -19
  9. package/.devcontainer/devzone-services.sh +21 -20
  10. package/.devcontainer/devzone-status.sh +5 -12
  11. package/.devcontainer/help.sh +3 -4
  12. package/.devcontainer/isolation.sh +1 -1
  13. package/.devcontainer/kube-account.sh +12 -173
  14. package/.devcontainer/metrics-server.sh +1 -1
  15. package/.devcontainer/packages.sh +2 -2
  16. package/.devcontainer/ports-json.sh +0 -4
  17. package/.devcontainer/ports.sh +6 -102
  18. package/.devcontainer/state-json.sh +5 -14
  19. package/.devcontainer/versions.env +2 -2
  20. package/.devcontainer/workspace-init.sh +1 -2
  21. package/Makefile +4 -4
  22. package/README.md +13 -20
  23. package/bin/SHA256SUMS +6 -6
  24. package/bin/devzone-darwin-amd64 +0 -0
  25. package/bin/devzone-darwin-arm64 +0 -0
  26. package/bin/devzone-linux-amd64 +0 -0
  27. package/bin/devzone-linux-arm64 +0 -0
  28. package/bin/devzone-windows-amd64.exe +0 -0
  29. package/bin/devzone-windows-arm64.exe +0 -0
  30. package/manage/devzone +4 -4
  31. package/package.json +1 -1
  32. package/.devcontainer/argocd/argocd.sh +0 -222
  33. package/.devcontainer/argocd/catalog-argocd.sh +0 -119
  34. package/.devcontainer/argocd/services-hook.sh +0 -181
  35. package/.devcontainer/catalog/mysql/install.sh +0 -87
  36. package/.devcontainer/catalog/mysql/mysql.sh +0 -262
  37. package/.devcontainer/catalog/mysql/volume.sh +0 -71
  38. package/.devcontainer/git-identity.sh +0 -28
  39. package/.devcontainer/gitlab/argocd.sh +0 -54
  40. package/.devcontainer/gitlab/chart.sh +0 -39
  41. package/.devcontainer/gitlab/gitlab.sh +0 -168
  42. package/.devcontainer/gitlab/installation.sh +0 -193
  43. package/.devcontainer/gitlab/secrets.sh +0 -95
  44. package/.devcontainer/gitlab/seed.sh +0 -204
  45. package/.devcontainer/gitlab/test-gitlab-restes.sh +0 -16
  46. package/.devcontainer/gitlab/test-gitlab.sh +0 -489
  47. package/.devcontainer/kind-wrapper.sh +0 -45
  48. package/.devcontainer/kube-config.sh +0 -78
  49. package/.devcontainer/kube-reachable.sh +0 -64
  50. package/.devcontainer/ports-auto.sh +0 -247
  51. package/.devcontainer/post-create.sh +0 -91
  52. package/.devcontainer/postgres/postgres.sh +0 -309
  53. package/.devcontainer/startup.sh +0 -65
@@ -1,65 +0,0 @@
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"