Skip to content

Releases: moby/buildkit

dockerfile/1.1.0

27 Apr 01:49
8c0fa8f
Compare
Choose a tag to compare

ADD/COPY commands now support implementation based on llb.FileOp and do not require helper image if builtin file operations support is available. #809

To find the files ignored from the build context Dockerfile frontend will first look for a file <path/to/Dockerfile>.dockerignore and if it is not found .dockerignore file will be looked up from the root of the build context. This allows projects with multiple Dockerfiles to use different .dockerignore definitions. #901

--chown flag for COPY command now supports variable expansion. #926

v0.4.0

14 Mar 12:16
c354108
Compare
Choose a tag to compare

Images

https://hub.docker.com/r/moby/buildkit/tags/

  • docker.io/moby/buildkit:v0.4.0
    sha256:b9e69cb63202e682d6338c579e63273c6263ab54a9091e54f98ce279e0a4e922

  • docker.io/moby/buildkit:v0.4.0-rootless
    sha256:3877d091e65429f59919ed5591aaeb863b1889a5314bdfdba5ff9c0dfb2f3ed0

Notable Changes

securityContext is no longer needed for running BuildKit on Kubernetes (#768)

moby/buildkit:v0.4.0-rootless does not require securityContext.procMount (or securityContext.privileged) to be configured when launched with --oci-worker-no-process-sandbox, which disables isolating PID namespaces across buildkitd and build containers.

To run moby/buildkit:v0.4.0-rootless using docker run, you still need to specify --security-opt seccomp=unconfined --security-opt apparmor=unconfined but you no longer need to specify --privileged.

See also https://github.com/moby/buildkit/blob/v0.4.0/docs/rootless.md

Cache can be now embedded into an image and can be pushed together (#777)

Prior to v0.4.0, cache and image needed to be pushed separately: buildctl build --output type=image,name=example.com/foo/bar,push=true --export-cache type=registry,ref=example.com/foo/bar:cache --import-cache type=registry,ref=example.com/foo/bar:cache

Now cache be embedded into an image by specifying --export-cache type=inline and on importing you can just point the --import-cache type=registry,ref=example.com/foo/bar directly to your end image.

Cache can be now exported to a local filesystem (#615 , #807)

Cache can be now exported to a local filesystem (e.g. Travis CI cache directories) using --export-cache type=local,dest=/path/to/dir and can be imported using --import-cache type=local,src=/path/to/dir.

New buildctl CLI (#807)

CLI options for frontend options, exporters and cache export and import have been normalized to csv style for less verbosity and (future) support for multiple exporters and cache sources.

Frontend options:

Old:

--frontend-opt foo=bar --frontend-opt bar=baz

New:

--opt foo=bar,bar=baz --opt baz=bay

Exporters:

Old:

--exporter image --exporter-opt name=foo --exporter-opt push=true
--exporter local --exporter-opt output=out

New:

--output type=image,name=foo,push=true
--output type=local,dest=out

Cache:

Old:

--export-cache foo --export-cache-opt mode=max
--import-cache foo

New:

--export-cache type=registry,ref=foo,mode=max
--export-cache type=inline
--export-cache type=local,dest=/path/to/dir
--import-cache type=registry,ref=foo
--import-cache type=local,src=/path/to/dir

Legacy syntax is still supported but has been deprecated.

Contributors

  • Tõnis Tiigi
  • Akihiro Suda
  • Tibor Vass
  • Sebastiaan van Stijn
  • Dave Chen
  • Iskander Sharipov
  • Derek McGowan
  • Fernando Miguel
  • Natasha Jarus
  • Patrick Van Stee
  • Wei Fu

Changes

v0.3.3...v0.4.0

v0.3.3

21 Nov 05:40
8cf9bec
Compare
Choose a tag to compare

Images

https://hub.docker.com/r/moby/buildkit/tags/

  • docker.io/moby/buildkit:v0.3.3
    sha256:7eaccec7a90a43546b0fa870e55c860014fc3bbdd55c3697f59e7c812c246c06
  • docker.io/moby/buildkit:v0.3.3-rootless
    sha256:86d5b8565b37057098f1e7f2f1abd6b5263390ed92cab17d2ef62f3c9eadd704

Notable Changes

  • buildctl: match --no-cache to frontend options
  • buildctl: match --import-cache to frontend options
  • dockerfile: allow symlinked Dockerfile location
  • dockerfile: set copy helper to docker/dockerfile-copy:v0.1.9
  • dockerfile: fix ADD from URLs colliding with COPY on windows
  • docs: documentation for experimental dockerfile features
  • solver: fix authentication on image config resolve through external frontend

Contributors

  • Tõnis Tiigi
  • Akihiro Suda
  • Tibor Vass
  • Alice Frosi
  • Kunal Kushwaha
  • Ondrej Fabry

Changes

  • 2e3058e dockerfile: allow symlinks on reading Dockerfile
  • bf8c057 Merge pull request #727 from tonistiigi/add-fix
  • f2f4b53 Merge pull request #729 from tonistiigi/session-context
  • ef00d30 Merge pull request #728 from tonistiigi/docs-update
  • f6a8961 llbsolver: keep session for context calls
  • b3e4cdf dockerfile: document more mount options
  • c840e79 dockerfile: avoid urls in context filter
  • 594f95b Merge pull request #722 from kunalkushwaha/fix-git-2-http
  • 71da3f8 Merge pull request #725 from ondrej-fabry/patch-1
  • 7218446 Correct trivial typos
  • 373dc26 replace git: with https:
  • 471f506 Merge pull request #718 from tonistiigi/update-dockerfile-ref
  • e00566d Merge pull request #715 from alicefr/other-arch
  • a008ce3 Set GOARCH=amd64 for building stage for darwin/windows
  • 9d3426d dockerfile: update image refs
  • c3a857e Merge pull request #716 from tonistiigi/copy-source
  • ec2ab81 dockerfile: update copy source repo
  • 5aab829 Merge pull request #710 from AkihiroSuda/dfdoc
  • b5003d5 update docs

https://travis-ci.org/moby/buildkit/builds/457793396

v0.3.2

31 Oct 05:50
fba893e
Compare
Choose a tag to compare

Notable changes:

  • Fix an issue on running on CoreOS (#704)

Full changes: v0.3.1...v0.3.2

v0.3.1

17 Oct 04:09
867bcd3
Compare
Choose a tag to compare

v0.3.0: Merge pull request #676 from tonistiigi/dockerfile-release

12 Oct 05:45
663f185
Compare
Choose a tag to compare
docker run --name buildkit -d --privileged -p 1234:1234 moby/buildkit:v0.3.0 --addr tcp://0.0.0.0:1234
# docker run --name buildkit -d --privileged -p 1234:1234 moby/buildkit:v0.3.0-rootless --addr tcp://0.0.0.0:1234
export BUILDKIT_HOST=tcp://0.0.0.0:1234
# docker cp buildkit:/usr/bin/buildctl /usr/local/bin/
buildctl build --help