Skip to content

Commit 858839f

Browse files
committed
Simplify demonstration of sbom download
Use `sbom download` from the local image and omit the need to run registry:2. Signed-off-by: Aidan Delaney <[email protected]>
1 parent bc33875 commit 858839f

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -224,14 +224,11 @@ pack build test-ruby-app --path ./ruby-sample-app --buildpack ./ruby-buildpack
224224
```
225225
<!--+- "{{execute}}"+-->
226226
227-
Viewing your bill-of-materials requires first pushing the built image to a container registry and then querying the bill-of-materials. If you are a `docker` user, we can experiment with an OCI container registry by running an instance of Docker's `registry:2` (as an aside, the standard Docker daemon is a container registry, but is not fully [OCI compliant](https://opencontainers.org/)).
227+
Viewing your bill-of-materials requires extracting (or `download`ing) the bill-of-materials from your local image. This command can take some time to return.
228228
229229
<!-- test:exec -->
230230
```bash
231-
docker run -d -p 5000:5000 registry:2
232-
docker image tag test-ruby-app localhost:5000/test-ruby-app
233-
docker push localhost:5000/test-ruby-app
234-
pack sbom download localhost:5000/test-ruby-app
231+
pack sbom download test-ruby-app
235232
```
236233
<!--+- "{{execute}}"+-->
237234

katacoda/scenarios/buildpack-author-guide/adding-bill-of-materials.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,14 +219,11 @@ Then rebuild your app using the updated buildpack:
219219
pack build test-ruby-app --path ./ruby-sample-app --buildpack ./ruby-buildpack
220220
```{{execute}}
221221
222-
Viewing your bill-of-materials requires first pushing the built image to a container registry and then querying the bill-of-materials. If you are a `docker` user, we can experiment with an OCI container registry by running an instance of Docker's `registry:2` (as an aside, the standard Docker daemon is a container registry, but is not fully [OCI compliant](https://opencontainers.org/)).
222+
Viewing your bill-of-materials requires extracting (or `download`ing) the bill-of-materials from your local image. This command can take some time to return.
223223
224224
<!-- test:exec -->
225225
```bash
226-
docker run -d -p 5000:5000 registry:2
227-
docker image tag test-ruby-app localhost:5000/test-ruby-app
228-
docker push localhost:5000/test-ruby-app
229-
pack sbom download localhost:5000/test-ruby-app
226+
pack sbom download test-ruby-app
230227
```{{execute}}
231228
232229
The SBOM information is now downloaded to the local file system:

0 commit comments

Comments
 (0)