Skip to content

Commit

Permalink
docs: use working buildpacks (GoogleCloudPlatform#381)
Browse files Browse the repository at this point in the history
The newest buildpacks don't compile the C++ examples. Probably an
omission in the buildpack. Change the documents to use the correct
version.
  • Loading branch information
coryan committed Jul 5, 2023
1 parent 476644e commit 9e3cade
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/site/howto_create_container/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ containing your function:

```shell
pack build \
--builder gcr.io/buildpacks/builder:latest \
--builder gcr.io/buildpacks/builder:v1 \
--env GOOGLE_FUNCTION_TARGET=hello_world_http \
--path examples/site/hello_world_http \
gcf-cpp-hello-world-http
Expand Down
2 changes: 1 addition & 1 deletion examples/site/howto_deploy_cloud_event/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ containing your function:
```shell
GOOGLE_CLOUD_PROJECT=... # put the right value here
pack build \
--builder gcr.io/buildpacks/builder:latest \
--builder gcr.io/buildpacks/builder:v1 \
--env GOOGLE_FUNCTION_TARGET=hello_world_pubsub \
--path examples/site/hello_world_pubsub \
"gcr.io/${GOOGLE_CLOUD_PROJECT}/gcf-cpp-hello-world-pubsub"
Expand Down
2 changes: 1 addition & 1 deletion examples/site/howto_deploy_to_cloud_run/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ containing your function:
```shell
GOOGLE_CLOUD_PROJECT=... # put the right value here
pack build \
--builder gcr.io/buildpacks/builder:latest \
--builder gcr.io/buildpacks/builder:v1 \
--env GOOGLE_FUNCTION_TARGET=hello_world_http \
--path examples/site/hello_world_http \
"gcr.io/${GOOGLE_CLOUD_PROJECT}/gcf-cpp-hello-world-http"
Expand Down
3 changes: 1 addition & 2 deletions examples/site/testing_storage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ We will create a container for the storage "hello world" function as usual:
```shell
pack build \
--builder gcr.io/buildpacks/builder:latest \
--env "GOOGLE_FUNCTION_SIGNATURE_TYPE=cloudevent" \
--builder gcr.io/buildpacks/builder:v1 \
--env "GOOGLE_FUNCTION_TARGET=hello_world_storage" \
--path "examples/site/hello_world_storage" \
"gcr.io/${GOOGLE_CLOUD_PROJECT}/gcf-hello-world-storage"
Expand Down

0 comments on commit 9e3cade

Please sign in to comment.