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.
133
133
1 . Install [ Docker] ( https://store.docker.com/search?type=edition&offering=community ) and the [ ` pack ` tool] ( https://buildpacks.io/docs/install-pack/ ) .
134
134
135
135
1 . 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
143
142
144
143
1 . 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...
149
147
150
148
1 . 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!
155
152
156
153
## Run your function on serverless platforms
157
154
You can’t perform that action at this time.
0 commit comments