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
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>
"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
94
94
f.StringArrayVar(&opts.Secrets, "secret", nil,
95
95
"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.")
96
96
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.")
98
98
f.StringArrayVar(&opts.Customs, "custom", nil,
99
99
"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.")
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.
147
147
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.`,
Copy file name to clipboardexpand all lines: cmd/porter/installations.go
+4-4
Original file line number
Diff line number
Diff line change
@@ -224,7 +224,7 @@ The first argument is the name of the installation to create. This defaults to t
224
224
225
225
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.
226
226
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.
228
228
For example, the 'debug' driver may be specified, which simply logs the info given to it and then exits.
229
229
230
230
The docker driver runs the bundle container using the local Docker host. To use a remote Docker host, set the following environment variables:
The first argument is the installation name to upgrade. This defaults to the name of the bundle.
276
276
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.
278
278
For example, the 'debug' driver may be specified, which simply logs the info given to it and then exits.
279
279
280
280
The docker driver runs the bundle container using the local Docker host. To use a remote Docker host, set the following environment variables:
The first argument is the installation name upon which to invoke the action. This defaults to the name of the bundle.
324
324
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.
326
326
For example, the 'debug' driver may be specified, which simply logs the info given to it and then exits.
327
327
328
328
The docker driver runs the bundle container using the local Docker host. To use a remote Docker host, set the following environment variables:
The first argument is the installation name to uninstall. This defaults to the name of the bundle.
372
372
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.
374
374
For example, the 'debug' driver may be specified, which simply logs the info given to it and then exits.
375
375
376
376
The docker driver runs the bundle container using the local Docker host. To use a remote Docker host, set the following environment variables:
Copy file name to clipboardexpand all lines: docs/content/architecture-buildtime.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ Mixins are cached in your PORTER_HOME directory, and the kubernetes mixin can be
18
18
Porter does not support specifying which version of a mixin to use in a bundle yet.
19
19
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.
20
20
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).
22
22
You can define your own [custom Dockerfile](/docs/bundle/custom-dockerfile/) to customize and optimize the image.
23
23
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.
24
24
A copy of the Porter runtime, the mixin runtimes and the porter.yaml file are copied into the bundle.
Copy file name to clipboardexpand all lines: docs/content/architecture-runtime.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ The "Porter runtime" specifically refers to the embedded copy of the porter-runt
9
9
Below is an outline of what happens when a bundle is executed:
10
10
11
11
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.
13
13
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).
14
14
4. For each step, Porter calls the corresponding mixins which are also embedded in the bundle.
15
15
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.
Copy file name to clipboardexpand all lines: docs/content/archive-bundles.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Archiving Bundles
3
3
description: Archiving Bundles with Porter
4
4
---
5
5
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.
7
7
8
8
For a working example of how to move a bundle across an airgap, read [Example: Airgapped Environments](/examples/airgap/).
-rw-r--r-- 0 jeremyrickard staff 2955 Oct 18 10:27 ./bundle.json
57
57
```
58
58
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.
Copy file name to clipboardexpand all lines: docs/content/design/kubernetes-mixin.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ In order to build a CNAB with the kubernetes mixin, the bundle author should pla
15
15
16
16
## Buildtime
17
17
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:
19
19
20
20
```
21
21
RUN apt-get update && \
@@ -57,7 +57,7 @@ The mixin allows bundle authors to specify the following parameters on install:
57
57
58
58
### Upgrade
59
59
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 bundleimage, 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.
Copy file name to clipboardexpand all lines: docs/content/docs/administration/copy-bundles.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ aliases:
6
6
- /copying-bundles/
7
7
---
8
8
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:
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.
26
26
27
27
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.
0 commit comments