Skip to content

Commit

Permalink
Merge pull request #14 from devsapp/gwh/dipper
Browse files Browse the repository at this point in the history
fix:Inspect template readme and publish
  • Loading branch information
rsonghuster authored Sep 14, 2024
2 parents 7defb17 + 57e9f2d commit 0459544
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 62 deletions.
9 changes: 6 additions & 3 deletions publish.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Edition: 3.0.0
Type: Project
Name: start-unzip-oss-dipper
Version: 0.0.3
Name: start-unzip-oss-cap
Version: 0.0.4
Provider:
- 阿里云
Description: 本案例是将解压zip文件工具 unzip,快速创建并部署到阿里云函数计算 FC。
Expand All @@ -19,6 +19,9 @@ Service:
对象存储:
Authorities:
- AliyunFCServerlessDevsRolePolicy
日志服务:
Authorities:
- AliyunFCServerlessDevsRolePolicy
Parameters:
type: object
additionalProperties: false # 不允许增加其他属性
Expand Down Expand Up @@ -86,7 +89,7 @@ Parameters:
prefix:
title: 前缀
type: string
default: src/
default: unzip-src/
description: 配置触发函数计算的文件前缀。您上传指定前缀的ZIP文件或将ZIP文件上传至指定目录会触发函数计算。置空此项则匹配所有上传的ZIP文件,置空此项可能会触发循环执行,建议您配置文件前缀。
processedDir:
title: 解压目标目录
Expand Down
32 changes: 3 additions & 29 deletions readme.md
32 changes: 3 additions & 29 deletions src/readme.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,14 @@

> 注:当前项目为 Serverless Devs 应用,由于应用中会存在需要初始化才可运行的变量(例如应用部署地区、函数名等等),所以**不推荐**直接 Clone 本仓库到本地进行部署或直接复制 s.yaml 使用,**强烈推荐**通过 `s init ${模版名称}` 的方法或应用中心进行初始化,详情可参考[部署 & 体验](#部署--体验)
# start-unzip-oss-dipper 帮助文档
# start-unzip-oss-cap 帮助文档

<description>

本案例是将解压zip文件工具 unzip,快速创建并部署到阿里云函数计算 FC。

</description>

<codeUrl>



</codeUrl>
<preview>



</preview>


## 前期准备

Expand All @@ -33,6 +22,7 @@
| --- | --- | --- |
| 函数计算 | AliyunFCFullAccess | [帮助文档](https://help.aliyun.com/product/2508973.html) [计费文档](https://help.aliyun.com/document_detail/2512928.html) |
| 对象存储 | AliyunFCServerlessDevsRolePolicy | [帮助文档](https://help.aliyun.com/zh/oss) [计费文档](https://help.aliyun.com/zh/oss/product-overview/billing) |
| 日志服务 | AliyunFCServerlessDevsRolePolicy | [帮助文档](https://help.aliyun.com/zh/sls) [计费文档](https://help.aliyun.com/zh/sls/product-overview/billing) |

</service>

Expand All @@ -52,7 +42,7 @@

<appcenter>

- :fire: 通过 [Dipper 应用中心](https://devs.console.aliyun.com/applications/create?template=start-unzip-oss-dipper)[![Deploy with Severless Devs](https://img.alicdn.com/imgextra/i1/O1CN01w5RFbX1v45s8TIXPz_!!6000000006118-55-tps-95-28.svg)](https://devs.console.aliyun.com/applications/create?template=start-unzip-oss-dipper) 该应用。
- :fire: 通过 [云原生应用开发平台 CAP](https://devs.console.aliyun.com/applications/create?template=start-unzip-oss-cap)[![Deploy with Severless Devs](https://img.alicdn.com/imgextra/i1/O1CN01w5RFbX1v45s8TIXPz_!!6000000006118-55-tps-95-28.svg)](https://devs.console.aliyun.com/applications/create?template=start-unzip-oss-cap) 该应用。

</appcenter>
<deploy>
Expand Down Expand Up @@ -118,19 +108,3 @@ dst_bucket.put_object(newKey + name, file_obj)

<matters id="flushContent">
</matters>


<devgroup>


## 开发者社区

您如果有关于错误的反馈或者未来的期待,您可以在 [Serverless Devs repo Issues](https://github.com/serverless-devs/serverless-devs/issues) 中进行反馈和交流。如果您想要加入我们的讨论组或者了解最新动态,您可以通过以下渠道进行:

<p align="center">

| <img src="https://img.alicdn.com/imgextra/i2/O1CN010Sk7sv1Xl6WuOb6uU_!!6000000002963-0-tps-666-662.jpg" width="130px" > | <img src="https://img.alicdn.com/imgextra/i2/O1CN01ATrYb8283GOwhAQzZ_!!6000000007876-0-tps-574-560.jpg" width="130px" > | <img src="https://img.alicdn.com/imgextra/i4/O1CN010Vt5aw27VN5rJIguB_!!6000000007802-0-tps-668-630.jpg" width="130px" > |
| --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| <center>微信公众号:`serverless`</center> | <center>微信小助手:`xiaojiangwh`</center> | <center>钉钉交流群:`33947367`</center> |
</p>
</devgroup>
2 changes: 1 addition & 1 deletion src/s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ resources:
timeout: 7200
runtime: python3
memorySize: 4096
cpu: 2.0
cpu: 2
diskSize: 512
environmentVariables:
PROCESSED_DIR: '{{ processedDir }}'
Expand Down

0 comments on commit 0459544

Please sign in to comment.