devzone 4.1.0 → 4.3.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 (29) hide show
  1. package/.devcontainer/argocd/apps.sh +1 -1
  2. package/.devcontainer/argocd/services.sh +1 -1
  3. package/.devcontainer/isolation.sh +1 -1
  4. package/.devcontainer/services-admin.sh +1 -1
  5. package/README.md +2 -0
  6. package/bin/SHA256SUMS +6 -0
  7. package/bin/devzone-darwin-amd64 +0 -0
  8. package/bin/devzone-darwin-arm64 +0 -0
  9. package/bin/devzone-linux-amd64 +0 -0
  10. package/bin/devzone-linux-arm64 +0 -0
  11. package/bin/devzone-windows-amd64.exe +0 -0
  12. package/bin/devzone-windows-arm64.exe +0 -0
  13. package/manage/devzone +104 -0
  14. package/manage/scripts/ci/build-binaries.sh +116 -0
  15. package/manage/scripts/ci/versions-tools-plan.sh +105 -0
  16. package/manage/scripts/{argocd-services-svc.sh → workspace/argocd-services-svc.sh} +1 -1
  17. package/manage/scripts/{argocd-services.sh → workspace/argocd-services.sh} +4 -4
  18. package/manage/scripts/{ports-workspace.sh → workspace/ports-workspace.sh} +1 -1
  19. package/manage/workspace.sh +20 -20
  20. package/package.json +5 -1
  21. /package/manage/scripts/{argocd-workspace.sh → workspace/argocd-workspace.sh} +0 -0
  22. /package/manage/scripts/{ports-apps.sh → workspace/ports-apps.sh} +0 -0
  23. /package/manage/scripts/{services-workspace.sh → workspace/services-workspace.sh} +0 -0
  24. /package/manage/scripts/{workspace-aliases.sh → workspace/workspace-aliases.sh} +0 -0
  25. /package/manage/scripts/{workspace-clone.sh → workspace/workspace-clone.sh} +0 -0
  26. /package/manage/scripts/{workspace-copies.sh → workspace/workspace-copies.sh} +0 -0
  27. /package/manage/scripts/{workspace-egress.sh → workspace/workspace-egress.sh} +0 -0
  28. /package/manage/scripts/{workspace-update.sh → workspace/workspace-update.sh} +0 -0
  29. /package/manage/scripts/{workspace-wait.sh → workspace/workspace-wait.sh} +0 -0
@@ -6,7 +6,7 @@
6
6
  # argocd_app remove <N>
7
7
  # apps_reconcile every [app N] of .argocd.conf applied, the others removed
8
8
  # Sourced by the container (argocd.sh: kubectl --context devzone) and by the
9
- # workstation (manage/scripts/argocd-services.sh), after conf.sh and
9
+ # workstation (manage/scripts/workspace/argocd-services.sh), after conf.sh and
10
10
  # gitops.sh. The includer defines argocd_kubectl, APPS_GENERATOR, APPS_CMD,
11
11
  # ARGOCD_CONF and ARGOCD_CONF_DIR (the devzone folder: token-file paths are
12
12
  # relative to it), and may define apps_gitlab_token (root token of the
@@ -19,7 +19,7 @@
19
19
  # services_note <svc> on|off writes the [services] section
20
20
  # chart_require <svc> chart charts/devzone-<svc> named devzone-<svc>, or code 2
21
21
  # Sourced after conf.sh and gitops.sh by the workstation
22
- # (manage/scripts/argocd-services.sh) and by the container (argocd.sh). The
22
+ # (manage/scripts/workspace/argocd-services.sh) and by the container (argocd.sh). The
23
23
  # includer defines argocd_kubectl, APPS_GENERATOR, ARGOCD_CONF and
24
24
  # ARGOCD_CONF_DIR (the devzone folder: relative paths there), DEVZONE_REPO_URL
25
25
  # and argocd_revision, the secret hook of each service
@@ -2,7 +2,7 @@
2
2
  # Network isolation and access authorization between devzone namespaces.
3
3
  # File <= 250 lines: functions namespace_isolate, allow, forbid.
4
4
  # These functions modify NetworkPolicies in the Kubernetes cluster.
5
- # Helpers of manage/test/commun.bash: kube_isole.
5
+ # Loaded by argocd.sh, catalog.sh, mysql.sh, gitlab.sh and postgres.sh; shipped with the package.
6
6
 
7
7
  # Sets an isolating NetworkPolicy in a namespace.
8
8
  # Only the pods of the same namespace can reach the services.
@@ -3,7 +3,7 @@
3
3
  # the Kubernetes workspace pod, with a temporary administrator token (#528).
4
4
  # services-admin.sh enable|disable <service> [options of devzone enable]
5
5
  # services-admin.sh seed gitlab data of gitlab seeded again, in the pod (#538)
6
- # Run by the workstation (manage/scripts/services-workspace.sh) through
6
+ # Run by the workstation (manage/scripts/workspace/services-workspace.sh) through
7
7
  # kubectl exec -i: the token comes on stdin, is never printed and lives only
8
8
  # in a temporary kubeconfig removed at the end.
9
9
  # Why: the pod has no kubeconfig and its service account is limited (#430),
package/README.md CHANGED
@@ -43,6 +43,8 @@ Nothing is hosted: everything runs on your machine. `workspace/` is kept across
43
43
 
44
44
  On Windows: it is recommended to clone with Git for Windows (the scripts keep LF line endings thanks to `.gitattributes`, and the npm command finds the `bash` it requires).
45
45
 
46
+ The npm package ships a compiled `devzone` binary for Linux, macOS and Windows (amd64 and arm64): the command runs in Go when a binary exists for your platform, and in bash otherwise.
47
+
46
48
  #### Minimum memory per module
47
49
 
48
50
  Measurements from 16/11/2026.
package/bin/SHA256SUMS ADDED
@@ -0,0 +1,6 @@
1
+ 7355d857795451062f960158c2619eebc3fb3176fbc7f2162553aee1a1e6246b devzone-linux-amd64
2
+ 6435128c4613c6a1836e4277d793d48eade13248be9ed84fca45c76fd59d4ee2 devzone-linux-arm64
3
+ 4b4656b638a3dbd4479cfece3bea5538f93abee6481233fbff432456c0f1b66b devzone-darwin-amd64
4
+ 03f4840c9d03b2cc86369ef951929d54a77e63865ff51c15156032c68be2f56a devzone-darwin-arm64
5
+ c60e9cd45629c4c5f72696960c064073f98551b5e73d5952e19a8cdcabdb1dbd devzone-windows-amd64.exe
6
+ aa41603aa549bbb5947971b50a679516b18fc50a5ae0db8aa876add9270e7e50 devzone-windows-arm64.exe
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/manage/devzone CHANGED
@@ -44,6 +44,108 @@ version() {
44
44
  node -p 'require(process.argv[1]).version' "$PAQUET/package.json" 2>/dev/null || echo inconnue
45
45
  }
46
46
 
47
+ # Go binary of the package (#773). bin/devzone-<os>-<arch>[.exe] is built by
48
+ # prepack (manage/scripts/ci/build-binaries.sh) and listed with its SHA-256 in
49
+ # bin/SHA256SUMS. When one exists for this machine, it is checked, copied once
50
+ # into ${XDG_CACHE_HOME:-~/.cache}/devzone/bin/<version>/ (npm drops the
51
+ # executable bit of the files outside "bin"; the copy is atomic) and run in
52
+ # place of this script. Any problem, DEVZONE_NO_GO or DEVZONE_FROM_GO (set by the
53
+ # Go binary when it delegates to this script: no loop) keeps the bash command.
54
+ go_platform() {
55
+ local os arch
56
+ case "$(uname -s 2>/dev/null)" in
57
+ Linux) os=linux ;;
58
+ Darwin) os=darwin ;;
59
+ MINGW* | MSYS* | CYGWIN*) os=windows ;;
60
+ *) return 1 ;;
61
+ esac
62
+ case "$(uname -m 2>/dev/null)" in
63
+ x86_64 | amd64) arch=amd64 ;;
64
+ arm64 | aarch64) arch=arm64 ;;
65
+ *) return 1 ;;
66
+ esac
67
+ echo "$os-$arch"
68
+ }
69
+
70
+ # SHA-256 of file $1; node when neither sha256sum nor shasum exists
71
+ go_sha256() {
72
+ if command -v sha256sum >/dev/null 2>&1; then
73
+ sha256sum "$1" | cut -d' ' -f1
74
+ elif command -v shasum >/dev/null 2>&1; then
75
+ shasum -a 256 "$1" | cut -d' ' -f1
76
+ else
77
+ node -e 'const h = require("crypto").createHash("sha256"); h.update(require("fs").readFileSync(process.argv[1])); console.log(h.digest("hex"))' "$1"
78
+ fi
79
+ }
80
+
81
+ # Sum of file $2 in the SHA256SUMS file $1 (lines: "<sum> <name>")
82
+ go_listed_sum() {
83
+ local sum name
84
+ [ -f "$1" ] || return 1
85
+ while read -r sum name; do
86
+ if [ "${name#\*}" = "$2" ]; then
87
+ echo "$sum"
88
+ return 0
89
+ fi
90
+ done <"$1"
91
+ return 1
92
+ }
93
+
94
+ # Copies binary $1 to $2 (mode 755), then writes its sum $3 in $2.sha256: each
95
+ # step goes through a temporary file and mv, so a launch in parallel or a
96
+ # crash never leaves a half-written binary
97
+ go_install() {
98
+ local tmp
99
+ mkdir -p "$(dirname "$2")" || return 1
100
+ tmp="$(mktemp "$2.XXXXXX")" || return 1
101
+ if cp "$1" "$tmp" && chmod 755 "$tmp" && mv -f "$tmp" "$2" \
102
+ && printf '%s\n' "$3" >"$tmp" && mv -f "$tmp" "$2.sha256"; then
103
+ return 0
104
+ fi
105
+ rm -f "$tmp"
106
+ return 1
107
+ }
108
+
109
+ # Runs the Go binary when it applies (never returns then); otherwise returns
110
+ go_launch() {
111
+ local platform ext="" name bin want have ver base target
112
+ if [ -n "${DEVZONE_NO_GO:-}" ] || [ -n "${DEVZONE_FROM_GO:-}" ]; then return 0; fi
113
+ platform="$(go_platform)" || return 0
114
+ case "$platform" in windows-*) ext=.exe ;; esac
115
+ name="devzone-$platform$ext"
116
+ bin="$PAQUET/bin/$name"
117
+ [ -f "$bin" ] || return 0
118
+ ver="$(version)"
119
+ [ "$ver" != inconnue ] || return 0
120
+ base="${XDG_CACHE_HOME:-}"
121
+ if [ -z "$base" ] && [ -n "${HOME:-}" ]; then base="$HOME/.cache"; fi
122
+ [ -n "$base" ] || return 0
123
+ target="$base/devzone/bin/$ver/devzone$ext"
124
+ want="$(go_listed_sum "$PAQUET/bin/SHA256SUMS" "$name")" || {
125
+ echo "devzone: no checksum for $name in bin/SHA256SUMS, using the bash command" >&2
126
+ return 0
127
+ }
128
+ if ! { [ -x "$target" ] && [ "$(cat "$target.sha256" 2>/dev/null)" = "$want" ]; }; then
129
+ have="$(go_sha256 "$bin")" || have=""
130
+ if [ "$have" != "$want" ]; then
131
+ echo "devzone: checksum of $name does not match bin/SHA256SUMS, using the bash command" >&2
132
+ return 0
133
+ fi
134
+ go_install "$bin" "$target" "$want" || {
135
+ echo "devzone: cannot copy $name to $target, using the bash command" >&2
136
+ return 0
137
+ }
138
+ fi
139
+ # The Go binary finds the bash command (and the package.json) from here, even
140
+ # copied into the cache; Git Bash gives it a Windows path
141
+ DEVZONE_BASH_ENTRY="$PAQUET/manage/devzone"
142
+ case "$platform" in
143
+ windows-*) DEVZONE_BASH_ENTRY="$(cygpath -m "$DEVZONE_BASH_ENTRY" 2>/dev/null || echo "$DEVZONE_BASH_ENTRY")" ;;
144
+ esac
145
+ export DEVZONE_BASH_ENTRY
146
+ exec "$target" "$@"
147
+ }
148
+
47
149
  show_help() {
48
150
  cat <<EOT
49
151
  devzone $(version) : environnement de développement conteneurisé
@@ -82,6 +184,8 @@ container_command() {
82
184
  esac
83
185
  }
84
186
 
187
+ go_launch "$@"
188
+
85
189
  # Renamed names (#695): the French names of the host and container commands are
86
190
  # refused before anything is created (« devzone mettre-a-jour » must not create a
87
191
  # folder; « devzone stop » still creates ./stop). A copied devzone may miss the
@@ -0,0 +1,116 @@
1
+ #!/usr/bin/env bash
2
+ # Builds the Go binary of devzone for the six platforms of the npm package
3
+ # (linux, darwin, windows; amd64, arm64) into bin/ at the root of the package
4
+ # (#773):
5
+ # bin/devzone-<os>-<arch> (.exe for windows)
6
+ # bin/SHA256SUMS one "<sum> <name>" line per binary
7
+ # It is the "prepack" script of package.json: it runs on "npm publish" and
8
+ # "npm pack", never with --ignore-scripts. manage/devzone checks the sums, then
9
+ # runs the binary of the machine.
10
+ #
11
+ # The runner of the publication has Go, but not necessarily the version of
12
+ # go.mod. The script reads the version the image uses (ARG GO_VERSION of
13
+ # .devcontainer/Dockerfile) and sets GOTOOLCHAIN to it: a Go 1.21 or newer
14
+ # downloads that exact toolchain by itself (3 attempts, 5 s apart). Without Go,
15
+ # or with a Go older than 1.21, it fails with the reason. A package with a
16
+ # missing binary is never produced: any failure exits 1.
17
+ #
18
+ # The version printed by "devzone --version" is not injected: the Go binary
19
+ # reads the package.json of the package, as the bash command does.
20
+ # Progress goes to the standard error: npm pack --json keeps its report clean.
21
+ # bash 3.2 (macOS).
22
+
23
+ set -euo pipefail
24
+
25
+ ICI="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
26
+ ROOT="$(cd "$ICI/../../.." && pwd)"
27
+ OUT="$ROOT/bin"
28
+ IMAGE_FILE="$ROOT/.devcontainer/Dockerfile"
29
+ TARGETS="linux-amd64 linux-arm64 darwin-amd64 darwin-arm64 windows-amd64 windows-arm64"
30
+
31
+ die() {
32
+ echo "build-binaries: $*" >&2
33
+ exit 1
34
+ }
35
+
36
+ # retry <attempts> <pause in seconds> <command...>: the command succeeds at the
37
+ # first attempt that works; the last failure is the result
38
+ retry() {
39
+ local attempts="$1" pause="$2" n=1
40
+ shift 2
41
+ until "$@"; do
42
+ [ "$n" -lt "$attempts" ] || return 1
43
+ echo "build-binaries: attempt $n of $attempts failed, new attempt in ${pause}s" >&2
44
+ n=$((n + 1))
45
+ sleep "$pause"
46
+ done
47
+ }
48
+
49
+ # SHA-256 of file $1
50
+ sha256_of() {
51
+ if command -v sha256sum >/dev/null 2>&1; then
52
+ sha256sum "$1" | cut -d' ' -f1
53
+ elif command -v shasum >/dev/null 2>&1; then
54
+ shasum -a 256 "$1" | cut -d' ' -f1
55
+ else
56
+ node -e 'const h = require("crypto").createHash("sha256"); h.update(require("fs").readFileSync(process.argv[1])); console.log(h.digest("hex"))' "$1"
57
+ fi
58
+ }
59
+
60
+ # Selects the Go toolchain of the image through GOTOOLCHAIN
61
+ select_toolchain() {
62
+ local want local_version major minor
63
+ [ -f "$IMAGE_FILE" ] || die "$IMAGE_FILE not found (the Go version is read there)"
64
+ want="$(sed -n 's/^ARG GO_VERSION=//p' "$IMAGE_FILE" | head -n 1)"
65
+ [ -n "$want" ] || die "no ARG GO_VERSION in $IMAGE_FILE"
66
+ command -v go >/dev/null 2>&1 || die "go not found: install Go 1.21 or newer (the build then downloads Go $want by itself)"
67
+ local_version="$(go version | sed -n 's/^go version go\([0-9][0-9.]*\).*/\1/p')"
68
+ [ -n "$local_version" ] || die "cannot read the version of go (go version: $(go version))"
69
+ major="${local_version%%.*}"
70
+ minor="${local_version#*.}"
71
+ minor="${minor%%.*}"
72
+ if [ "$major" -lt 1 ] || { [ "$major" -eq 1 ] && [ "$minor" -lt 21 ]; }; then
73
+ die "go $local_version is too old: Go 1.21 or newer is needed to select Go $want (GOTOOLCHAIN)"
74
+ fi
75
+ export GOTOOLCHAIN="go$want"
76
+ # Downloads the toolchain now, with retries: a network failure stops here
77
+ retry 3 5 go version >/dev/null || die "cannot obtain the Go $want toolchain (network?)"
78
+ [ "$(go version | sed -n 's/^go version go\([0-9][0-9.]*\).*/\1/p')" = "$want" ] \
79
+ || die "go $want expected, got: $(go version)"
80
+ echo "build-binaries: $(go version)" >&2
81
+ }
82
+
83
+ build_all() {
84
+ local target goos goarch name
85
+ rm -rf "$OUT"
86
+ mkdir -p "$OUT"
87
+ for target in $TARGETS; do
88
+ goos="${target%-*}"
89
+ goarch="${target#*-}"
90
+ name="devzone-$target"
91
+ [ "$goos" != windows ] || name="$name.exe"
92
+ echo "build-binaries: $name" >&2
93
+ (cd "$ROOT" && CGO_ENABLED=0 GOOS="$goos" GOARCH="$goarch" \
94
+ go build -trimpath -ldflags "-s -w" -o "$OUT/$name" ./cmd/devzone) \
95
+ || die "build of $name failed"
96
+ done
97
+ }
98
+
99
+ # Writes bin/SHA256SUMS and refuses a package with a missing or empty binary
100
+ write_sums() {
101
+ local target name count=0
102
+ : >"$OUT/SHA256SUMS"
103
+ for target in $TARGETS; do
104
+ name="devzone-$target"
105
+ case "$target" in windows-*) name="$name.exe" ;; esac
106
+ [ -s "$OUT/$name" ] || die "binary missing or empty: bin/$name"
107
+ printf '%s %s\n' "$(sha256_of "$OUT/$name")" "$name" >>"$OUT/SHA256SUMS"
108
+ count=$((count + 1))
109
+ done
110
+ [ "$count" -eq 6 ] || die "$count binaries instead of 6"
111
+ }
112
+
113
+ select_toolchain
114
+ build_all
115
+ write_sums
116
+ echo "build-binaries: 6 binaries and SHA256SUMS in $OUT" >&2
@@ -0,0 +1,105 @@
1
+ #!/usr/bin/env bash
2
+ # Plan of the image tools to bump, for the versions workflow. Reads the
3
+ # "tool pinned upstream [majeure]" lines of "versions.sh --tools" on stdin and
4
+ # prints one TAB-separated line per tool to act on, with the fields:
5
+ # kind tool pinned upstream title notes ticket
6
+ # plan a new ticket, the design, the bump and the push; at most MAX
7
+ # (3 by default) per run, the others wait for the next run
8
+ # existant the App has an open ticket for this tool with another title:
9
+ # the workflow only updates it (no branch); ticket is its number
10
+ # majeure a next major version: listed in the job summary, never applied
11
+ # A tool whose open ticket of the author has the same title is not listed.
12
+ # Usage: versions.sh --tools | bash versions-tools-plan.sh <author> [max]
13
+ # Compatible with bash 3.2 (macOS).
14
+ set -euo pipefail
15
+
16
+ HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
17
+ AUTHOR="${1:-}"
18
+ MAX="${2:-3}"
19
+
20
+ if [ -z "$AUTHOR" ]; then
21
+ echo "usage: versions.sh --tools | bash versions-tools-plan.sh <author> [max]" >&2
22
+ exit 2
23
+ fi
24
+ case "$MAX" in
25
+ '' | *[!0-9]*)
26
+ echo "versions-tools-plan: invalid max: $MAX" >&2
27
+ exit 2
28
+ ;;
29
+ esac
30
+
31
+ # Release notes of tool $1 at version $2 (Go publishes its notes on go.dev)
32
+ notes_of() {
33
+ case "$1" in
34
+ go) echo "https://go.dev/doc/devel/release#go$2" ;;
35
+ k9s) echo "https://github.com/derailed/k9s/releases/tag/v$2" ;;
36
+ actionlint) echo "https://github.com/rhysd/actionlint/releases/tag/v$2" ;;
37
+ gitleaks) echo "https://github.com/gitleaks/gitleaks/releases/tag/v$2" ;;
38
+ kind) echo "https://github.com/kubernetes-sigs/kind/releases/tag/v$2" ;;
39
+ *)
40
+ echo "versions-tools-plan: unknown tool: $1" >&2
41
+ exit 1
42
+ ;;
43
+ esac
44
+ }
45
+
46
+ # Title of the ticket and of the commit for the bump of tool $1 from $2 to $3
47
+ title_of() {
48
+ echo "$1 $2 → $3 dans l'image"
49
+ }
50
+
51
+ # "number<TAB>title" of the open ticket of AUTHOR for tool $1, nothing otherwise
52
+ open_ticket_of() {
53
+ bash "$HERE/versions.sh" --existing-ticket "$1" "$AUTHOR" </dev/null
54
+ }
55
+
56
+ # Prints one plan line: kind, tool, pinned, upstream, title, notes, ticket
57
+ emit() {
58
+ printf '%s\t%s\t%s\t%s\t%s\t%s\t%s\n' "$1" "$2" "$3" "$4" "$5" "$6" "${7:--}"
59
+ }
60
+
61
+ count=0
62
+ deferred=""
63
+ while read -r tool pinned upstream rest; do
64
+ [ -n "${tool:-}" ] || continue
65
+ if [ -z "${upstream:-}" ]; then
66
+ echo "versions-tools-plan: invalid line: $tool $pinned" >&2
67
+ exit 1
68
+ fi
69
+ case "$rest" in
70
+ '') kind=plan ;;
71
+ majeure) kind=majeure ;;
72
+ *)
73
+ echo "versions-tools-plan: invalid line: $tool $pinned $upstream $rest" >&2
74
+ exit 1
75
+ ;;
76
+ esac
77
+ title="$(title_of "$tool" "$pinned" "$upstream")"
78
+ notes="$(notes_of "$tool" "$upstream")"
79
+
80
+ if [ "$kind" = majeure ]; then
81
+ emit majeure "$tool" "$pinned" "$upstream" "$title" "$notes"
82
+ continue
83
+ fi
84
+
85
+ existing="$(open_ticket_of "$tool")"
86
+ if [ -n "$existing" ]; then
87
+ number="${existing%%$'\t'*}"
88
+ existing_title="${existing#*$'\t'}"
89
+ if [ "$existing_title" != "$title" ]; then
90
+ emit existant "$tool" "$pinned" "$upstream" "$title" "$notes" "$number"
91
+ fi
92
+ continue
93
+ fi
94
+
95
+ if [ "$count" -ge "$MAX" ]; then
96
+ deferred="$deferred $tool"
97
+ continue
98
+ fi
99
+ count=$((count + 1))
100
+ emit plan "$tool" "$pinned" "$upstream" "$title" "$notes"
101
+ done
102
+
103
+ if [ -n "$deferred" ]; then
104
+ echo "versions-tools-plan: deferred to the next run (at most $MAX per run):$deferred" >&2
105
+ fi
@@ -3,7 +3,7 @@
3
3
  # apart (postgres-admin, mysql-admin, mirrored and never printed), Helm
4
4
  # parameters of the mysql chart (existing volume claim), and the
5
5
  # devzone workspace services enable|disable switch when Argo CD holds the
6
- # charts. Sourced by manage/scripts/argocd-services.sh. bash 3.2 (macOS).
6
+ # charts. Sourced by manage/scripts/workspace/argocd-services.sh. bash 3.2 (macOS).
7
7
 
8
8
  # Namespace of the service: labelled, isolated like the other devzone-*
9
9
  # (services.sh: services_namespace_prepare)
@@ -46,16 +46,16 @@ GITOPS_CMD="devzone workspace argocd init"
46
46
  ARGOCD_CONF_DIR="$PWD"
47
47
  # shellcheck disable=SC2034
48
48
  ARGOCD_CONF="$PWD/.argocd.conf"
49
- # shellcheck source=../../.devcontainer/argocd/conf.sh
49
+ # shellcheck source=../../../.devcontainer/argocd/conf.sh
50
50
  # shellcheck disable=SC1091
51
51
  . "$RACINE/.devcontainer/argocd/conf.sh"
52
- # shellcheck source=../../.devcontainer/argocd/gitops.sh
52
+ # shellcheck source=../../../.devcontainer/argocd/gitops.sh
53
53
  # shellcheck disable=SC1091
54
54
  . "$RACINE/.devcontainer/argocd/gitops.sh"
55
- # shellcheck source=../../.devcontainer/argocd/apps.sh
55
+ # shellcheck source=../../../.devcontainer/argocd/apps.sh
56
56
  # shellcheck disable=SC1091
57
57
  . "$RACINE/.devcontainer/argocd/apps.sh"
58
- # shellcheck source=../../.devcontainer/argocd/services.sh
58
+ # shellcheck source=../../../.devcontainer/argocd/services.sh
59
59
  # shellcheck disable=SC1091
60
60
  . "$RACINE/.devcontainer/argocd/services.sh"
61
61
  argocd_kubectl() { ak "$@"; }
@@ -14,7 +14,7 @@ PW_INTERNAL=" 2475 1234 "
14
14
  # pgAdmin service port: read from the service, without it nothing is relayed.
15
15
  PW_JSONPATH='jsonpath={.spec.ports[0].port}'
16
16
  # Cluster Services relayed as applications (#611).
17
- # shellcheck source=manage/scripts/ports-apps.sh
17
+ # shellcheck source=manage/scripts/workspace/ports-apps.sh
18
18
  . "$(dirname "${BASH_SOURCE[0]}")/ports-apps.sh"
19
19
 
20
20
  # Watcher state folder: lock, pid, relays, reported ports, log.
@@ -165,28 +165,28 @@ copy_from() {
165
165
  }
166
166
 
167
167
  # French names of the command and compatibility aliases (lot 3, #508)
168
- # shellcheck source=manage/scripts/workspace-aliases.sh
169
- . "$HERE/scripts/workspace-aliases.sh"
168
+ # shellcheck source=manage/scripts/workspace/workspace-aliases.sh
169
+ . "$HERE/scripts/workspace/workspace-aliases.sh"
170
170
  # shellcheck source=manage/scripts/kube-ready.sh
171
171
  . "$HERE/scripts/kube-ready.sh"
172
- # shellcheck source=manage/scripts/workspace-wait.sh
173
- . "$HERE/scripts/workspace-wait.sh"
174
- # shellcheck source=manage/scripts/workspace-clone.sh
175
- . "$HERE/scripts/workspace-clone.sh"
176
- # shellcheck source=manage/scripts/workspace-copies.sh
177
- . "$HERE/scripts/workspace-copies.sh"
178
- # shellcheck source=manage/scripts/ports-workspace.sh
179
- . "$HERE/scripts/ports-workspace.sh"
180
- # shellcheck source=manage/scripts/services-workspace.sh
181
- . "$HERE/scripts/services-workspace.sh"
182
- # shellcheck source=manage/scripts/argocd-workspace.sh
183
- . "$HERE/scripts/argocd-workspace.sh"
184
- # shellcheck source=manage/scripts/argocd-services.sh
185
- . "$HERE/scripts/argocd-services.sh"
186
- # shellcheck source=manage/scripts/workspace-update.sh
187
- . "$HERE/scripts/workspace-update.sh"
188
- # shellcheck source=manage/scripts/workspace-egress.sh
189
- . "$HERE/scripts/workspace-egress.sh"
172
+ # shellcheck source=manage/scripts/workspace/workspace-wait.sh
173
+ . "$HERE/scripts/workspace/workspace-wait.sh"
174
+ # shellcheck source=manage/scripts/workspace/workspace-clone.sh
175
+ . "$HERE/scripts/workspace/workspace-clone.sh"
176
+ # shellcheck source=manage/scripts/workspace/workspace-copies.sh
177
+ . "$HERE/scripts/workspace/workspace-copies.sh"
178
+ # shellcheck source=manage/scripts/workspace/ports-workspace.sh
179
+ . "$HERE/scripts/workspace/ports-workspace.sh"
180
+ # shellcheck source=manage/scripts/workspace/services-workspace.sh
181
+ . "$HERE/scripts/workspace/services-workspace.sh"
182
+ # shellcheck source=manage/scripts/workspace/argocd-workspace.sh
183
+ . "$HERE/scripts/workspace/argocd-workspace.sh"
184
+ # shellcheck source=manage/scripts/workspace/argocd-services.sh
185
+ . "$HERE/scripts/workspace/argocd-services.sh"
186
+ # shellcheck source=manage/scripts/workspace/workspace-update.sh
187
+ . "$HERE/scripts/workspace/workspace-update.sh"
188
+ # shellcheck source=manage/scripts/workspace/workspace-egress.sh
189
+ . "$HERE/scripts/workspace/workspace-egress.sh"
190
190
 
191
191
  # Renamed names (#695): an old French name is refused before anything runs, with
192
192
  # its English name (« devzone workspace start »). A copied devzone may miss the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devzone",
3
- "version": "4.1.0",
3
+ "version": "4.3.0",
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": {
@@ -19,7 +19,11 @@
19
19
  "bin": {
20
20
  "devzone": "manage/devzone"
21
21
  },
22
+ "scripts": {
23
+ "prepack": "bash manage/scripts/ci/build-binaries.sh"
24
+ },
22
25
  "files": [
26
+ "bin/",
23
27
  "manage/devzone",
24
28
  ".devcontainer/",
25
29
  "Makefile",