Commit 23e4e9e
fix(container): Codex review 指摘の HIGH/MED 対応
Codex 第二意見レビューで指摘された 4 件に対応:
[1.1 HIGH] 公開イメージの定期 re-pull を廃止
docker image inspect の Created はイメージのビルド日時で
ローカル pull 日時ではないため、age 比較で再 pull すると
毎回 pull がループする欠陥があった。image-only サービス
(build: なし) は不在時のみ pull し、定期再 pull は行わない
方針に変更。「image: のみで定期 pull が必要」というユース
ケースが出てきたら別 PR で digest 比較等を実装する。
[1.2 HIGH] DEV_SERVICE_NAME 連動の build に修正
Python 側 _ensure_images() は get_dev_service_name() で対象
サービスを解決していたが、Bash 側 cmd_build は
'docker compose build dev' を固定実行していた。
DEV_SERVICE_NAME != dev なプロジェクトで自動再ビルド経路に
入ると存在しないサービスをビルドしようとして失敗する回帰。
Bash 側を 'docker compose build "${DEV_SERVICE_NAME:-dev}"'
に変更してチェックと実行のサービス名解決を整合化。
[1.4 MED] エラーメッセージを build/pull 双方を案内する文面に
_ensure_images() 失敗時に常に "devbase container build" を
案内していたが、image-only サービスでは build は不適切。
build と docker pull の両方を案内する文面に変更。
[2.1 MED] cli-reference.md に自動 build/pull 動作を明記
devbase up が条件次第で build/pull を自動実行する旨と、
DEVBASE_IMAGE_MAX_AGE_DAYS 環境変数の存在を追記。
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 9010cbd commit 23e4e9e
3 files changed
Lines changed: 25 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
104 | 109 | | |
105 | 110 | | |
106 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
109 | 113 | | |
110 | 114 | | |
111 | 115 | | |
| |||
440 | 444 | | |
441 | 445 | | |
442 | 446 | | |
443 | | - | |
444 | | - | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
445 | 451 | | |
| 452 | + | |
| 453 | + | |
446 | 454 | | |
447 | 455 | | |
448 | 456 | | |
| |||
489 | 497 | | |
490 | 498 | | |
491 | 499 | | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
492 | 505 | | |
493 | 506 | | |
494 | 507 | | |
| |||
498 | 511 | | |
499 | 512 | | |
500 | 513 | | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
| 514 | + | |
| 515 | + | |
506 | 516 | | |
507 | 517 | | |
508 | 518 | | |
| |||
0 commit comments