post: commit 9a69b23 in bojemoi
All checks were successful
Hugo Build & Deploy / build-deploy (push) Successful in 12s
All checks were successful
Hugo Build & Deploy / build-deploy (push) Successful in 12s
This commit is contained in:
50
content/posts/commits/2026-03-26-commit-9a69b23.md
Normal file
50
content/posts/commits/2026-03-26-commit-9a69b23.md
Normal file
@@ -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 <noreply@anthropic.com>
|
||||
|
||||
### 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(-)
|
||||
```
|
||||
Reference in New Issue
Block a user