From 3f689d524b459382328aaa4c2133848f652fa059 Mon Sep 17 00:00:00 2001 From: Juan Bustamante Date: Mon, 18 Sep 2023 15:02:18 -0500 Subject: [PATCH] WIP - removing details Signed-off-by: Juan Bustamante --- text/0000-multiarch-builders-and-package.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/text/0000-multiarch-builders-and-package.md b/text/0000-multiarch-builders-and-package.md index 88dcd971d..c9051d3f6 100644 --- a/text/0000-multiarch-builders-and-package.md +++ b/text/0000-multiarch-builders-and-package.md @@ -198,7 +198,7 @@ On the other hand, when a user exports the buildpack package into the docker dae pack buildpack package my-buildpack --config ./package.toml ``` -`pack` will not be able to create the [image index](https://github.com/opencontainers/image-spec/blob/master/image-index.md) and it will export the buildpack that corresponds to the `host` machine `os/arch` +`pack` will not be able to create the [image index,](https://github.com/opencontainers/image-spec/blob/master/image-index.md) and it will export the buildpack that corresponds to the `host` machine `os/arch` ## Buildpack Builder -In case of packaing a *Builder*, we assume the buildpack authors migrated their `builder.toml` and [remove the stack](https://github.com/buildpacks/pack/issues/1303) concept. +In case of packing a *Builder*, we assume the buildpack authors migrated their `builder.toml` and [remove the stack](https://github.com/buildpacks/pack/issues/1303) concept. A sample `builder.toml` file looks like: @@ -230,15 +230,19 @@ image = "docker.io/paketobuildpacks/build-jammy-tiny:0.2.3" #### Package a multi-arch builder and publish it to a registry ```bash -pack builder create my-jammy-builder --config ./builder.toml --platform "linux/amd64" --platform "linux/arm64" --publish +pack builder create my-jammy-builder --config ./builder.toml \ + --platform "linux/amd64" \ + --platform "linux/arm64" \ + --publish ``` In this case: -`pack` will follow the builder creating process for each provided platform, `build` and `run` images and declared `buildpacks` must be addressable by an [image index](https://github.com/opencontainers/image-spec/blob/master/image-index.md) - +`pack` will follow the builder creation process for **each provided platform**, and each platform corresponds to a different builder image that is exported into a [image index](https://github.com/opencontainers/image-spec/blob/master/image-index.md)