File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,12 @@ Open `http://localhost:8080/` in your browser and see *Hello World...*.
76
76
77
77
# Run your function in a container
78
78
79
+ Add the Functions Framework to your ` composer.json ` file using ` composer ` .
80
+
81
+ ``` sh
82
+ composer require google/cloud-functions-framework
83
+ ```
84
+
79
85
Create an ` index.php ` file with the following contents:
80
86
81
87
``` php
@@ -89,12 +95,6 @@ function helloHttp(Request $request)
89
95
}
90
96
```
91
97
92
- Now install the Functions Framework:
93
-
94
- ``` sh
95
- composer require google-cloud/functions-framework
96
- ```
97
-
98
98
Build the container using the example Dockerfile:
99
99
100
100
```
@@ -109,7 +109,6 @@ Run the cloud functions framework container:
109
109
docker run -p 8080:8080 \
110
110
-e FUNCTION_TARGET=helloHttp \
111
111
-e FUNCTION_SIGNATURE_TYPE=http \
112
- -e FUNCTION_SOURCE=index.php \
113
112
my-cloud-function
114
113
```
115
114
You can’t perform that action at this time.
0 commit comments