File tree Expand file tree Collapse file tree 1 file changed +12
-15
lines changed
Expand file tree Collapse file tree 1 file changed +12
-15
lines changed Original file line number Diff line number Diff line change @@ -133,25 +133,22 @@ response instead.
1331331 . Install [ Docker] ( https://store.docker.com/search?type=edition&offering=community ) and the [ ` pack ` tool] ( https://buildpacks.io/docs/install-pack/ ) .
134134
1351351 . Build a container from your function using the Functions [ buildpacks] ( https://github.com/GoogleCloudPlatform/buildpacks ) :
136- ```sh
137- pack build \
138- --builder gcr.io/buildpacks/builder:v1 \
139- --env GOOGLE_FUNCTION_SIGNATURE_TYPE=http \
140- --env GOOGLE_FUNCTION_TARGET=hello \
141- my-first-function
142- ```
136+
137+ pack build \
138+ --builder gcr.io/buildpacks/builder:v1 \
139+ --env GOOGLE_FUNCTION_SIGNATURE_TYPE=http \
140+ --env GOOGLE_FUNCTION_TARGET=hello \
141+ my-first-function
143142
1441431 . Start the built container:
145- ```sh
146- docker run --rm -p 8080:8080 my-first-function
147- # Output: Serving function...
148- ```
144+
145+ docker run --rm -p 8080:8080 my-first-function
146+ # Output: Serving function...
149147
1501481 . Send requests to this function using ` curl ` from another terminal window:
151- ```sh
152- curl localhost:8080
153- # Output: Hello World!
154- ```
149+
150+ curl localhost:8080
151+ # Output: Hello World!
155152
156153## Run your function on serverless platforms
157154
You can’t perform that action at this time.
0 commit comments