`.dockerignore`: Use an allowlist approach for selective builds
オープン
docker
priority: low
- 主要言語
- Java
- スター
- 3.1k
- フォーク
- 1.4k
- 平均マージ
- 6日 19時間
- マージ済み PR(30日)
- 32
説明
For very selective builds, a robust strategy is to ignore everything by default (*) and then use the negation pattern (!) to explicitly include only the necessary files or directories.
Example:
```
# Ignore everything
*
# Include only what's needed
!src/
!package.json
!package-lock.json
```
Seems it has not been updated for 8 years:
https://github.com/apache/cloudstack/blob/main/.dockerignore
コントリビューションガイド
調査の方向性
Issueで古くなっていると指摘されているリポジトリのルートにある .dockerignore から始め、現在のパターンを提案されている allowlist の例と比較します。結果として得られる除外によって、Issueに記載されている選択的なビルドと必要なパスが引き続き許可されることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- docker
- 領域
- build-system
- issue の種類
- リファクタリング
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 55/100