Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to func build/run documentation #5677

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion docs/snippets/proc-building-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- /docs/getting-started/build-run-deploy-func.md
- /docs/functions/building-functions.md
-->
The `build` command uses the project name and the image registry name to construct a fully qualified container image name for the function. If the function project has not previously been built, you are prompted to provide an image registry.
The `build` command uses the project name and the image registry name to construct a fully qualified container image name for the function. If the function project has not previously been built, you are prompted to provide an **image registry**.

=== "func"

Expand All @@ -19,3 +19,6 @@ The `build` command uses the project name and the image registry name to constru
```bash
kn func build
```

!!! note
The coordinates for the **image registry** can be configured through an environment variable (`FUNC_REGISTRY`) as well.
3 changes: 3 additions & 0 deletions docs/snippets/proc-running-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ The `run` command builds an image for your function if required, and runs this i
func run [--registry <registry>]
```

!!! note
The coordinates for the **image registry** can be configured through an environment variable (`FUNC_REGISTRY`) as well.

Using this command also builds the function if necessary.

You can force a rebuild of the image by running the command:
Expand Down
Loading