You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: openwhisk-go-simple/README.md
+4-7
Original file line number
Diff line number
Diff line change
@@ -9,19 +9,16 @@ Make sure `serverless` is installed. [See installation guide](https://serverless
9
9
10
10
You will also need to set up your OpenWhisk account credentials using environment variables or a configuration file. Please see the [this guide for more information](https://serverless.com/framework/docs/providers/openwhisk/guide/credentials/).
11
11
12
-
## 1. Install Provider Plugin
13
-
`npm install -g serverless-openwhisk`
14
-
15
-
## 2. Install Service Dependencies
12
+
## 1. Install Project Dependencies
16
13
`npm install` in this directory to download the modules from `package.json`.
17
14
18
-
## 3. Compile Go Binary
15
+
## 2. Compile Go Binary
19
16
20
17
```
21
18
$ env GOOS=linux GOARCH=amd64 go build handler.go
22
19
```
23
20
24
-
## 4. Deploy
21
+
## 3. Deploy
25
22
`serverless deploy` or `sls deploy`. `sls` is shorthand for the Serverless CLI command
26
23
27
24
```
@@ -42,7 +39,7 @@ actions:
42
39
go-service-dev-greeting
43
40
```
44
41
45
-
## 5. Invoke deployed function
42
+
## 4. Invoke deployed function
46
43
`serverless invoke --function greeting` or `serverless invoke -f greeting`
Copy file name to clipboardexpand all lines: openwhisk-node-and-docker-chaining-functions/README.md
+3-6
Original file line number
Diff line number
Diff line change
@@ -9,13 +9,10 @@ Make sure `serverless` is installed. [See installation guide](https://serverless
9
9
10
10
You will also need to set up your OpenWhisk account credentials using environment variables or a configuration file. Please see the [this guide for more information](https://serverless.com/framework/docs/providers/openwhisk/guide/credentials/).
11
11
12
-
## 1. Install Provider Plugin
13
-
`npm install -g serverless-openwhisk`
14
-
15
-
## 2. Install Service Dependencies
12
+
## 1. Install Service Dependencies & Provider Plugin
16
13
`npm install` in this directory to download the modules from `package.json`.
17
14
18
-
## 3. Deploy
15
+
## 2. Deploy
19
16
`serverless deploy` or `sls deploy`. `sls` is shorthand for the Serverless CLI command
Copy file name to clipboardexpand all lines: openwhisk-node-chaining-functions/README.md
+4-13
Original file line number
Diff line number
Diff line change
@@ -9,22 +9,13 @@ Make sure `serverless` is installed. [See installation guide](https://serverless
9
9
10
10
You will also need to set up your OpenWhisk account credentials using environment variables or a configuration file. Please see the [this guide for more information](https://serverless.com/framework/docs/providers/openwhisk/guide/credentials/).
11
11
12
-
## 1. Install Provider Plugin
13
-
`npm install -g serverless-openwhisk`
14
-
15
-
## 2. Install Service Dependencies
12
+
## 1. Install Provider Plugin & Service Dependencies
16
13
`npm install` in this directory to download the modules from `package.json`.
17
14
18
-
## 3. Deploy
15
+
## 2. Deploy
19
16
`serverless deploy` or `sls deploy`. `sls` is shorthand for the Serverless CLI command
20
17
21
-
Make a note of the API endpoint that is logged to the console during deployment.
22
-
23
-
```
24
-
Serverless: Configured API endpoint: https://xxx-yyy-zzz-gws.api-gw.mybluemix.net/my_service
25
-
```
26
-
27
-
## 4. Invoke sequence function
18
+
## 3. Invoke sequence function
28
19
`serverless invoke --function chained_seq --data '{"message": "a b c d e"}'`
29
20
30
21
`-f` is also shorthand for `--function`
@@ -37,7 +28,7 @@ In your terminal window you should see the response from Apache OpenWhisk
37
28
}
38
29
```
39
30
40
-
## 5. Invoke chained function
31
+
## 4. Invoke chained function
41
32
`serverless invoke --function manual_seq --data '{"message": "a b c d e"}'`
Copy file name to clipboardexpand all lines: openwhisk-node-scheduled-cron/README.md
+2-41
Original file line number
Diff line number
Diff line change
@@ -9,49 +9,10 @@ Make sure `serverless` is installed. [See installation guide](https://serverless
9
9
10
10
You will also need to set up your OpenWhisk account credentials using environment variables or a configuration file. Please see the [this guide for more information](https://serverless.com/framework/docs/providers/openwhisk/guide/credentials/).
11
11
12
-
## 1. Install Provider Plugin
13
-
`npm install -g serverless-openwhisk`
14
-
15
-
## 2. Install Service Dependencies
12
+
## 1. Install Provider Plugin & Service Dependencies
16
13
`npm install` in this directory to download the modules from `package.json`.
17
14
18
-
## 3. Deploy
15
+
## 2. Deploy
19
16
`serverless deploy` or `sls deploy`. `sls` is shorthand for the Serverless CLI command
20
17
21
-
Make a note of the API endpoint that is logged to the console during deployment.
22
-
23
-
```
24
-
Serverless: Configured API endpoint: https://xxx-yyy-zzz-gws.api-gw.mybluemix.net/my_service
25
-
```
26
-
27
-
## 4. Invoke deployed function
28
-
`serverless invoke --function time` or `serverless invoke -f time`
29
-
30
-
`-f` is shorthand for `--function`
31
-
32
-
In your terminal window you should see the response from Apache OpenWhisk
33
-
34
-
```bash
35
-
{
36
-
"payload": "The time in Europe/London is: 16:01:14."
37
-
}
38
-
```
39
-
40
-
## 5. Test HTTP endpoint
41
-
42
-
Use a HTTP client to access the endpoint for your function. The endpoint will
43
-
be the API gateway root path, logged during deployment, and your configured
44
-
function path.
45
-
46
-
```
47
-
$ http get https://xxx-yyy-zzz-gws.api-gw.mybluemix.net/my_service/time
48
-
{
49
-
"payload": "The time in Europe/London is: 16:01:07."
50
-
}
51
-
$ http get https://xxx-yyy-zzz-gws.api-gw.mybluemix.net/my_service/time?timezone=Europe/Berlin
52
-
{
53
-
"payload": "The time in Europe/Berlin is: 17:01:11."
54
-
}
55
-
```
56
-
57
18
**For more information on the Serverless OpenWhisk plugin, please see the project repository: [https://serverless.com/framework/docs/providers/openwhisk/guide/credentials/](https://serverless.com/framework/docs/providers/openwhisk/guide/credentials/).**
Copy file name to clipboardexpand all lines: openwhisk-node-simple-http-endpoint/README.md
+4-7
Original file line number
Diff line number
Diff line change
@@ -9,13 +9,10 @@ Make sure `serverless` is installed. [See installation guide](https://serverless
9
9
10
10
You will also need to set up your OpenWhisk account credentials using environment variables or a configuration file. Please see the [this guide for more information](https://serverless.com/framework/docs/providers/openwhisk/guide/credentials/).
11
11
12
-
## 1. Install Provider Plugin
13
-
`npm install -g serverless-openwhisk`
14
-
15
-
## 2. Install Service Dependencies
12
+
## 1. Install Provider Plugin & Service Dependencies
16
13
`npm install` in this directory to download the modules from `package.json`.
17
14
18
-
## 3. Deploy
15
+
## 2. Deploy
19
16
`serverless deploy` or `sls deploy`. `sls` is shorthand for the Serverless CLI command
20
17
21
18
Make a note of the API endpoint that is logged to the console during deployment.
@@ -24,7 +21,7 @@ Make a note of the API endpoint that is logged to the console during deployment.
24
21
Serverless: Configured API endpoint: https://xxx-yyy-zzz-gws.api-gw.mybluemix.net/my_service
25
22
```
26
23
27
-
## 4. Invoke deployed function
24
+
## 3. Invoke deployed function
28
25
`serverless invoke --function time` or `serverless invoke -f time`
29
26
30
27
`-f` is shorthand for `--function`
@@ -37,7 +34,7 @@ In your terminal window you should see the response from Apache OpenWhisk
37
34
}
38
35
```
39
36
40
-
## 5. Test HTTP endpoint
37
+
## 4. Test HTTP endpoint
41
38
42
39
Use a HTTP client to access the endpoint for your function. The endpoint will
43
40
be the API gateway root path, logged during deployment, and your configured
Copy file name to clipboardexpand all lines: openwhisk-node-simple/README.md
+3-6
Original file line number
Diff line number
Diff line change
@@ -9,16 +9,13 @@ Make sure `serverless` is installed. [See installation guide](https://serverless
9
9
10
10
You will also need to set up your OpenWhisk account credentials using environment variables or a configuration file. Please see the [this guide for more information](https://serverless.com/framework/docs/providers/openwhisk/guide/credentials/).
11
11
12
-
## 1. Install Provider Plugin
13
-
`npm install -g serverless-openwhisk`
14
-
15
-
## 2. Install Service Dependencies
12
+
## 1. Install Provider Plugin & Service Dependencies
16
13
`npm install` in this directory to download the modules from `package.json`.
17
14
18
-
## 3. Deploy
15
+
## 2. Deploy
19
16
`serverless deploy` or `sls deploy`. `sls` is shorthand for the Serverless CLI command
20
17
21
-
## 4. Invoke deployed function
18
+
## 3. Invoke deployed function
22
19
`serverless invoke --function hello_world` or `serverless invoke -f hello_world`
Copy file name to clipboardexpand all lines: openwhisk-php-simple/README.md
+3-6
Original file line number
Diff line number
Diff line change
@@ -9,13 +9,10 @@ Make sure `serverless` is installed. [See installation guide](https://serverless
9
9
10
10
You will also need to set up your OpenWhisk account credentials using environment variables or a configuration file. Please see the [this guide for more information](https://serverless.com/framework/docs/providers/openwhisk/guide/credentials/).
11
11
12
-
## 1. Install Provider Plugin
13
-
`npm install -g serverless-openwhisk`
14
-
15
-
## 2. Install Service Dependencies
12
+
## 1. Install Project Dependencies
16
13
`npm install` in this directory to download the modules from `package.json`.
17
14
18
-
## 3. Deploy
15
+
## 2. Deploy
19
16
`serverless deploy` or `sls deploy`. `sls` is shorthand for the Serverless CLI command
20
17
21
18
```
@@ -36,7 +33,7 @@ actions:
36
33
php-service-dev-greeting
37
34
```
38
35
39
-
## 4. Invoke deployed function
36
+
## 3. Invoke deployed function
40
37
`serverless invoke --function greeting` or `serverless invoke -f greeting`
Copy file name to clipboardexpand all lines: openwhisk-python-scheduled-cron/README.md
+3-6
Original file line number
Diff line number
Diff line change
@@ -9,13 +9,10 @@ Make sure `serverless` is installed. [See installation guide](https://serverless
9
9
10
10
You will also need to set up your OpenWhisk account credentials using environment variables or a configuration file. Please see the [this guide for more information](https://serverless.com/framework/docs/providers/openwhisk/guide/credentials/).
11
11
12
-
## 1. Install Provider Plugin
13
-
`npm install -g serverless-openwhisk`
14
-
15
-
## 2. Install Service Dependencies
12
+
## 1. Install Project Dependencies
16
13
`npm install` in this directory to download the modules from `package.json`.
17
14
18
-
## 3. Deploy
15
+
## 2. Deploy
19
16
`serverless deploy` or `sls deploy`. `sls` is shorthand for the Serverless CLI command
20
17
21
18
```
@@ -46,7 +43,7 @@ rules:
46
43
python_service_cron_schedule_rule
47
44
```
48
45
49
-
## 4. Monitor function logs
46
+
## 3. Monitor function logs
50
47
51
48
After sixty seconds the function should be executed and you can review the
52
49
logging output using `serverless logs --function cron` or `serverless logs -f cron`
Copy file name to clipboardexpand all lines: openwhisk-python-simple-http-endpoint/README.md
+4-7
Original file line number
Diff line number
Diff line change
@@ -9,13 +9,10 @@ Make sure `serverless` is installed. [See installation guide](https://serverless
9
9
10
10
You will also need to set up your OpenWhisk account credentials using environment variables or a configuration file. Please see the [this guide for more information](https://serverless.com/framework/docs/providers/openwhisk/guide/credentials/).
11
11
12
-
## 1. Install Provider Plugin
13
-
`npm install -g serverless-openwhisk`
14
-
15
-
## 2. Install Service Dependencies
12
+
## 1. Install Project Dependencies
16
13
`npm install` in this directory to download the modules from `package.json`.
17
14
18
-
## 3. Deploy
15
+
## 2. Deploy
19
16
`serverless deploy` or `sls deploy`. `sls` is shorthand for the Serverless CLI command
20
17
21
18
Make a note of the API endpoint that is logged to the console during deployment.
@@ -25,7 +22,7 @@ endpoints:
25
22
GET https://xxx.api-gw.mybluemix.net/python-service/ping --> python-service-dev-currentTime
26
23
```
27
24
28
-
## 4. Invoke deployed function
25
+
## 3. Invoke deployed function
29
26
`serverless invoke --function currentTime` or `serverless invoke -f currentTime`
30
27
31
28
`-f` is shorthand for `--function`
@@ -38,7 +35,7 @@ In your terminal window you should see the response from Apache OpenWhisk
38
35
}
39
36
```
40
37
41
-
## 5. Test HTTP endpoint
38
+
## 4. Test HTTP endpoint
42
39
43
40
Use a HTTP client to access the endpoint for your function. The endpoint will
44
41
be the API gateway root path, logged during deployment, and your configured
0 commit comments