{"id":32049,"date":"2023-03-21T01:59:17","date_gmt":"2023-07-29T17:17:11","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/ibm-cloud-functions-openwhisk-%e5%8a%a8%e4%bd%9c%e7%9a%84%e7%8e%af%e5%a2%83%e5%88%97%e8%a1%a8%ef%bc%88%e8%bf%90%e8%a1%8c%e6%97%b6%ef%bc%89\/"},"modified":"2024-04-29T19:53:05","modified_gmt":"2024-04-29T11:53:05","slug":"ibm-cloud-functions-openwhisk-%e5%8a%a8%e4%bd%9c%e7%9a%84%e7%8e%af%e5%a2%83%e5%88%97%e8%a1%a8%ef%bc%88%e8%bf%90%e8%a1%8c%e6%97%b6%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/ibm-cloud-functions-openwhisk-%e5%8a%a8%e4%bd%9c%e7%9a%84%e7%8e%af%e5%a2%83%e5%88%97%e8%a1%a8%ef%bc%88%e8%bf%90%e8%a1%8c%e6%97%b6%ef%bc%89\/","title":{"rendered":"IBM Cloud Functions (OpenWhisk) \u52a8\u4f5c\u7684\u73af\u5883\u5217\u8868\uff08\u8fd0\u884c\u65f6\uff09"},"content":{"rendered":"<h1>\u6982\u62ec<\/h1>\n<p>\u901a\u8fc7\u67e5\u770bOpenWhisk\u7684\u5b58\u50a8\u5e93\u548c\u6587\u6863\uff0c\u6211\u53d1\u73b0\u65e0\u6cd5\u4ee5\u8868\u683c\u5f62\u5f0f\u8fdb\u884c\u6982\u89c8\uff0c\u56e0\u6b64\u6211\u5c06\u521b\u5efa\u4e00\u4e2a\u3002<br \/>\n\u8fd9\u662f\u5728CLI\u4e2d\u4f7f\u7528action create\u547d\u4ee4\u65f6\u6307\u5b9a\u7684 &#8211;kind \u53c2\u6570\u3002<br \/>\n\uff08Docker\u4f7f\u7528 &#8211;docker \u6307\u5b9a\uff0c\u4e8c\u8fdb\u5236\u6587\u4ef6\u4f7f\u7528 &#8211;native \u6307\u5b9a\uff0cGO\u8bed\u8a00\u4e5f\u4f1a\u4e0a\u4f20\u7f16\u8bd1\u540e\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\uff09<\/p>\n<div>\n<div class=\"post-table\">.kind.image.name.default.deprecatednodejsnodejsaction<br \/>\n<strong>true<\/strong>nodejs:6nodejs6action<strong>true<\/strong>falsenodejs:8action-nodejs-v8falsefalsepythonpython2action<br \/>\nfalsepython:2python2action<strong>true<\/strong>falsepython:3python3action<br \/>\nfalseswiftswiftaction<br \/>\n<strong>true<\/strong>swift:3swift3action<br \/>\n<strong>true<\/strong>swift:3.1.1action-swift-v3.1.1<br \/>\nfalseswift:4.1action-swift-v4.1<strong>true<\/strong>falsejavajava8action<strong>true<\/strong>falsephp:7.1action-php-v7.1falsefalsephp:7.2action-php-v7.2<strong>true<\/strong>falseruby:2.5action-ruby-v2.5<strong>true<\/strong>false<\/div>\n<\/div>\n<h1>\u7d20\u6750<\/h1>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">OpenWhisk \u306e runtimes.json<\/ul>\n<\/li>\n<\/ul>\n<p>curl, jq, tr, sed<\/p>\n<h1>\u8fc7\u7a0b<\/h1>\n<p>\u901a\u8fc7 GET \u8bf7\u6c42\u83b7\u53d6 runtimes.json \u6587\u4ef6\uff0c\u7136\u540e\u4f7f\u7528 jq\/tr\/sed \u5c06\u5176\u8f6c\u6362\u6210 markdown \u98ce\u683c\u7684\u8868\u683c\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">$ <\/span>curl <span class=\"nt\">-s<\/span> https:\/\/raw.githubusercontent.com\/apache\/incubator-openwhisk\/master\/ansible\/files\/runtimes.json <span class=\"se\">\\<\/span>\r\n | jq <span class=\"nt\">-r<\/span> <span class=\"s1\">'.runtimes[][] | [.kind, .image.name, .default, .deprecated] | @csv'<\/span> <span class=\"se\">\\<\/span>\r\n | <span class=\"nb\">tr<\/span> , <span class=\"s1\">'|'<\/span> | <span class=\"nb\">sed<\/span> <span class=\"s1\">'s\/\"\/\/g'<\/span> | <span class=\"nb\">sed<\/span> <span class=\"s1\">'s\/true\/**true**\/g'<\/span>\r\nnodejs|nodejsaction||<span class=\"k\">**<\/span><span class=\"nb\">true<\/span><span class=\"k\">**<\/span>\r\nnodejs:6|nodejs6action|<span class=\"k\">**<\/span><span class=\"nb\">true<\/span><span class=\"k\">**<\/span>|false\r\nnodejs:8|action-nodejs-v8|false|false\r\npython|python2action||false\r\npython:2|python2action|<span class=\"k\">**<\/span><span class=\"nb\">true<\/span><span class=\"k\">**<\/span>|false\r\npython:3|python3action||false\r\nswift|swiftaction||<span class=\"k\">**<\/span><span class=\"nb\">true<\/span><span class=\"k\">**<\/span>\r\nswift:3|swift3action||<span class=\"k\">**<\/span><span class=\"nb\">true<\/span><span class=\"k\">**<\/span>\r\nswift:3.1.1|action-swift-v3.1.1||false\r\nswift:4.1|action-swift-v4.1|<span class=\"k\">**<\/span><span class=\"nb\">true<\/span><span class=\"k\">**<\/span>|false\r\njava|java8action|<span class=\"k\">**<\/span><span class=\"nb\">true<\/span><span class=\"k\">**<\/span>|false\r\nphp:7.1|action-php-v7.1|false|false\r\nphp:7.2|action-php-v7.2|<span class=\"k\">**<\/span><span class=\"nb\">true<\/span><span class=\"k\">**<\/span>|false\r\nruby:2.5|action-ruby-v2.5|<span class=\"k\">**<\/span><span class=\"nb\">true<\/span><span class=\"k\">**<\/span>|false\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u62ec \u901a\u8fc7\u67e5\u770bOpenWhisk\u7684\u5b58\u50a8\u5e93\u548c\u6587\u6863\uff0c\u6211\u53d1\u73b0\u65e0\u6cd5\u4ee5\u8868\u683c\u5f62\u5f0f\u8fdb\u884c\u6982\u89c8\uff0c\u56e0\u6b64\u6211\u5c06\u521b\u5efa\u4e00\u4e2a\u3002 \u8fd9\u662f\u5728CLI [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-32049","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>IBM Cloud Functions (OpenWhisk) \u52a8\u4f5c\u7684\u73af\u5883\u5217\u8868\uff08\u8fd0\u884c\u65f6\uff09 - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/ibm-cloud-functions-openwhisk-\u52a8\u4f5c\u7684\u73af\u5883\u5217\u8868\uff08\u8fd0\u884c\u65f6\uff09\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"IBM Cloud Functions (OpenWhisk) \u52a8\u4f5c\u7684\u73af\u5883\u5217\u8868\uff08\u8fd0\u884c\u65f6\uff09\" \/>\n<meta property=\"og:description\" content=\"\u6982\u62ec \u901a\u8fc7\u67e5\u770bOpenWhisk\u7684\u5b58\u50a8\u5e93\u548c\u6587\u6863\uff0c\u6211\u53d1\u73b0\u65e0\u6cd5\u4ee5\u8868\u683c\u5f62\u5f0f\u8fdb\u884c\u6982\u89c8\uff0c\u56e0\u6b64\u6211\u5c06\u521b\u5efa\u4e00\u4e2a\u3002 \u8fd9\u662f\u5728CLI [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/ibm-cloud-functions-openwhisk-\u52a8\u4f5c\u7684\u73af\u5883\u5217\u8868\uff08\u8fd0\u884c\u65f6\uff09\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-29T17:17:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T11:53:05+00:00\" \/>\n<meta name=\"author\" content=\"\u5b87, \u534e\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u5b87, \u534e\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/ibm-cloud-functions-openwhisk-%e5%8a%a8%e4%bd%9c%e7%9a%84%e7%8e%af%e5%a2%83%e5%88%97%e8%a1%a8%ef%bc%88%e8%bf%90%e8%a1%8c%e6%97%b6%ef%bc%89\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/ibm-cloud-functions-openwhisk-%e5%8a%a8%e4%bd%9c%e7%9a%84%e7%8e%af%e5%a2%83%e5%88%97%e8%a1%a8%ef%bc%88%e8%bf%90%e8%a1%8c%e6%97%b6%ef%bc%89\/\",\"name\":\"IBM Cloud Functions (OpenWhisk) \u52a8\u4f5c\u7684\u73af\u5883\u5217\u8868\uff08\u8fd0\u884c\u65f6\uff09 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-07-29T17:17:11+00:00\",\"dateModified\":\"2024-04-29T11:53:05+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/ibm-cloud-functions-openwhisk-%e5%8a%a8%e4%bd%9c%e7%9a%84%e7%8e%af%e5%a2%83%e5%88%97%e8%a1%a8%ef%bc%88%e8%bf%90%e8%a1%8c%e6%97%b6%ef%bc%89\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/ibm-cloud-functions-openwhisk-%e5%8a%a8%e4%bd%9c%e7%9a%84%e7%8e%af%e5%a2%83%e5%88%97%e8%a1%a8%ef%bc%88%e8%bf%90%e8%a1%8c%e6%97%b6%ef%bc%89\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/ibm-cloud-functions-openwhisk-%e5%8a%a8%e4%bd%9c%e7%9a%84%e7%8e%af%e5%a2%83%e5%88%97%e8%a1%a8%ef%bc%88%e8%bf%90%e8%a1%8c%e6%97%b6%ef%bc%89\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"IBM Cloud Functions (OpenWhisk) \u52a8\u4f5c\u7684\u73af\u5883\u5217\u8868\uff08\u8fd0\u884c\u65f6\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458\",\"name\":\"\u5b87, \u534e\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g\",\"caption\":\"\u5b87, \u534e\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yuhua\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/ibm-cloud-functions-openwhisk-%e5%8a%a8%e4%bd%9c%e7%9a%84%e7%8e%af%e5%a2%83%e5%88%97%e8%a1%a8%ef%bc%88%e8%bf%90%e8%a1%8c%e6%97%b6%ef%bc%89\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"IBM Cloud Functions (OpenWhisk) \u52a8\u4f5c\u7684\u73af\u5883\u5217\u8868\uff08\u8fd0\u884c\u65f6\uff09 - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/ibm-cloud-functions-openwhisk-\u52a8\u4f5c\u7684\u73af\u5883\u5217\u8868\uff08\u8fd0\u884c\u65f6\uff09\/","og_locale":"zh_CN","og_type":"article","og_title":"IBM Cloud Functions (OpenWhisk) \u52a8\u4f5c\u7684\u73af\u5883\u5217\u8868\uff08\u8fd0\u884c\u65f6\uff09","og_description":"\u6982\u62ec \u901a\u8fc7\u67e5\u770bOpenWhisk\u7684\u5b58\u50a8\u5e93\u548c\u6587\u6863\uff0c\u6211\u53d1\u73b0\u65e0\u6cd5\u4ee5\u8868\u683c\u5f62\u5f0f\u8fdb\u884c\u6982\u89c8\uff0c\u56e0\u6b64\u6211\u5c06\u521b\u5efa\u4e00\u4e2a\u3002 \u8fd9\u662f\u5728CLI [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/ibm-cloud-functions-openwhisk-\u52a8\u4f5c\u7684\u73af\u5883\u5217\u8868\uff08\u8fd0\u884c\u65f6\uff09\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-07-29T17:17:11+00:00","article_modified_time":"2024-04-29T11:53:05+00:00","author":"\u5b87, \u534e","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u5b87, \u534e","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/ibm-cloud-functions-openwhisk-%e5%8a%a8%e4%bd%9c%e7%9a%84%e7%8e%af%e5%a2%83%e5%88%97%e8%a1%a8%ef%bc%88%e8%bf%90%e8%a1%8c%e6%97%b6%ef%bc%89\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/ibm-cloud-functions-openwhisk-%e5%8a%a8%e4%bd%9c%e7%9a%84%e7%8e%af%e5%a2%83%e5%88%97%e8%a1%a8%ef%bc%88%e8%bf%90%e8%a1%8c%e6%97%b6%ef%bc%89\/","name":"IBM Cloud Functions (OpenWhisk) \u52a8\u4f5c\u7684\u73af\u5883\u5217\u8868\uff08\u8fd0\u884c\u65f6\uff09 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-07-29T17:17:11+00:00","dateModified":"2024-04-29T11:53:05+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/ibm-cloud-functions-openwhisk-%e5%8a%a8%e4%bd%9c%e7%9a%84%e7%8e%af%e5%a2%83%e5%88%97%e8%a1%a8%ef%bc%88%e8%bf%90%e8%a1%8c%e6%97%b6%ef%bc%89\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/ibm-cloud-functions-openwhisk-%e5%8a%a8%e4%bd%9c%e7%9a%84%e7%8e%af%e5%a2%83%e5%88%97%e8%a1%a8%ef%bc%88%e8%bf%90%e8%a1%8c%e6%97%b6%ef%bc%89\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/ibm-cloud-functions-openwhisk-%e5%8a%a8%e4%bd%9c%e7%9a%84%e7%8e%af%e5%a2%83%e5%88%97%e8%a1%a8%ef%bc%88%e8%bf%90%e8%a1%8c%e6%97%b6%ef%bc%89\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"IBM Cloud Functions (OpenWhisk) \u52a8\u4f5c\u7684\u73af\u5883\u5217\u8868\uff08\u8fd0\u884c\u65f6\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458","name":"\u5b87, \u534e","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g","caption":"\u5b87, \u534e"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yuhua\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/ibm-cloud-functions-openwhisk-%e5%8a%a8%e4%bd%9c%e7%9a%84%e7%8e%af%e5%a2%83%e5%88%97%e8%a1%a8%ef%bc%88%e8%bf%90%e8%a1%8c%e6%97%b6%ef%bc%89\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32049","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=32049"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32049\/revisions"}],"predecessor-version":[{"id":87305,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32049\/revisions\/87305"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=32049"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=32049"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=32049"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}