From aee26b2dd720d9e7cd8e86b8d54d6381fa528002 Mon Sep 17 00:00:00 2001 From: Nick Hammond Date: Tue, 1 Oct 2024 14:32:58 -0700 Subject: [PATCH 1/3] Add a builder example section about buildpacks --- docs/configuration/builder-examples.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/configuration/builder-examples.md b/docs/configuration/builder-examples.md index 78a07d3..8c36c55 100644 --- a/docs/configuration/builder-examples.md +++ b/docs/configuration/builder-examples.md @@ -91,6 +91,20 @@ builder: options: mode=max,image-manifest=true,oci-mediatypes=true ``` +## [Building without a Dockerfile locally](#building-without-a-dockerfile-locally) + +Your application image can also be built using [cloud native buildpacks](https://buildpacks.io/) instead of using a `Dockerfile` and the default `docker build` process. This example uses Heroku's [ruby](https://github.com/heroku/heroku-buildpack-ruby) and [Procfile](https://github.com/heroku/buildpacks-procfile) buildpack to build your final image. + +``` yaml + pack: + builder: heroku/builder:24 + buildpacks: + - heroku/ruby + - heroku/procfile +``` + +To provide any additional customizations to you can add a [project descriptor file](https://buildpacks.io/docs/for-app-developers/how-to/build-inputs/use-project-toml/)(project.toml) in the root of your application. + ### [GHA cache configuration](#gha-cache-configuration) To make it work on the GitHub action workflow, you need to set up the buildx and expose [authentication configuration for the cache](https://docs.docker.com/build/cache/backends/gha/#authentication). From af3e729cdfa125f7d7a120abc5d7987c53a36534 Mon Sep 17 00:00:00 2001 From: Nick Hammond Date: Tue, 1 Oct 2024 14:39:51 -0700 Subject: [PATCH 2/3] Add arch option --- docs/configuration/builder-examples.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/configuration/builder-examples.md b/docs/configuration/builder-examples.md index 8c36c55..3312da1 100644 --- a/docs/configuration/builder-examples.md +++ b/docs/configuration/builder-examples.md @@ -97,6 +97,7 @@ Your application image can also be built using [cloud native buildpacks](https:/ ``` yaml pack: + arch: amd64 builder: heroku/builder:24 buildpacks: - heroku/ruby From c9d2103622b46f4e3580f1e6c0d22ceace6b2f4c Mon Sep 17 00:00:00 2001 From: Nick Hammond Date: Tue, 1 Oct 2024 14:42:01 -0700 Subject: [PATCH 3/3] arch should be set at builder level --- docs/configuration/builder-examples.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/configuration/builder-examples.md b/docs/configuration/builder-examples.md index 3312da1..8c36c55 100644 --- a/docs/configuration/builder-examples.md +++ b/docs/configuration/builder-examples.md @@ -97,7 +97,6 @@ Your application image can also be built using [cloud native buildpacks](https:/ ``` yaml pack: - arch: amd64 builder: heroku/builder:24 buildpacks: - heroku/ruby