GoogleContainerTools/skaffold

Dockerfile file analysis should support Buildkit's `RUN --mount`

オープン

#6,091 opened on 2021/06/28

 (1 件のコメント) (3 件のリアクション) (0 人の担当者)Go (1,416 件のフォーク)batch import
area/buildbuild/dockerhelp wantedkind/feature-requestpriority/p2

Repository metrics

Stars
 (12,822 個のスター)
PR merge metrics
 (平均マージ 3d 6h) (30d で 16 merged PRs)

説明

(From the #skaffold Slack channel)

Buildkit supports run --mount=type=bind,source=xxx,target=yyy which behaves similar to a COPY xxx yyy. The type=bind can be omitted as this is the default mount type.

The doc does say that this is only valid with dockerfile syntax 1.2 or above:

To use this flag set Dockerfile version to at least 1.2

# syntax=docker/dockerfile:1.2

Expected behavior

Skaffold would detect changes to the source in xxx and trigger a rebuild.

Actual behavior

Skaffold doesn't detect the source changes.

Information

  • Skaffold version: unspecified

Workaround

Insert manual COPY statements.

コントリビューターガイド