Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Commit

Permalink
Update builder references to 0.4.2
Browse files Browse the repository at this point in the history
Signed-off-by: menehune23 <meyera@vmware.com>
  • Loading branch information
menehune23 committed Jun 16, 2023
1 parent 771c749 commit eb90073
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion DEPLOYING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

You can build your function using our provided builder, which already includes buildpacks and an invoker layer:
```
pack build my-function --path . --builder ghcr.io/vmware-tanzu/function-buildpacks-for-knative/functions-builder:0.3.1 --env BP_FUNCTION=path.function --env BP_JVM_VERSION=17
pack build my-function --path . --builder ghcr.io/vmware-tanzu/function-buildpacks-for-knative/functions-builder:0.4.2 --env BP_FUNCTION=path.function --env BP_JVM_VERSION=17
```
Where:
* `my-function` is the name of your runnable function image, later used by Docker.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ The builder is also built and published as an image to `ghcr.io` -- to build an

For example:
```
pack build <image_name> --path /path/to/function --builder ghcr.io/vmware-tanzu/function-buildpacks-for-knative/functions-builder:0.3.1 --env BP_FUNCTION=path.function
pack build <image_name> --path /path/to/function --builder ghcr.io/vmware-tanzu/function-buildpacks-for-knative/functions-builder:0.4.2 --env BP_FUNCTION=path.function
```

You can get started by working with any of our scaffolded code found in `samples` or `templates` in the root directory.
Expand Down
2 changes: 1 addition & 1 deletion samples/java/cloudevents/txt-to-pdf-gradle/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FUNCTION_IMAGE ?= us.gcr.io/daisy-284300/functions/demo:txttopdfjavagradle
FUNCTION := out/image
$(FUNCTION):
@mkdir -p $(@D)
pack build $(FUNCTION_IMAGE) --builder ghcr.io/vmware-tanzu/function-buildpacks-for-knative/functions-builder:0.3.1 --env BP_FUNCTION=com.example.demo.DemoApplication --env BP_JVM_VERSION=17
pack build $(FUNCTION_IMAGE) --builder ghcr.io/vmware-tanzu/function-buildpacks-for-knative/functions-builder:0.4.2 --env BP_FUNCTION=com.example.demo.DemoApplication --env BP_JVM_VERSION=17
printf $(FUNCTION_IMAGE) > $@

build: $(FUNCTION)
Expand Down
2 changes: 1 addition & 1 deletion samples/java/cloudevents/txt-to-pdf-maven/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FUNCTION_IMAGE ?= us.gcr.io/daisy-284300/functions/demo:txttopdfjavamaven
FUNCTION := out/image
$(FUNCTION):
@mkdir -p $(@D)
pack build $(FUNCTION_IMAGE) --path ./spring-java-fn/ --builder ghcr.io/vmware-tanzu/function-buildpacks-for-knative/functions-builder:0.3.1 --env BP_FUNCTION=com.example.demo.DemoApplication --env BP_JVM_VERSION=17
pack build $(FUNCTION_IMAGE) --path ./spring-java-fn/ --builder ghcr.io/vmware-tanzu/function-buildpacks-for-knative/functions-builder:0.4.2 --env BP_FUNCTION=com.example.demo.DemoApplication --env BP_JVM_VERSION=17
printf $(FUNCTION_IMAGE) > $@

build: $(FUNCTION)
Expand Down
2 changes: 1 addition & 1 deletion samples/java/http/request-response-gradle/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FUNCTION_IMAGE ?= us.gcr.io/daisy-284300/functions/demo:reqresponsejavagradle
FUNCTION := out/image
$(FUNCTION):
@mkdir -p $(@D)
pack build $(FUNCTION_IMAGE) --builder ghcr.io/vmware-tanzu/function-buildpacks-for-knative/functions-builder:0.3.1 --env BP_FUNCTION=com.vmware.functions.Handler --env BP_JVM_VERSION=17
pack build $(FUNCTION_IMAGE) --builder ghcr.io/vmware-tanzu/function-buildpacks-for-knative/functions-builder:0.4.2 --env BP_FUNCTION=com.vmware.functions.Handler --env BP_JVM_VERSION=17
printf $(FUNCTION_IMAGE) > $@

build: $(FUNCTION)
Expand Down
2 changes: 1 addition & 1 deletion samples/java/http/request-response-gradle/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This is a sample function for how to create and send HTTP requests via our Java
1. Build the image:

```
pack build request-response --builder ghcr.io/vmware-tanzu/function-buildpacks-for-knative/functions-builder:0.3.1 --env BP_FUNCTION=com.vmware.functions.Handler --env BP_JVM_VERSION=17
pack build request-response --builder ghcr.io/vmware-tanzu/function-buildpacks-for-knative/functions-builder:0.4.2 --env BP_FUNCTION=com.vmware.functions.Handler --env BP_JVM_VERSION=17
```
1. Run it in Docker:
Expand Down
2 changes: 1 addition & 1 deletion samples/java/http/request-response-maven/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FUNCTION_IMAGE ?= us.gcr.io/daisy-284300/functions/demo:reqresponsejavamaven
FUNCTION := out/image
$(FUNCTION):
@mkdir -p $(@D)
pack build $(FUNCTION_IMAGE) --builder ghcr.io/vmware-tanzu/function-buildpacks-for-knative/functions-builder:0.3.1 --env BP_FUNCTION=com.vmware.functions.Handler --env BP_JVM_VERSION=17
pack build $(FUNCTION_IMAGE) --builder ghcr.io/vmware-tanzu/function-buildpacks-for-knative/functions-builder:0.4.2 --env BP_FUNCTION=com.vmware.functions.Handler --env BP_JVM_VERSION=17
printf $(FUNCTION_IMAGE) > $@

build: $(FUNCTION)
Expand Down
2 changes: 1 addition & 1 deletion samples/java/http/request-response-maven/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This is a sample function for how to create and send HTTP requests via our Java
1. Build the image:

```
pack build request-response --builder ghcr.io/vmware-tanzu/function-buildpacks-for-knative/functions-builder:0.3.1 --env BP_FUNCTION=com.vmware.functions.Handler --env BP_JVM_VERSION=17
pack build request-response --builder ghcr.io/vmware-tanzu/function-buildpacks-for-knative/functions-builder:0.4.2 --env BP_FUNCTION=com.vmware.functions.Handler --env BP_JVM_VERSION=17
```
1. Run it in Docker:
Expand Down
2 changes: 1 addition & 1 deletion samples/python/cloudevents/s3-lambda/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
To deploy this, first create the container with the buildpack cli
```
pack build <your_image_name_and_tag> --builder ghcr.io/vmware-tanzu/function-buildpacks-for-knative/functions-builder:0.3.1 --env BP_FUNCTION=main.main
pack build <your_image_name_and_tag> --builder ghcr.io/vmware-tanzu/function-buildpacks-for-knative/functions-builder:0.4.2 --env BP_FUNCTION=main.main
```

Publish it to your registry:
Expand Down
2 changes: 1 addition & 1 deletion samples/python/cloudevents/sqs-lambda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ The folder `knative-function-encrypter` has the function that will be listening
With docker running, build the image from this folder:

```
pack build encrypter --path PATH/TO/knative-function-encrypter --builder ghcr.io/vmware-tanzu/function-buildpacks-for-knative/functions-builder:0.3.1 --env BP_FUNCTION=main.main
pack build encrypter --path PATH/TO/knative-function-encrypter --builder ghcr.io/vmware-tanzu/function-buildpacks-for-knative/functions-builder:0.4.2 --env BP_FUNCTION=main.main
```

Tag and push to your registry:
Expand Down
2 changes: 1 addition & 1 deletion samples/python/cloudevents/txt-to-pdf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FUNCTION_IMAGE ?= us.gcr.io/daisy-284300/functions/demo:txttopdf
FUNCTION := out/image
$(FUNCTION): app/*
@mkdir -p $(@D)
pack build $(FUNCTION_IMAGE) --path ./app/ --builder ghcr.io/vmware-tanzu/function-buildpacks-for-knative/functions-builder:0.3.1 --env BP_FUNCTION=main.main
pack build $(FUNCTION_IMAGE) --path ./app/ --builder ghcr.io/vmware-tanzu/function-buildpacks-for-knative/functions-builder:0.4.2 --env BP_FUNCTION=main.main
printf $(FUNCTION_IMAGE) > $@

build: $(FUNCTION)
Expand Down
2 changes: 1 addition & 1 deletion samples/python/http/adder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This example will take two number and add them up only if the requestor is authe
## Usage
1. We want to first build the image:
```
pack build adder --builder ghcr.io/vmware-tanzu/function-buildpacks-for-knative/functions-builder:0.3.1 --env BP_FUNCTION=func.main
pack build adder --builder ghcr.io/vmware-tanzu/function-buildpacks-for-knative/functions-builder:0.4.2 --env BP_FUNCTION=func.main
```
1. After the image is successfully built we can run it in docker.
Expand Down

0 comments on commit eb90073

Please sign in to comment.