Skip to content

Commit 10480f2

Browse files
author
Natalie Arellano
committed
Minor fixes
Signed-off-by: Natalie Arellano <[email protected]>
1 parent e7cb3e2 commit 10480f2

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

content/docs/extension-author-guide/create-extension/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
+++
22
title="Create an extension"
33
weight=4
4-
summary="This is a step-by-step tutorial for creating a CNB Image Extension for `curl`."
4+
summary="This is a step-by-step tutorial for creating and using CNB image extensions"
55
+++
66

77
<!--+if false+-->
@@ -15,7 +15,7 @@ Before we get started, make sure you've got the following installed:
1515
## Overview
1616
<!--+end+-->
1717

18-
This is a step-by-step tutorial for creating a CNB Image Extension for `curl`.
18+
This is a step-by-step tutorial for creating and using CNB image extensions.
1919

2020
- [Set up your local environment](/docs/extension-author-guide/create-extension/setup-local-environment)
2121
- [See a build that requires base image extension in order to succeed](/docs/extension-author-guide/create-extension/why-dockerfiles)

content/docs/extension-author-guide/create-extension/build-dockerfile.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ You should see:
6868
ERROR: failed to launch: path lookup: exec: "curl": executable file not found in $PATH
6969
```
7070

71-
What happened: our builder uses run image `cnbs/sample-stack-run:alpine` which does not have `curl` installed, so our
71+
What happened: our builder uses run image `cnbs/sample-stack-run:alpine`, which does not have `curl` installed, so our
7272
process failed to launch.
7373

7474
Let's take a look at how the `samples/curl` extension fixes the error by switching the run image to another image...

content/docs/extension-author-guide/create-extension/run-dockerfile.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,17 +92,20 @@ curl 7.85.0-DEV (x86_64-pc-linux-musl)
9292
What happened: now that `hello-extensions` requires both `tree` and `curl` in its build plan, both extensions are
9393
included in the build and provide the needed dependencies for build and launch, respectively
9494
* The `tree` extension installs `tree` at build time, as before
95-
* The `curl` extension switches the run image to `run-image-curl`, which has `curl` installed. Now our `curl` process
96-
can succeed!
95+
* The `curl` extension switches the run image to `run-image-curl`, which has `curl` installed
96+
97+
Now our `curl` process can succeed!
9798

9899
## What's next?
99100

100101
The `tree` and `curl` examples are very simple, but we can unlock powerful new features with this functionality.
102+
101103
Platforms could have several run images available, each tailored to a specific language family, thus limiting the number
102104
of installed dependencies for each image to the minimum necessary to support the targeted language. Image extensions
103-
could be used to switch the run image to that most appropriate for the current application. Similarly, builder images
104-
could be kept lean if image extensions are used to dynamically install the needed dependencies depending on the
105-
requirements of each application.
105+
could be used to switch the run image to that most appropriate for the current application.
106+
107+
Similarly, builder images could be kept lean if image extensions are used to dynamically install the needed dependencies
108+
for each application.
106109

107110
In the future, both run image switching and run image modification will be supported, opening the door to other use
108111
cases. Consult the [RFC](https://github.com/buildpacks/rfcs/pull/173) for further information.

0 commit comments

Comments
 (0)