Skip to content

Commit

Permalink
Updating runtimes cache to match server side (#1086)
Browse files Browse the repository at this point in the history
  • Loading branch information
pritidesai authored and mrutkows committed Jan 10, 2020
1 parent 8e4a799 commit fe1d299
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 122 deletions.
174 changes: 53 additions & 121 deletions runtimes/runtimes.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,54 +275,29 @@ 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",
"default": false,
"image": {
"prefix": "openwhisk",
"name": "action-nodejs-v8",
"tag": "latest"
"tag": "nightly"
},
"deprecated": false,
"attached": {
Expand All @@ -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": {
Expand All @@ -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": {
Expand All @@ -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": {
Expand All @@ -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": {
Expand All @@ -475,41 +405,27 @@ 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",
"attachmentType": "text/plain"
}
},
{
"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",
Expand All @@ -529,7 +445,7 @@ var RUNTIME_DETAILS = []byte(`{
"image": {
"prefix": "openwhisk",
"name": "action-ruby-v2.5",
"tag": "latest"
"tag": "nightly"
}
}
],
Expand All @@ -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"
}
}
],
Expand All @@ -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"
}
]
}`)
2 changes: 1 addition & 1 deletion specification/html/spec_actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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, [email protected] | php:7.3 | openwhisk/action-php-v7.3:latest | Latest PHP (7.3) language runtime |
| php, [email protected] | php:7.2 | openwhisk/action-php-v7.2:latest | Latest PHP (7.2) language runtime |
Expand Down

0 comments on commit fe1d299

Please sign in to comment.