From a811ee00c637e088c038650a6ddc9076be632908 Mon Sep 17 00:00:00 2001 From: Betty Date: Thu, 26 Mar 2026 18:05:51 +0100 Subject: [PATCH] post: commit 9a69b23 in bojemoi --- .../commits/2026-03-26-commit-9a69b23.md | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 content/posts/commits/2026-03-26-commit-9a69b23.md diff --git a/content/posts/commits/2026-03-26-commit-9a69b23.md b/content/posts/commits/2026-03-26-commit-9a69b23.md new file mode 100644 index 0000000..043e189 --- /dev/null +++ b/content/posts/commits/2026-03-26-commit-9a69b23.md @@ -0,0 +1,50 @@ +--- +title: "[bojemoi] refactor(borodino): standardize env var management across ak47/bm12/uzi" +date: 2026-03-26T18:05:51+01:00 +draft: false +tags: ["commit", "bojemoi", "main"] +categories: ["Git Activity"] +summary: "Commit 9a69b23 par Betty dans bojemoi" +author: "Betty" +--- + +## Commit `9a69b23` + +| | | +|---|---| +| **Repository** | bojemoi | +| **Branch** | `main` | +| **Author** | Betty | +| **Hash** | `9a69b23259505b2016fee26c42a285a4896d92a2` | + + +### Description + +- Stack: add PG_HOST/PORT/USER/PASSWORD/DBNAME to all 3 services; + add IP2LOC_DBNAME for ak47 +- ak47: replace hardcoded user/password/dbname + ping-based IP + resolution with $PG_* env vars; use pg_isready with hostname directly +- bm12: PG_HOST was hardcoded "postgres" → os.getenv(); remove + hardcoded PG_PASSWORD default; add PG_PORT to psycopg2.connect() +- uzi: same as bm12; MODE_RUN was hardcoded 1 → os.getenv("MODE_RUN") + +Co-Authored-By: Claude Sonnet 4.6 + +### Files Changed + +``` +M borodino/thearm_ak47 +M borodino/thearm_bm12 +M borodino/thearm_uzi +M stack/40-service-borodino.yml +``` + +### Diff Summary + +``` + borodino/thearm_ak47 | 40 ++++++++++++++++++---------------------- + borodino/thearm_bm12 | 7 ++++--- + borodino/thearm_uzi | 23 +++++++++++------------ + stack/40-service-borodino.yml | 16 ++++++++++++++++ + 4 files changed, 49 insertions(+), 37 deletions(-) +```