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
Then, you will find the binaries and their compressed packages generated under the folder ```bin/<os>/<arch>/``` for each supported Operating System and CPU Architecture pair.
175
+
#### Compiling for a single OS/ARCH
176
+
177
+
1. View gradle build tasks for supported Operating Systems and Architectures:
178
+
179
+
```sh
180
+
./gradlew tasks
181
+
```
174
182
175
-
### Building for Internationalization
183
+
you will see build tasks for supported OS/ARCH combinations:
184
+
185
+
```sh
186
+
Gogradle tasks
187
+
--------------
188
+
buildDarwinAmd64 - Custom go task.
189
+
buildLinux386 - Custom go task.
190
+
buildLinuxAmd64 - Custom go task.
191
+
buildLinuxArm - Custom go task.
192
+
buildLinuxArm64 - Custom go task.
193
+
buildLinuxPpc64le - Custom go task.
194
+
buildLinuxS390x - Custom go task.
195
+
buildWindows386 - Custom go task.
196
+
buildWindowsAmd64 - Custom go task.
197
+
```
198
+
199
+
> Note: The `buildWindows386` option is only supported on Golang versions less than 1.15.
200
+
201
+
#### Building for Internationalization
176
202
177
203
Please follow this process for building any changes to translatable strings:
178
204
- [How to generate the file i18n_resources.go for internationalization](https://github.com/apache/openwhisk-wskdeploy/blob/master/wski18n/README.md)
179
205
206
+
---
207
+
180
208
### Running as a Go program
181
209
182
210
Since ```wskdeploy``` is a GoLang program, you may choose to run it using the Go utility. After building the wskdeploy binary, you can run it as follows:
Copy file name to clipboardExpand all lines: specification/html/spec_actions.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@
20
20
## Actions
21
21
22
22
#### Subsections
23
+
23
24
-[Fields](#fields)
24
25
-[Requirements](#requirements)
25
26
-[Notes](#notes)
@@ -32,6 +33,7 @@
32
33
The Action entity schema contains the necessary information to deploy an OpenWhisk function and define its deployment configurations, inputs and outputs.
33
34
34
35
### Fields
36
+
35
37
| Key Name | Required | Value Type | Default | Description |
36
38
|:---|:---|:---|:---|:---|
37
39
| version | no |[version](spec_parameter_types.md#openwhisk-types)| N/A | The optional user-controlled version for the Action. |
@@ -78,6 +80,7 @@ The following annotations have special meanings for Actions:
78
80
- When the `code` key-value is specified, the `runtime`**SHALL** be a required field.
79
81
80
82
#### Annotation requirements
83
+
81
84
- The annotation `require-whisk-auth`**SHALL** only be valid for web actions (i.e., if the `web` key or `web-export` annotation is set to `true`).
82
85
- If the value of the `require-whisk-auth` annotation is an `integer` its value **MUST** be a positive integer less than or equal to the `MAX_INT` value of `9007199254740991`.
83
86
- When the `web` or `web-export` key is present and set to `true` the web action's **MUST** also be marked `final`. This happens automatically when the `web` or `web-export` keys are present and set to `true`.
@@ -175,12 +178,12 @@ See the file [runtimes.json](https://github.com/apache/openwhisk/blob/master/ans
175
178
the main [apache/openwhisk](https://github.com/apache/openwhisk) repository for the latest supported runtimes nad versions.
176
179
177
180
#### Notes
181
+
178
182
- **WARNING**: _For OpenWhisk project builds, the Docker image used is tagged `nightly` in Docker Hub (e.g, for GitHub pull
179
183
requests). Production uses of OpenWhisk code may use different images and tagged (released) image versions._
180
184
- If no value for `runtime` is supplied, the value `language:default` will be assumed.
181
185
- OpenWhisk runtimes may also include additional built-in packages (or libraries) that have been determined be useful for Actions surveyed and tested by the OpenWhisk platform.
182
186
183
-
184
187
### Recognized File extensions
185
188
186
189
Although it is best practice to provide a runtime value when declaring an Action, it is not required. In those cases, that a runtime is not provided, the package tooling will attempt to derive the correct runtime based upon the the file extension for the Action's function (source code file). The
Copy file name to clipboardExpand all lines: specification/html/spec_intro.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,15 +31,15 @@ Development Kits (SDKs).
31
31
The code for the Actions, along with any support services implementing *Feeds*, are packaged according to this specification to be compatible with the OpenWhisk catalog and its tooling. It also serves as a means for architects and developers to model OpenWhisk package Actions as part
32
32
of full, event-driven services and applications providing the necessary information for artifact and data type validation along with package management operations.
33
33
34
-
###Compatibility
34
+
## Compatibility
35
35
36
36
This specification is intended to be compatible with the following specifications:
37
37
38
-
-*OpenWhisk API which is defined as an OpenAPI document:*
Copy file name to clipboardExpand all lines: specification/html/spec_normative_refs.md
+20-29Lines changed: 20 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,50 +17,45 @@
17
17
#
18
18
-->
19
19
20
-
21
20
<!--
22
21
********************************
23
22
Normative Reference
24
23
********************************
25
24
-->
26
25
<h2>Normative References</h2>
27
-
<p> </p>
26
+
28
27
<tablewidth="100%">
29
28
<tr>
30
-
<th>
31
-
<p>Tag</p>
32
-
</th>
33
-
<th>
34
-
<p>Description</p>
35
-
</th>
29
+
<th>Tag</th>
30
+
<th>Description</th>
36
31
</tr>
37
32
<tr>
38
33
<td>
39
-
<p><a>RFC2119</a></p>
34
+
<p>RFC2119</p>
40
35
</td>
41
36
<td>
42
37
<p>S. Bradner, <i>Key words for use in RFCs to Indicate Requirement Levels</i>, <ahref="http://www.ietf.org/rfc/rfc2119.txt">http://www.ietf.org/rfc/rfc2119.txt</a>, IETF RFC 2119, March 1997.</p>
43
38
</td>
44
39
</tr>
45
40
<tr>
46
41
<td>
47
-
<p><a>YAML-1.2</a></p>
42
+
<p>YAML-1.2</p>
48
43
</td>
49
44
<td>
50
45
<p>YAML, Version 1.2, 3rd Edition, Patched at 2009-10-01, Oren Ben-Kiki, Clark Evans, Ingy dšt Net <ahref="http://www.yaml.org/spec/1.2/spec.html">http://www.yaml.org/spec/1.2/spec.html</a></p>
51
46
</td>
52
47
</tr>
53
48
<tr>
54
49
<td>
55
-
<p><a>YAML-TS-1.1</a></p>
50
+
<p>YAML-TS-1.1</p>
56
51
</td>
57
52
<td>
58
53
<p>Timestamp Language-Independent Type for YAML Version 1.1, Working Draft 2005-01-18, <ahref="http://yaml.org/type/timestamp.html">http://yaml.org/type/timestamp.html</a></p>
59
54
</td>
60
55
</tr>
61
56
<tr>
62
57
<td>
63
-
<p><a>Maven-Version</a></p>
58
+
<p>Maven-Version</p>
64
59
</td>
65
60
<td>
66
61
<p>The version type is defined with the <ahref="https://maven.apache.org/index.html">Apache Maven project's</a> policy draft:</p>
@@ -69,7 +64,7 @@
69
64
</tr>
70
65
<tr>
71
66
<td>
72
-
<p><a>OpenAPI-2.0</a></p>
67
+
<p>OpenAPI-2.0</p>
73
68
</td>
74
69
<td>
75
70
<p>The OpenAPI (f.k.a. 'Swagger') specification for defining REST APIs as JSON.</p>
<p>OpenWhisk REST API which is defined as an OpenAPI document.</p>
@@ -124,31 +115,31 @@
124
115
</tr>
125
116
<tr>
126
117
<td>
127
-
<p><a>GNU-units</a></p>
118
+
<p>GNU-units</p>
128
119
</td>
129
120
<td>
130
121
<p>Size-type units are based upon a subset of those defined by GNU at <ahref="http://www.gnu.org/software/parted/manual/html_node/unit.html">http://www.gnu.org/software/parted/manual/html_node/unit.html</a></p>
131
122
</td>
132
123
</tr>
133
124
<tr>
134
125
<td>
135
-
<p><a>RFC 6838</a></p>
126
+
<p>RFC 6838</p>
136
127
</td>
137
128
<td>
138
129
<p>Mime Type definitions in compliance with <ahref="http://tools.ietf.org/html/rfc6838">RFC 6838</a>.</p>
139
130
</td>
140
131
</tr>
141
132
<tr>
142
133
<td>
143
-
<p><a>RFC 7231</a></p>
134
+
<p>RFC 7231</p>
144
135
</td>
145
136
<td>
146
137
<p>HTTP 1.1. status codes are described in compliance with <ahref="http://tools.ietf.org/html/rfc7231#section-6">RFC 7231</a>.</p>
147
138
</td>
148
139
</tr>
149
140
<tr>
150
141
<td>
151
-
<p><a>IANA-Status-Codes</a></p>
142
+
<p>IANA-Status-Codes</p>
152
143
</td>
153
144
<td>
154
145
<p>HTTP Status codes as defined in the <ahref="http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml">IANA Status Code Registry</a>.</p>
@@ -159,8 +150,8 @@
159
150
<p>JSON Schema Specification</p>
160
151
</td>
161
152
<td>
162
-
<p>The built-in parameter type 'json' references this specification.</p>
163
-
<p>http://json-schema.org/</p>
153
+
<p>The built-in parameter type 'json' references this specification:
0 commit comments