devzone 0.34.1 → 0.34.3

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.
@@ -25,8 +25,8 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
25
25
  # Contrôles shell de repowarden ; jq : lu par son garde-fou des agents IA
26
26
  # (repowarden garde, module ia), qui sans lui ne vérifie rien
27
27
  # Python 3.12 d Ubuntu 24.04, paquets signés par apt, aucun serveur de clés (#464)
28
- RUN apt-get update \
29
- && apt-get install -y --no-install-recommends shellcheck bats jq python3 python3-venv python3-pip python-is-python3 \
28
+ RUN apt-get -o Acquire::Retries=5 update \
29
+ && apt-get -o Acquire::Retries=5 install -y --no-install-recommends shellcheck bats jq python3 python3-venv python3-pip python-is-python3 \
30
30
  && rm -rf /var/lib/apt/lists/*
31
31
 
32
32
  # k9s, actionlint (mêmes versions que la CI de repowarden), gitleaks, kind :
@@ -111,8 +111,9 @@ agent_lancer() {
111
111
  offset="$(wc -c <"$journal")"
112
112
  local agent_kube="$etat/kubeconfig"
113
113
  if [ -f "$HOME/.kube/config" ]; then
114
- cp "$HOME/.kube/config" "$agent_kube"
115
- KUBECONFIG="$agent_kube" kubectl config use-context devzone >/dev/null 2>&1 || true
114
+ (umask 077; KUBECONFIG="$HOME/.kube/config" kubectl config view --minify --flatten --context devzone >"$agent_kube") 2>/dev/null || : >"$agent_kube"
115
+ chmod 600 "$agent_kube"
116
+ [ -s "$agent_kube" ] || echo "=== kubernetes : aucun contexte devzone, session sans accès" >>"$journal"
116
117
  else
117
118
  : >"$agent_kube"
118
119
  fi
@@ -47,7 +47,7 @@ git config --global url.https://github.com/.insteadOf git@github.com:
47
47
  # repowarden, version figée (il installe des hooks git globaux) ; mettre à jour
48
48
  # en changeant la version ici, puis Rebuild Container
49
49
  echo "devzone : installation de repowarden…"
50
- npm install -g repowarden@4.16.1
50
+ npm install -g repowarden@4.17.1
51
51
  repowarden install --global --lang fr
52
52
 
53
53
  # Modules facultatifs (assistants IA, Kubernetes) : commande devzone, état
@@ -0,0 +1,38 @@
1
+ #!/usr/bin/env bash
2
+ # DNS publics pour le Docker d'un runner GitHub Actions (#468) : le DNS des
3
+ # runners ubuntu échoue parfois à résoudre archive.ubuntu.com pendant la
4
+ # construction du conteneur. Ajoute 1.1.1.1 et 8.8.8.8 à daemon.json (les clés
5
+ # existantes sont gardées), redémarre Docker et attend qu'il réponde.
6
+ # Garde-fou : refuse hors CI, jamais lancé sur un poste.
7
+ set -euo pipefail
8
+
9
+ if [ "${CI:-}" != true ] || [ "${GITHUB_ACTIONS:-}" != true ]; then
10
+ echo "ci-dns.sh : réservé à GitHub Actions (CI et GITHUB_ACTIONS doivent valoir true)" >&2
11
+ exit 1
12
+ fi
13
+
14
+ # Chemin surchargeable pour les tests
15
+ daemon="${DEVZONE_CI_DOCKER_DAEMON:-/etc/docker/daemon.json}"
16
+ tmp="$(mktemp)"
17
+ trap 'rm -f "$tmp"' EXIT
18
+
19
+ # Fusion avec le fichier existant, ou création s'il n'existe pas
20
+ if [ -s "$daemon" ]; then
21
+ jq '. + {"dns": ["1.1.1.1", "8.8.8.8"]}' "$daemon" >"$tmp"
22
+ else
23
+ jq -n '{"dns": ["1.1.1.1", "8.8.8.8"]}' >"$tmp"
24
+ fi
25
+ sudo mkdir -p "$(dirname "$daemon")"
26
+ sudo cp "$tmp" "$daemon"
27
+
28
+ sudo systemctl restart docker
29
+
30
+ # Attente de Docker : 20 secondes au plus
31
+ for _ in $(seq 1 20); do
32
+ if docker info >/dev/null 2>&1; then
33
+ exit 0
34
+ fi
35
+ sleep 1
36
+ done
37
+ echo "ci-dns.sh : Docker ne répond pas après 20 s" >&2
38
+ exit 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devzone",
3
- "version": "0.34.1",
3
+ "version": "0.34.3",
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": {