devcontainer: htop を dev stage に追加 + apt list を両 stage とも ABC sort - #51
Merged
Conversation
Add `htop` to the dev image so CPU usage is easy to watch while parallel worktree subagents are running builds. Dev-only — not added to the :ci slim image since the GHA build job has no use for it. While here, alphabetize the apt-get install lists in both stages (Docker docs recommend this for multi-line args: deduplicates, eases review, cuts merge conflicts). htop slots into c..o naturally between curl and openssh-client.
thawk105
force-pushed
the
devcontainer-add-htop
branch
from
May 13, 2026 13:48
2380256 to
821959f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
並列 worktree subagent でビルドを回しているときの CPU 使用率を眺める用に
htopを入れたい。ついでに base / dev 両 stage のapt-get installリストを ABC 順に並べ替えて、htop も正しい位置 (curl と openssh-client の間) に挿入。変更
dev stage
base stage (CI の
:ciでも使われる)なぜ ABC sort
Docker 公式のベストプラクティス で multi-line args は sort せよと推奨されている:
トレードオフ
htopの image size 増分はごく僅か (バイナリ + 依存で数 MB 程度)、dev image にしか入らないので CI 速度には影響なし。マージ後の手順
.devcontainer/**を触っているので merge でdevcontainer-image.ymlが起動し、:latest(dev) と:ci(base) の両方が rebuild される。htopが使えるようになるTest plan
:latest/:ciが publish されるhtopが走る.devcontainer/**外の PR で CI が緑のまま (= base stage の image が壊れていない確認)