You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2019/02/15 22:22:56 UTC
[GitHub] asteed opened a new issue #1032: Cannot specify nodejs:default
runtime
asteed opened a new issue #1032: Cannot specify nodejs:default runtime
URL: https://github.com/apache/incubator-openwhisk-wskdeploy/issues/1032
## Overview
Currently it appears that the runtime specified in the `manifest.yml` has to be an explicit runtime version (e.g.: `nodejs:8`). It does not support using the value `nodejs:default`.
## Example
Given the following `manifest.yml`
```yaml
packages:
myPackage:
version: 0.0.5
license: Apache-2.0
public: false
actions:
myAction:
location: ./my-package-action.zip
runtime: nodejs:default
```
The result when using `wskdeploy` is as follows
```
$ wskdeploy
Info: The API host is [http://localhost:8888], from .wskprops.
Info: The auth key is set, from .wskprops.
Info: The namespace is [whisk.system], from .wskprops.
Info: Unmarshal OpenWhisk runtimes from internet at http://localhost:8888.
Error: manifestreader.go [93]: [ERROR_YAML_FILE_FORMAT_ERROR]: File: [manifest.yml]:
==> manifest_parser.go [738]: [ERROR_YAML_INVALID_RUNTIME]: File: [manifest.yml]: Invalid or missing runtime [nodejs:default] specified in manifest for the action [myAction].
==> Action [myAction]: Runtime [nodejs:default]: Supported Runtimes [ruby:2.5, swift:3.1.1, swift:4.1, swift:4.2, nodejs:6, nodejs:8, nodejs:10, java, go:1.11, php:7.2, php:7.3, python, python:2, python:3, dotnet:2.2]
==>
```
Below is the list of available runtimes where `nodejs:6` is currently indicated as the default nodejs runtime.
```
→ curl -s "http://localhost:8888" | jq '.runtimes.nodejs'
[
{
"attached": false,
"default": true,
"deprecated": false,
"image": "openwhisk/nodejs6action:latest",
"kind": "nodejs:6",
"requireMain": false
},
{
"attached": false,
"default": false,
"deprecated": false,
"image": "openwhisk/action-nodejs-v8:latest",
"kind": "nodejs:8",
"requireMain": false
},
{
"attached": false,
"default": false,
"deprecated": false,
"image": "openwhisk/action-nodejs-v10:latest",
"kind": "nodejs:10",
"requireMain": false
}
]
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services