From d826602557c0ada5b4eef11f6e3f3a0dec76943d Mon Sep 17 00:00:00 2001 From: Priti Desai Date: Fri, 10 Jan 2020 10:52:17 -0800 Subject: [PATCH] Updating runtimes cache to match server side --- runtimes/runtimes.go | 174 +++++++++-------------------- specification/html/spec_actions.md | 2 +- 2 files changed, 54 insertions(+), 122 deletions(-) diff --git a/runtimes/runtimes.go b/runtimes/runtimes.go index 7d9bd03b3..30e1bc066 100644 --- a/runtimes/runtimes.go +++ b/runtimes/runtimes.go @@ -275,46 +275,21 @@ func ListOfSupportedRuntimes(runtimes map[string][]string) (rt []string) { } var RUNTIME_DETAILS = []byte(`{ - "support": { - "github": "https://github.com/apache/openwhisk/issues", - "slack": "http://slack.openwhisk.org" - }, - "description": "OpenWhisk", - "api_paths": [ - "/api/v1" - ], "runtimes": { "nodejs": [ - { - "kind": "nodejs", - "image": { - "prefix": "openwhisk", - "name": "nodejsaction", - "tag": "latest" - }, - "deprecated": true, - "attached": { - "attachmentName": "codefile", - "attachmentType": "text/plain" - } - }, { "kind": "nodejs:6", "default": false, "image": { "prefix": "openwhisk", "name": "nodejs6action", - "tag": "latest" + "tag": "nightly" }, "deprecated": true, "attached": { "attachmentName": "codefile", "attachmentType": "text/plain" - }, - "stemCells": [{ - "count": 2, - "memory": "256 MB" - }] + } }, { "kind": "nodejs:8", @@ -322,7 +297,7 @@ var RUNTIME_DETAILS = []byte(`{ "image": { "prefix": "openwhisk", "name": "action-nodejs-v8", - "tag": "latest" + "tag": "nightly" }, "deprecated": false, "attached": { @@ -336,36 +311,43 @@ var RUNTIME_DETAILS = []byte(`{ "image": { "prefix": "openwhisk", "name": "action-nodejs-v10", - "tag": "latest" + "tag": "nightly" }, "deprecated": false, "attached": { "attachmentName": "codefile", "attachmentType": "text/plain" - } - } - ], - "python": [ + }, + "stemCells": [ + { + "count": 2, + "memory": "256 MB" + } + ] + }, { - "kind": "python", + "kind": "nodejs:12", + "default": false, "image": { "prefix": "openwhisk", - "name": "python2action", - "tag": "latest" + "name": "action-nodejs-v12", + "tag": "nightly" }, "deprecated": false, "attached": { "attachmentName": "codefile", "attachmentType": "text/plain" } - }, + } + ], + "python": [ { "kind": "python:2", - "default": true, + "default": false, "image": { "prefix": "openwhisk", "name": "python2action", - "tag": "latest" + "tag": "1.13.0-incubating" }, "deprecated": false, "attached": { @@ -375,10 +357,11 @@ var RUNTIME_DETAILS = []byte(`{ }, { "kind": "python:3", + "default": true, "image": { "prefix": "openwhisk", "name": "python3action", - "tag": "latest" + "tag": "nightly" }, "deprecated": false, "attached": { @@ -388,66 +371,13 @@ var RUNTIME_DETAILS = []byte(`{ } ], "swift": [ - { - "kind": "swift", - "image": { - "prefix": "openwhisk", - "name": "swiftaction", - "tag": "latest" - }, - "deprecated": true, - "attached": { - "attachmentName": "codefile", - "attachmentType": "text/plain" - } - }, - { - "kind": "swift:3", - "image": { - "prefix": "openwhisk", - "name": "swift3action", - "tag": "latest" - }, - "deprecated": true, - "attached": { - "attachmentName": "codefile", - "attachmentType": "text/plain" - } - }, - { - "kind": "swift:3.1.1", - "image": { - "prefix": "openwhisk", - "name": "action-swift-v3.1.1", - "tag": "latest" - }, - "deprecated": false, - "attached": { - "attachmentName": "codefile", - "attachmentType": "text/plain" - } - }, - { - "kind": "swift:4.1", - "default": false, - "image": { - "prefix": "openwhisk", - "name": "action-swift-v4.1", - "tag": "latest" - }, - "deprecated": false, - "attached": { - "attachmentName": "codefile", - "attachmentType": "text/plain" - } - }, { "kind": "swift:4.2", "default": true, "image": { "prefix": "openwhisk", "name": "action-swift-v4.2", - "tag": "latest" + "tag": "nightly" }, "deprecated": false, "attached": { @@ -458,12 +388,12 @@ var RUNTIME_DETAILS = []byte(`{ ], "java": [ { - "kind": "java", + "kind": "java:8", "default": true, "image": { "prefix": "openwhisk", "name": "java8action", - "tag": "latest" + "tag": "nightly" }, "deprecated": false, "attached": { @@ -475,27 +405,13 @@ var RUNTIME_DETAILS = []byte(`{ ], "php": [ { - "kind": "php:7.1", - "default": false, - "deprecated": false, - "image": { - "prefix": "openwhisk", - "name": "action-php-v7.1", - "tag": "latest" - }, - "attached": { - "attachmentName": "codefile", - "attachmentType": "text/plain" - } - }, - { - "kind": "php:7.2", + "kind": "php:7.3", "default": false, "deprecated": false, "image": { "prefix": "openwhisk", - "name": "action-php-v7.2", - "tag": "latest" + "name": "action-php-v7.3", + "tag": "nightly" }, "attached": { "attachmentName": "codefile", @@ -503,13 +419,13 @@ var RUNTIME_DETAILS = []byte(`{ } }, { - "kind": "php:7.3", + "kind": "php:7.4", "default": true, "deprecated": false, "image": { "prefix": "openwhisk", - "name": "action-php-v7.3", - "tag": "latest" + "name": "action-php-v7.4", + "tag": "nightly" }, "attached": { "attachmentName": "codefile", @@ -529,7 +445,7 @@ var RUNTIME_DETAILS = []byte(`{ "image": { "prefix": "openwhisk", "name": "action-ruby-v2.5", - "tag": "latest" + "tag": "nightly" } } ], @@ -544,8 +460,8 @@ var RUNTIME_DETAILS = []byte(`{ }, "image": { "prefix": "openwhisk", - "name": "actionloop-golang-v1.11", - "tag": "latest" + "name": "action-golang-v1.11", + "tag": "nightly" } } ], @@ -558,20 +474,36 @@ var RUNTIME_DETAILS = []byte(`{ "image": { "prefix": "openwhisk", "name": "action-dotnet-v2.2", - "tag": "latest" + "tag": "nightly" }, "attached": { "attachmentName": "codefile", "attachmentType": "text/plain" } } + ], + "ballerina": [ + { + "kind": "ballerina:0.990", + "default": true, + "image": { + "prefix": "openwhisk", + "name": "action-ballerina-v0.990.2", + "tag": "nightly" + }, + "deprecated": false, + "attached": { + "attachmentName": "codefile", + "attachmentType": "text/plain" + } + } ] }, "blackboxes": [ { "prefix": "openwhisk", "name": "dockerskeleton", - "tag": "latest" + "tag": "nightly" } ] }`) diff --git a/specification/html/spec_actions.md b/specification/html/spec_actions.md index 41e40b68e..d4611b631 100644 --- a/specification/html/spec_actions.md +++ b/specification/html/spec_actions.md @@ -136,7 +136,7 @@ These packages may vary by OpenWhisk release; examples of supported runtimes as |:---|:---|:---|:---| | nodejs@10 | nodejs:10 | openwhisk/action-nodejs-v8:latest | Latest NodeJS 10 runtime | | nodejs@8 | nodejs:8 | openwhisk/action-nodejs-v8:latest | Latest NodeJS 8 runtime | -| nodejs@6 | nodejs:default | openwhisk/nodejs6action:latest | Latest NodeJS 6 runtime | +| nodejs@12 | nodejs:12 | openwhisk/nodejs12action:latest | Latest NodeJS 12 runtime | | java | java | openwhisk/java8action:latest | Latest Java (8) language runtime | | php, php@7.3 | php:7.3 | openwhisk/action-php-v7.3:latest | Latest PHP (7.3) language runtime | | php, php@7.2 | php:7.2 | openwhisk/action-php-v7.2:latest | Latest PHP (7.2) language runtime |