Skip to content

Commit 8c5f0a3

Browse files
author
Natalie Arellano
committed
Merge branch 'main' into more-extensions
2 parents 5c6680b + 77adc63 commit 8c5f0a3

File tree

5 files changed

+18
-27
lines changed

5 files changed

+18
-27
lines changed

content/docs/app-developer-guide/run-an-app.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ Base Image:
5050
Run Images:
5151
cnbs/sample-stack-run:alpine
5252
53+
Rebasable: true
54+
5355
Buildpacks:
5456
ID VERSION HOMEPAGE
5557
samples/java-maven 0.0.1 https://github.com/buildpacks/samples/tree/main/buildpacks/java-maven

content/docs/app-developer-guide/using-cache-image.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,12 @@ pack build localhost:5000/buildpack-examples/second-cache-image-example \
8585
```
8686
<!--+- "{{execute}}"+-->
8787

88+
### Image Retention
89+
90+
Managing the lifecycle of images should be the responsibility of the owner, as `the platform does not automatically clean up old images from the registry`.
91+
You can refer to your registry's documentation to learn how to accomplish this.
92+
* [AWS ECR](https://aws.amazon.com/ecr/) users can find information on how to delete images in the AWS ECR documentation, specifically in the section on [image deletion](https://docs.aws.amazon.com/AmazonECR/latest/userguide/delete_image.html).
93+
* [Docker](https://docs.docker.com/engine/) users can consult the Docker documentation on [Advanced Image Management](https://docs.docker.com/docker-hub/image-management/) to find out how to delete images.
94+
95+
8896
[samples]: https://github.com/buildpack/samples

content/docs/buildpack-author-guide/create-buildpack/adding-bill-of-materials.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ One of the benefits of buildpacks is they can also populate the app image with m
1010
* The process types that are available and the commands associated with them
1111
* The run-image the app image was based on
1212
* The buildpacks were used to create the app image
13+
* Whether the run-image can be rebased with a new version through the `Rebasable` label or not
1314
* And more...!
1415

1516
You can find some of this information using `pack` via its `inspect-image` command. The bill-of-materials information will be available using `pack sbom download`.

content/docs/features/dockerfiles.md

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ An image extension could be defined with the following directory:
5656
* `./bin/detect` is invoked during the `detect` phase. It analyzes application source code to determine if the extension
5757
is needed and contributes build plan entries.
5858
* `./bin/generate` is invoked during the `generate` phase (a new lifecycle phase that happens after `detect`). It
59-
outputs either or both of `build.Dockerfile` or `run.Dockerfile` for extending the builder or run image,
60-
respectively (in the [initial implementation](#phased-approach), only limited `run.Dockerfile`s are allowed).
59+
outputs either or both of `build.Dockerfile` or `run.Dockerfile` for extending the builder or run image.
6160

6261
For more information and to see a build in action,
6362
see [authoring an image extension](/docs/extension-guide/create-extension).
@@ -78,30 +77,9 @@ should be **used with great care**. Platform operators should be mindful that:
7877
may not have all the mixins required by buildpacks that detected. Platforms may wish to optionally re-validate mixins
7978
prior to `build` when using extensions.
8079

81-
### Phased approach
80+
### Putting it all together
8281

83-
Some limitations of the initial implementation of the Dockerfiles feature have already been mentioned, and we'll expand
84-
on them here. As this is a large and complicated feature, the implementation has been split into phases in order to
85-
deliver incremental value and gather feedback.
86-
87-
#### Phase 1 (supported in lifecycle `0.15.0` or greater)
88-
89-
One or more `run.Dockerfile`s each containing a single `FROM` instruction can be used to switch the original run image
90-
to a new image (as no image modifications are permitted, there is no need to run `extend` on the run image)
91-
92-
#### Phase 2 (supported in lifecycle `0.15.0` or greater)
93-
94-
One or more `build.Dockerfile`s can be used to extend the builder image
95-
96-
* A new `extend` lifecycle phase is introduced to apply `build.Dockerfile`s from `generate` to the builder image
97-
98-
#### Phase 3 (future)
99-
100-
One or more `run.Dockerfile`s can be used to extend the run image
101-
102-
* The `extend` lifecycle phase can be run in parallel for the builder and run images
103-
104-
The final ordering of lifecycle phases will look something like the following:
82+
The ordering of lifecycle phases looks like the following:
10583

10684
* `analyze`
10785
* `detect` - after standard detection, `detect` will also run extensions' `./bin/generate`; output Dockerfiles are
@@ -116,9 +94,9 @@ For more information, consult the [migration guide](/docs/reference/spec/migrati
11694

11795
#### Platform support for Dockerfiles
11896

119-
Supported (phases 1 and 2):
97+
Supported:
12098

121-
* [pack cli](https://github.com/buildpacks/pack) (version `0.28.0` and above)
99+
* [pack cli](https://github.com/buildpacks/pack) (prefer version `0.30.0` and above)
122100

123101
Needs support:
124102

katacoda/scenarios/app-developer-guide/run-an-app.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ Base Image:
4242
Run Images:
4343
cnbs/sample-stack-run:alpine
4444

45+
Rebasable: true
46+
4547
Buildpacks:
4648
ID VERSION HOMEPAGE
4749
samples/java-maven 0.0.1 https://github.com/buildpacks/samples/tree/main/buildpacks/java-maven

0 commit comments

Comments
 (0)