Skip to content

Commit b3d14ec

Browse files
Do not reference CNAB invocation images in documentation (#3200)
* Do not reference CNAB invocation images As CNAB is an implementation detail as this point, we no longer want to use the term 'invocation image'. Instead we should use the term 'bundle image'. This PR ensures that the current references to 'invocation image' is changed to 'bundle image'. Signed-off-by: Kim Christensen <kimworking@gmail.com> --------- Signed-off-by: Kim Christensen <kimworking@gmail.com> Co-authored-by: schristoff <28318173+schristoff@users.noreply.github.com>
1 parent d954afe commit b3d14ec

File tree

84 files changed

+228
-226
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+228
-226
lines changed

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ dependency injection and testing strategies.
573573
this repository
574574
* **docs**: our website
575575
* **pkg**
576-
* **build**: implements building the invocation image.
576+
* **build**: implements building the bundle image.
577577
* **cache**: handles the cache of bundles that have been pulled by commands
578578
like `porter install --reference`.
579579
* **cnab**: deals with the CNAB spec

cmd/exec/build.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
func buildBuildCommand(m *exec.Mixin) *cobra.Command {
1111
cmd := &cobra.Command{
1212
Use: "build",
13-
Short: "Generate Dockerfile lines for the bundle invocation image",
13+
Short: "Generate Dockerfile lines for the bundle image",
1414
Run: func(cmd *cobra.Command, args []string) {
1515
fmt.Fprintln(m.Config.Out, "# exec mixin has no buildtime dependencies")
1616
},

cmd/porter/bundle.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func buildBundleBuildCommand(p *porter.Porter) *cobra.Command {
5353
cmd := &cobra.Command{
5454
Use: "build",
5555
Short: "Build a bundle",
56-
Long: `Builds the bundle in the current directory by generating a Dockerfile and a CNAB bundle.json, and then building the invocation image.
56+
Long: `Builds the bundle in the current directory by generating a Dockerfile and a CNAB bundle.json, and then building the bundle image.
5757
5858
The docker driver builds the bundle image using the local Docker host. To use a remote Docker host, set the following environment variables:
5959
DOCKER_HOST (required)
@@ -85,7 +85,7 @@ The docker driver builds the bundle image using the local Docker host. To use a
8585
f.StringVarP(&opts.Dir, "dir", "d", "",
8686
"Path to the build context directory where all bundle assets are located. Defaults to the current directory.")
8787
f.StringVar(&opts.Driver, "driver", porter.BuildDriverDefault,
88-
fmt.Sprintf("Driver for building the invocation image. Allowed values are: %s", strings.Join(porter.BuildDriverAllowedValues, ", ")))
88+
fmt.Sprintf("Driver for building the bundle image. Allowed values are: %s", strings.Join(porter.BuildDriverAllowedValues, ", ")))
8989
_ = f.MarkHidden("driver") // Hide the driver flag since there aren't any choices to make right now
9090
f.StringArrayVar(&opts.BuildArgs, "build-arg", nil,
9191
"Set build arguments in the template Dockerfile (format: NAME=VALUE). May be specified multiple times. Max length is 5,000 characters.")
@@ -94,7 +94,7 @@ The docker driver builds the bundle image using the local Docker host. To use a
9494
f.StringArrayVar(&opts.Secrets, "secret", nil,
9595
"Secret file to expose to the build (format: id=mysecret,src=/local/secret). Custom values are accessible as build arguments in the template Dockerfile and in the manifest using template variables. May be specified multiple times.")
9696
f.BoolVar(&opts.NoCache, "no-cache", false,
97-
"Do not use the Docker cache when building the bundle's invocation image.")
97+
"Do not use the Docker cache when building the bundle image.")
9898
f.StringArrayVar(&opts.Customs, "custom", nil,
9999
"Define an individual key-value pair for the custom section in the form of NAME=VALUE. Use dot notation to specify a nested custom field. May be specified multiple times. Max length is 5,000 characters when used as a build argument.")
100100
f.BoolVar(&opts.InsecureRegistry, "insecure-registry", false,
@@ -143,9 +143,9 @@ func buildBundlePublishCommand(p *porter.Porter) *cobra.Command {
143143
cmd := cobra.Command{
144144
Use: "publish",
145145
Short: "Publish a bundle",
146-
Long: `Publishes a bundle by pushing the invocation image and bundle to a registry.
146+
Long: `Publishes a bundle by pushing the bundle image and bundle to a registry.
147147
148-
Note: if overrides for registry/tag/reference are provided, this command only re-tags the invocation image and bundle; it does not re-build the bundle.`,
148+
Note: if overrides for registry/tag/reference are provided, this command only re-tags the bundle image and bundle; it does not re-build the bundle.`,
149149
Example: ` porter bundle publish
150150
porter bundle publish --file myapp/porter.yaml
151151
porter bundle publish --dir myapp
@@ -188,7 +188,7 @@ func buildBundleArchiveCommand(p *porter.Porter) *cobra.Command {
188188
cmd := cobra.Command{
189189
Use: "archive FILENAME --reference PUBLISHED_BUNDLE",
190190
Short: "Archive a bundle from a reference",
191-
Long: "Archives a bundle by generating a gzipped tar archive containing the bundle, invocation image and any referenced images.",
191+
Long: "Archives a bundle by generating a gzipped tar archive containing the bundle, bundle image and any referenced images.",
192192
Example: ` porter bundle archive mybun.tgz --reference ghcr.io/getporter/examples/porter-hello:v0.2.0
193193
porter bundle archive mybun.tgz --reference localhost:5000/ghcr.io/getporter/examples/porter-hello:v0.2.0 --force
194194
porter bundle archive mybun.tgz --compression NoCompression --reference ghcr.io/getporter/examples/porter-hello:v0.2.0

cmd/porter/inspect.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ func buildBundleInspectCommand(p *porter.Porter) *cobra.Command {
1010
cmd := cobra.Command{
1111
Use: "inspect REFERENCE",
1212
Short: "Inspect a bundle",
13-
Long: `Inspect a bundle by printing the invocation images and any related images images.
13+
Long: `Inspect a bundle by printing the bundle images and any related images images.
1414
1515
If you would like more information about the bundle, the porter explain command will provide additional information,
1616
like parameters, credentials, outputs and custom actions available.

cmd/porter/installations.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ The first argument is the name of the installation to create. This defaults to t
224224
225225
Once a bundle has been successfully installed, the install action cannot be repeated. This is a precaution to avoid accidentally overwriting an existing installation. If you need to re-run install, which is common when authoring a bundle, you can use the --force flag to by-pass this check.
226226
227-
Porter uses the docker driver as the default runtime for executing a bundle's invocation image, but an alternate driver may be supplied via '--driver/-d' or the PORTER_RUNTIME_DRIVER environment variable.
227+
Porter uses the docker driver as the default runtime for executing a bundle image, but an alternate driver may be supplied via '--driver/-d' or the PORTER_RUNTIME_DRIVER environment variable.
228228
For example, the 'debug' driver may be specified, which simply logs the info given to it and then exits.
229229
230230
The docker driver runs the bundle container using the local Docker host. To use a remote Docker host, set the following environment variables:
@@ -274,7 +274,7 @@ func buildInstallationUpgradeCommand(p *porter.Porter) *cobra.Command {
274274
275275
The first argument is the installation name to upgrade. This defaults to the name of the bundle.
276276
277-
Porter uses the docker driver as the default runtime for executing a bundle's invocation image, but an alternate driver may be supplied via '--driver/-d' or the PORTER_RUNTIME_DRIVER environment variable.
277+
Porter uses the docker driver as the default runtime for executing a bundle image, but an alternate driver may be supplied via '--driver/-d' or the PORTER_RUNTIME_DRIVER environment variable.
278278
For example, the 'debug' driver may be specified, which simply logs the info given to it and then exits.
279279
280280
The docker driver runs the bundle container using the local Docker host. To use a remote Docker host, set the following environment variables:
@@ -322,7 +322,7 @@ func buildInstallationInvokeCommand(p *porter.Porter) *cobra.Command {
322322
323323
The first argument is the installation name upon which to invoke the action. This defaults to the name of the bundle.
324324
325-
Porter uses the docker driver as the default runtime for executing a bundle's invocation image, but an alternate driver may be supplied via '--driver/-d' or the PORTER_RUNTIME_DRIVER environment variable.
325+
Porter uses the docker driver as the default runtime for executing a bundle image, but an alternate driver may be supplied via '--driver/-d' or the PORTER_RUNTIME_DRIVER environment variable.
326326
For example, the 'debug' driver may be specified, which simply logs the info given to it and then exits.
327327
328328
The docker driver runs the bundle container using the local Docker host. To use a remote Docker host, set the following environment variables:
@@ -370,7 +370,7 @@ func buildInstallationUninstallCommand(p *porter.Porter) *cobra.Command {
370370
371371
The first argument is the installation name to uninstall. This defaults to the name of the bundle.
372372
373-
Porter uses the docker driver as the default runtime for executing a bundle's invocation image, but an alternate driver may be supplied via '--driver/-d'' or the PORTER_RUNTIME_DRIVER environment variable.
373+
Porter uses the docker driver as the default runtime for executing a bundle image, but an alternate driver may be supplied via '--driver/-d'' or the PORTER_RUNTIME_DRIVER environment variable.
374374
For example, the 'debug' driver may be specified, which simply logs the info given to it and then exits.
375375
376376
The docker driver runs the bundle container using the local Docker host. To use a remote Docker host, set the following environment variables:

docs/content/architecture-buildtime.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Mixins are cached in your PORTER_HOME directory, and the kubernetes mixin can be
1818
Porter does not support specifying which version of a mixin to use in a bundle yet.
1919
You can follow the [Mixins are Bundles proposal](https://github.com/getporter/proposals/blob/main/pep/005-mixins-are-bundles.md) to keep track of that feature's progress.
2020

21-
When the bundle author runs `porter build`, Porter first generates a Dockerfile to create an image for the bundle (known as the invocation image or installer).
21+
When the bundle author runs `porter build`, Porter first generates a Dockerfile to create an image for the bundle (known as the bundle image or installer).
2222
You can define your own [custom Dockerfile](/docs/bundle/custom-dockerfile/) to customize and optimize the image.
2323
The Dockerfile contains the following: a base image (debian), additional customizations generated by the mixins, and a COPY statement to include the files contained in the bundle directory where the porter.yaml file is located.
2424
A copy of the Porter runtime, the mixin runtimes and the porter.yaml file are copied into the bundle.

docs/content/architecture-runtime.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The "Porter runtime" specifically refers to the embedded copy of the porter-runt
99
Below is an outline of what happens when a bundle is executed:
1010

1111
1. Porter identifies all parameters and credentials, resolving parameter and credentials sets against the host environment and any configured secret stores.
12-
2. Porter runs a container using the bundle's invocation image, injecting the parameters and credentials as files and/or environment variables.
12+
2. Porter runs a container using the bundle image, injecting the parameters and credentials as files and/or environment variables.
1313
3. The entrypoint of the container is the Porter runtime. It parses the porter.yaml file embedded in the bundle, and executes the steps defined for the current action (such as install or upgrade).
1414
4. For each step, Porter calls the corresponding mixins which are also embedded in the bundle.
1515
5. The mixin performs an action, most commonly translating the yaml snippet for the step into a call to a development tool. For example, the helm3 mixin handles calling out to the helm CLI.

docs/content/archive-bundles.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Archiving Bundles
33
description: Archiving Bundles with Porter
44
---
55

6-
Porter allows you to share bundles by [publishing](/distributing-bundles/) them to an OCI registry. Porter also allows you to copy a bundle from one registry to another. Using these commands, bundle users have flexibility in how they leverage published bundles. What if you want to use a published bundle on a disconnected or edge network that has limited connectivity? The `porter archive` command and the `porter publish` commands allow you to take the bundle from a registry on one network, move it to the network or location, and republish it into another registry for use within that environment. The generated bundle archive contains the CNAB `bundle.json`, along with an OCI [image layout](https://github.com/opencontainers/image-spec/blob/master/image-layout.md) containing the invocation image and any images declared in the `images` section of the `bundle.json`. This enables the entire bundle to be easily moved into a private data center or across an air-gapped network, and republished within that environment.
6+
Porter allows you to share bundles by [publishing](/distributing-bundles/) them to an OCI registry. Porter also allows you to copy a bundle from one registry to another. Using these commands, bundle users have flexibility in how they leverage published bundles. What if you want to use a published bundle on a disconnected or edge network that has limited connectivity? The `porter archive` command and the `porter publish` commands allow you to take the bundle from a registry on one network, move it to the network or location, and republish it into another registry for use within that environment. The generated bundle archive contains the CNAB `bundle.json`, along with an OCI [image layout](https://github.com/opencontainers/image-spec/blob/master/image-layout.md) containing the bundle image and any images declared in the `images` section of the `bundle.json`. This enables the entire bundle to be easily moved into a private data center or across an air-gapped network, and republished within that environment.
77

88
For a working example of how to move a bundle across an airgap, read [Example: Airgapped Environments](/examples/airgap/).
99

@@ -56,7 +56,7 @@ drwxr-xr-x 0 jeremyrickard staff 0 Oct 18 10:27 ./artifacts/layout/blobs/
5656
-rw-r--r-- 0 jeremyrickard staff 2955 Oct 18 10:27 ./bundle.json
5757
```
5858

59-
In this archive file, you will see the `bundle.json`, along with all of the artifacts that represent the OCI image layout. In this case, we had two images, the invocation image and an application image. They are both written to the `artifacts/` directory as part of the OCI image layout.
59+
In this archive file, you will see the `bundle.json`, along with all of the artifacts that represent the OCI image layout. In this case, we had two images, the bundle image and an application image. They are both written to the `artifacts/` directory as part of the OCI image layout.
6060

6161
## Publish a Bundle Archive
6262

docs/content/blog/migrate-from-docker-app.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ We will use the [docker-compose mixin] to migrate an existing Docker App to Port
194194

195195
```console
196196
$ porter publish
197-
Pushing CNAB invocation image...
197+
Pushing CNAB bundle image...
198198
The push refers to repository [docker.io/carolynvs/my-docker-app-installer]
199199
a5fd17ef8522: Preparing
200200
878a51fed4d7: Preparing

docs/content/design/kubernetes-mixin.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ In order to build a CNAB with the kubernetes mixin, the bundle author should pla
1515

1616
## Buildtime
1717

18-
Rather than trying to rebuild the functionality of `kubectl`, this mixin will contribute lines to the invocation image Dockerfile that will result in `kubectl` being installed:
18+
Rather than trying to rebuild the functionality of `kubectl`, this mixin will contribute lines to the bundle image Dockerfile that will result in `kubectl` being installed:
1919

2020
```
2121
RUN apt-get update && \
@@ -57,7 +57,7 @@ The mixin allows bundle authors to specify the following parameters on install:
5757

5858
### Upgrade
5959

60-
At runtime, the mixin will use the `kubectl apply` command when an `upgrade` action is specified. This will result in the resources defined in the supplied manifests being created or deleted, as appropriate. As the manifests will be contained within the bundle's invocation image, an upgrade action against an invocation image that was used for install is a no-op. The use of the `apply` command will allow the use of the `wait` flag The mixin will not support all of the [options](https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#apply) available, specifically `dry-run`, or options related to editing or deleting resources. Available parameters are spelled out below.
60+
At runtime, the mixin will use the `kubectl apply` command when an `upgrade` action is specified. This will result in the resources defined in the supplied manifests being created or deleted, as appropriate. As the manifests will be contained within the bundle image, an upgrade action against an bundle image that was used for install is a no-op. The use of the `apply` command will allow the use of the `wait` flag The mixin will not support all of the [options](https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#apply) available, specifically `dry-run`, or options related to editing or deleting resources. Available parameters are spelled out below.
6161

6262
| Parameter | Type | Description | Default |
6363
|-----------|------|-------------|---------|

docs/content/docs/administration/copy-bundles.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ aliases:
66
- /copying-bundles/
77
---
88

9-
Porter allows you to copy a bundle, and all associated images, from one registry to another. This includes both the invocation images and the images defined in the `images` section of the bundle. For example, consider the following `images` map:
9+
Porter allows you to copy a bundle, and all associated images, from one registry to another. This includes both the bundle images and the images defined in the `images` section of the bundle. For example, consider the following `images` map:
1010

1111
```yaml
1212
images:
@@ -22,7 +22,7 @@ images:
2222
digest: "sha256:85b1a9b4b60a4cf73a23517dad677e64edf467107fa7d58fce9c50e6a3e4c914"
2323
```
2424
25-
When this bundle is copied, the invocation image, along with the `backend` and `websvc` images will be copied to the new repository. If the bundle author has properly used image [wiring](/wiring/#wiring-images), the new image references will be available within the bundle at run-time.
25+
When this bundle is copied, the bundle image, along with the `backend` and `websvc` images will be copied to the new repository. If the bundle author has properly used image [wiring](/wiring/#wiring-images), the new image references will be available within the bundle at run-time.
2626

2727
This is useful when you have restrictions on where you can pull Docker images from or would otherwise like to have control over assets you will be using. Any operation on the copied bundle will utilize these copied images as well. IIf you'd like to rename something within a registry, Porter also allows you to copy from one bundle tag to another bundle tag inside the same registry.
2828

0 commit comments

Comments
 (0)