Skip to content
This repository was archived by the owner on Mar 13, 2021. It is now read-only.

Commit 8a2ac59

Browse files
committed
Update README
- remove language arg for riff commands - clarify the local build note about using a tag
1 parent c97a5b9 commit 8a2ac59

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,12 @@ Now you can build and deploy your function from the base directory of your app s
146146
To build the `uppercase` sample Boot app that is using a function bean, use:
147147

148148
```sh
149-
riff function create java uppercase --handler uppercase --local-path . --image dev.local/uppercase:v1
149+
riff function create uppercase --handler uppercase --local-path . --image dev.local/uppercase:v1
150150
```
151-
> NOTE: If your Spring Boot application contains a single function bean, then you can omit the `--handler` options since the invoker is able to automatically detect it. You can also omit the `--handler` if the JAR manifest has a `Function-Class` entry.
151+
> NOTE: If your Spring Boot application contains a single function bean, then you can omit the `--handler` flag since the invoker is able to automatically detect it. You can also omit the `--handler` flag if the JAR manifest has a `Function-Class` entry.
152152
153153
> NOTE: You need to provide a tag for the image to avoid Kubernetes trying to download the latest version of the image.
154-
If the specified image tag already exists in the Docker daemon then Kubernetes will use it since `IfNotPresent` is the default pull policy.
154+
The default pull policy is `IfNotPresent` which means that Kubernetes will always attempt to pull the latest image from the registry unless there is a tag specified.
155155

156156
Once the function is up and running you can invoke it using:
157157

@@ -186,9 +186,10 @@ To build with a plain Java function, you can use:
186186

187187
```sh
188188
export GCP_PROJECT=$(gcloud config get-value core/project)
189-
export GIT_REPO= https://github.com/projectriff-samples/java-hello.git
190-
riff function create java Hello --git-repo $GIT_REPO --handler functions.Hello --image gcr.io/$GCP_PROJECT/java-hello --verbose
189+
export GIT_REPO=https://github.com/projectriff-samples/java-hello.git
190+
riff function create hello --git-repo $GIT_REPO --handler functions.Hello --image gcr.io/$GCP_PROJECT/java-hello --verbose
191191
```
192+
192193
> NOTE: If your Spring Boot application contains a single function bean, then you can omit the `--handler` options since the invoker is able to automatically detect it. You can also omit the `--handler` if the JAR manifest has a `Function-Class` entry.
193194
194195
> NOTE: It is possible to have multiple function beans in the same source repository and just refer to the one you want to use when creating the riff function using the `--handler` option.

0 commit comments

Comments
 (0)