You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated the tekton documentation to use the new buildpack task (#837)
* Updated the tekton documentation to use the new buildpack task supporting the extension. #814
Signed-off-by: cmoulliard <[email protected]>
* Add additional words to vale dictionary
Signed-off-by: cmoulliard <[email protected]>
* Extend the documentation to have a chapter covering extension. Add new pipeline parameters
Signed-off-by: cmoulliard <[email protected]>
* Review the scenario and tested it using ubi8 and jammy builder images
Signed-off-by: cmoulliard <[email protected]>
* Fix some vale vocabularies
Signed-off-by: cmoulliard <[email protected]>
* Remove the cache workspace as not used and documented part of task's documentation
Signed-off-by: cmoulliard <[email protected]>
* Switch the builder image to use: cnbs/sample-builder
Signed-off-by: cmoulliard <[email protected]>
---------
Signed-off-by: cmoulliard <[email protected]>
[Tekton][tekton] is an open-source CI/CD system running on k8s.
11
11
12
-
The CNB project has created two reference "tasks" for performing buildpacks builds,
13
-
both of which use the [lifecycle][lifecycle]directly (i.e. they do not use `pack`).
12
+
The CNB project has created a reference "task" for performing buildpacks builds with or without extensions (aka Dockerfile to be applied) top
13
+
of the [lifecycle][lifecycle]tool (i.e. they do not use `pack`).
14
14
15
-
<!--more-->
15
+
The [Buildpacks Phases Task][buildpacks-phases] calls the individual [lifecycle][lifecycle] binaries (prepare, analyze, detect, restore, build or extender, export), to run each phase in a separate container.
16
16
17
-
They are:
17
+
The uid and gid as defined part of the builder image will be used to build the image.
18
18
19
-
1.[buildpacks][buildpacks-task]`task`→ This task, which we recommend using, calls the `creator` binary of the
20
-
[lifecycle][lifecycle] to construct, and optionally publish, a runnable image.
21
-
2.[buildpacks-phases][buildpacks-phases]`task`→ This task calls the individual [lifecycle][lifecycle] binaries, to run each phase in a separate container.
19
+
The different parameters to customize the task are defined part of the task's documentation under the section `parameters`.
22
20
23
21
## Set Up
24
22
@@ -32,28 +30,22 @@ Before we get started, make sure you've got the following installed:
32
30
33
31
### 1. Install Tekton and Tekton Dashboard
34
32
35
-
To start, set up `Tekton`, using the Tekton [documentation][tekton-setup].
33
+
To start, set up a `Tekton` version `>= 1.0`, using the Tekton [documentation][tekton-setup].
36
34
37
35
We also recommend using the `Tekton dashboard`. To install it, follow the steps in the [dashboard docs][tekton-dashboard-setup], and
38
36
start the dashboard server.
39
37
40
-
### 2. Install the Buildpacks Task
41
-
42
-
Install the latest version of the buildpacks task (currently `0.6`), by running:
> NOTE: If you run Tekton on a Kind or Minikube Kubernetes cluster, be sure to set the `coschedule` flag to `disabled` within the `feature-flags` ConfigMap.
47
39
48
-
### 3. Install git-clone Task
40
+
### 2. Install the Buildpacks Task
49
41
50
-
For our `pipeline`, we will use the `git-clone` task to clone a repository. Install the latest version (currently `0.4`), by running:
42
+
Install the latest version of the buildpacks task (currently `0.3`), by running:
Once the application is successfully built, you can pull it and run it by running:
239
+
Once the application is successfully built, you can pull and run it by running:
229
240
230
241
```shell
231
-
docker pull some-output-image
242
+
docker | podman pull <REGISTRY/IMAGE NAME>
243
+
docker | podman run -it <REGISTRY/IMAGE NAME>
244
+
```
245
+
246
+
### 7. Using extension
247
+
248
+
If your builder image supports the [extension][extension] mechanism able to customize the [build][extension-build] or the [run (aka execution)][extension-run], then you can replay this scenario by simply changing within the `PipelineRun` resource file the builder parameter
When the build process starts, then you should see, part of the extender step, if you build a Java runtime (Quarkus, Spring boot, etc) such log messages if the extension installs by example a different JDK
279
+
```txt
280
+
2025-06-27T11:32:25.067007701Z time="2025-06-27T11:32:25Z" level=info msg="Performing slow lookup of group ids for root"
0 commit comments