GoogleContainerTools/skaffold

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

Offen

#6.091 geöffnet am 28.06.2021

 (1 Kommentar) (3 Reaktionen) (0 zugewiesene Personen)Go (1.416 Forks)batch import
area/buildbuild/dockerhelp wantedkind/feature-requestpriority/p2

Repository-Metriken

Stars
 (12.822 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 3T 6h) (16 gemergte PRs in 30 T)

Beschreibung

(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.

Contributor Guide