From 894c80ed581dde193ae2946b45fe9e51aa24a527 Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Thu, 28 Nov 2024 09:37:13 +0100 Subject: [PATCH 1/4] fix: add missing release date, link for buildx 0.18.0 release Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> --- content/manuals/build/release-notes.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/content/manuals/build/release-notes.md b/content/manuals/build/release-notes.md index 80afc400a1..4ba5b76b88 100644 --- a/content/manuals/build/release-notes.md +++ b/content/manuals/build/release-notes.md @@ -12,6 +12,11 @@ fixes in [Docker Buildx](https://github.com/docker/buildx). ## 0.18.0 +{{< release-date date="2024-10-31" >}} + +The full release note for this release is available +[on GitHub](https://github.com/docker/buildx/releases/tag/v0.18.0). + ### New - The `docker buildx inspect` command now displays BuildKit daemon configuration options set with a TOML file. [docker/buildx#2684](https://github.com/docker/buildx/pull/2684) From 3d4c545f65c2e68b8df431e30c432d84aecd24e7 Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Thu, 28 Nov 2024 10:12:26 +0100 Subject: [PATCH 2/4] build: buildx v0.19.0, v0.19.1 release notes Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> --- content/manuals/build/release-notes.md | 57 ++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/content/manuals/build/release-notes.md b/content/manuals/build/release-notes.md index 4ba5b76b88..9e27b9f79b 100644 --- a/content/manuals/build/release-notes.md +++ b/content/manuals/build/release-notes.md @@ -10,6 +10,63 @@ toc_max: 2 This page contains information about the new features, improvements, and bug fixes in [Docker Buildx](https://github.com/docker/buildx). +## 0.19.1 + +{{< release-date date="2024-11-27" >}} + +The full release note for this release is available +[on GitHub](https://github.com/docker/buildx/releases/tag/v0.19.1). + +### Bug fixes + +- Reverted the change in v0.19.0 that added new object notation for the fields + that previously required CSV strings in Bake definition. This enhancement was + reverted because of backwards incompatibility issues were discovered in some + edge cases. This feature has now been postponed to the v0.20.0 release. + [docker/buildx#2824](https://github.com/docker/buildx/pull/2824) + +## 0.19.0 + +{{< release-date date="2024-11-27" >}} + +The full release note for this release is available +[on GitHub](https://github.com/docker/buildx/releases/tag/v0.19.0). + +### New + +- Bake now requires you to allow filesystem entitlements when your build needs + to read or write files outside of your current working directory. + [docker/buildx#2796](https://github.com/docker/buildx/pull/2796), + [docker/buildx#2812](https://github.com/docker/buildx/pull/2812). + + To allow filesystem entitlements, use the `--allow fs.read=` flag for + the `docker buildx bake` command. + + This feature currently only reports a warning when using a local Bake + definition, but will start to produce an error starting from the v0.20 + release. To enable the error in the current release, you can set + `BUILDX_BAKE_ENTITLEMENTS_FS=1`. + +### Enhancements + +- Bake definition now supports new object notation for the fields that previously required CSV strings as inputs. [docker/buildx#2758](https://github.com/docker/buildx/pull/2758) + + > [!NOTE] + > This enhancement was reverted in [v0.19.1](#0191) due to a bug. + +- Bake definition now allows defining validation conditions to variables. [docker/buildx#2794](https://github.com/docker/buildx/pull/2794) +- Metadata file values can now contain JSON array values. [docker/buildx#2777](https://github.com/docker/buildx/pull/2777) +- Improved error messages when using an incorrect format for labels. [docker/buildx#2778](https://github.com/docker/buildx/pull/2778) +- FreeBSD and OpenBSD artifacts are now included in the release. [docker/buildx#2774](https://github.com/docker/buildx/pull/2774), [docker/buildx#2775](https://github.com/docker/buildx/pull/2775), [docker/buildx#2781](https://github.com/docker/buildx/pull/2781) + +### Bug fixes + +- Fixed an issue with printing Bake definitions containing empty Compose networks. [docker/buildx#2790](https://github.com/docker/buildx/pull/2790). + +### Packaging + +- Compose support has been updated to v2.4.4. [docker/buildx#2806](https://github.com/docker/buildx/pull/2806) [docker/buildx#2780](https://github.com/docker/buildx/pull/2780). + ## 0.18.0 {{< release-date date="2024-10-31" >}} From da7ecf0ae4213d0f139def4b2108639626557b07 Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Thu, 28 Nov 2024 10:15:38 +0100 Subject: [PATCH 3/4] build: dockerfile 1.12.0 release note Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> --- .../build/buildkit/dockerfile-release-notes.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/content/manuals/build/buildkit/dockerfile-release-notes.md b/content/manuals/build/buildkit/dockerfile-release-notes.md index 7505071da5..e05d4751de 100644 --- a/content/manuals/build/buildkit/dockerfile-release-notes.md +++ b/content/manuals/build/buildkit/dockerfile-release-notes.md @@ -13,6 +13,21 @@ issues, and bug fixes in [Dockerfile reference](/reference/dockerfile.md). For usage, see the [Dockerfile frontend syntax](frontend.md) page. +## 1.12.0 + +{{< release-date date="2024-11-27" >}} + +The full release note for this release is available +[on GitHub](https://github.com/moby/buildkit/releases/tag/dockerfile%2F1.12.0). + +```dockerfile +# syntax=docker/dockerfile:1.12.0 +``` + +- Fix incorrect description in History line of image configuration with multiple `ARG` instructions. [moby/buildkit#5508] + +[moby/buildkit#5508]: https://github.com/moby/buildkit/pull/5508 + ## 1.11.1 {{< release-date date="2024-11-08" >}} From 8add4562f550debfdb543e09e49301536696ed07 Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Thu, 28 Nov 2024 10:17:24 +0100 Subject: [PATCH 4/4] vendor: github.com/moby/buildkit v0.18.0 Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> --- .../moby/buildkit/frontend/dockerfile/docs/reference.md | 8 ++------ go.mod | 2 +- go.sum | 2 ++ 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/_vendor/github.com/moby/buildkit/frontend/dockerfile/docs/reference.md b/_vendor/github.com/moby/buildkit/frontend/dockerfile/docs/reference.md index 507751da25..a5749ca533 100644 --- a/_vendor/github.com/moby/buildkit/frontend/dockerfile/docs/reference.md +++ b/_vendor/github.com/moby/buildkit/frontend/dockerfile/docs/reference.md @@ -192,11 +192,6 @@ following lines are all treated identically: # dIrEcTiVe=value ``` -The following parser directives are supported: - -- `syntax` -- `escape` - ### syntax @@ -2221,7 +2216,8 @@ Keep the following things in mind about volumes in the Dockerfile. - a drive other than `C:` - **Changing the volume from within the Dockerfile**: If any build steps change the - data within the volume after it has been declared, those changes will be discarded. + data within the volume after it has been declared, those changes will be discarded + when using the legacy builder. When using Buildkit, the changes will instead be kept. - **JSON formatting**: The list is parsed as a JSON array. You must enclose words with double quotes (`"`) rather than single quotes (`'`). diff --git a/go.mod b/go.mod index f9de4c14b4..491345ccc8 100644 --- a/go.mod +++ b/go.mod @@ -16,6 +16,6 @@ replace ( github.com/docker/cli => github.com/docker/cli v27.3.2-0.20241107125754-eb986ae71b0c+incompatible github.com/docker/compose/v2 => github.com/docker/compose/v2 v2.30.3 github.com/docker/scout-cli => github.com/docker/scout-cli v1.15.0 - github.com/moby/buildkit => github.com/moby/buildkit v0.17.1-0.20241031124041-354f2d13c905 + github.com/moby/buildkit => github.com/moby/buildkit v0.18.0 github.com/moby/moby => github.com/moby/moby v27.3.1+incompatible ) diff --git a/go.sum b/go.sum index 5c9dc65e8a..9fcba6476b 100644 --- a/go.sum +++ b/go.sum @@ -316,6 +316,8 @@ github.com/moby/buildkit v0.17.0 h1:ZA/4AxwBbve1f3ZaNNJQiCBtTV62R6YweWNwq4A+sTc= github.com/moby/buildkit v0.17.0/go.mod h1:ru8NFyDHD8HbuKaLXJIjK9nr3x6FZR+IWjtF07S+wdM= github.com/moby/buildkit v0.17.1-0.20241031124041-354f2d13c905 h1:KMEmQThIQYXKvBurcvM+6zZjxP2CoNSsF/wUpW+RC/E= github.com/moby/buildkit v0.17.1-0.20241031124041-354f2d13c905/go.mod h1:ru8NFyDHD8HbuKaLXJIjK9nr3x6FZR+IWjtF07S+wdM= +github.com/moby/buildkit v0.18.0 h1:KSelhNINJcNA3FCWBbGCytvicjP+kjU5kZlZhkTUkVo= +github.com/moby/buildkit v0.18.0/go.mod h1:vCR5CX8NGsPTthTg681+9kdmfvkvqJBXEv71GZe5msU= github.com/moby/locker v1.0.1/go.mod h1:S7SDdo5zpBK84bzzVlKr2V0hz+7x9hWbYC/kq7oQppc= github.com/moby/moby v24.0.2+incompatible h1:yH+5dRHH1x3XRKzl1THA2aGTy6CHYnkt5N924ADMax8= github.com/moby/moby v24.0.2+incompatible/go.mod h1:fDXVQ6+S340veQPv35CzDahGBmHsiclFwfEygB/TWMc=