Git Product home page Git Product logo

sermant-examples's Introduction

工程介绍

示例名称 插件文档 示例项目
去源码插件开发模板 去源码插件开发说明 first-plugin-demo
动态配置插件使用示例 动态配置插件使用说明 flowcontrol-demo
流控插件使用示例 流控插件使用说明 flowcontrol-demo
无损上下线插件使用示例 无损上下线插件使用说明 grace-demo
负载均衡插件使用示例 负载均衡插件使用说明 loadbalancer-demo
监控插件使用示例 监控插件使用说明 monitor-demo
标签路由插件使用示例 标签路由插件使用说明 router-demo
流量标签透传插件使用示例 流量标签透传插件使用说明 tag-transmission-demo
注册迁移插件使用示例 注册迁移插件使用说明 registry-demo
SpringBoot注册插件使用示例 SpringBoot注册插件使用说明 registry-demo
服务可见性插件使用示例 服务可见性插件使用说明 visibility-demo
离群实例摘除插件使用示例 离群实例摘除插件使用说明 removal-demo
消息队列禁止消费插件使用示例 消息队列禁止消费插件使用说明 mq-consume-prohibition-demo

RELEASE打包流程

步骤一:增加新demo至打包脚本

若无新增demo,忽略此步

在scripts/copy_jar.sh脚本中添加新demo相关命令

# 创建文件夹
mkdir -p package/xxxxx-demo
# 复制jar包
find . -type f -name "xxxxx-A.jar" -exec cp -v {} package/xxxxx-demo/ \;
find . -type f -name "xxxxx-B.jar" -exec cp -v {} package/xxxxx-demo/ \;
# 打包
tar -czvf package/result/sermant-examples-xxxxx-demo-$*.tar.gz -C package/xxxxx-demo/ .

步骤二:增加新demo至流水线文件

若无新增demo,忽略此步

在.github/workflows/create_release.yml流水线文件中添加新demo相关命令

# 上传release包 ========================
- name: Upload Release xxxxx-demo # 上传xxxxx-demo release包
id: upload-release-asset-xxxxx
uses: actions/[email protected]
env:
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
  upload_url: ${{ steps.create_release.outputs.upload_url }}
  asset_path: ${{ github.workspace }}/package/result/sermant-examples-xxxxx-demo-${{ env.version }}.tar.gz
  asset_name: sermant-examples-xxxxx-demo-${{ env.version }}.tar.gz
  asset_content_type: application/tar

最后提交并合入上述修改

步骤三:创建新tag并推送

git tag vx.x.x

此步骤需拥有仓库直推权限

sermant-examples's People

Contributors

chengyouling avatar daizhenyu avatar hanbingleixue avatar joeminty avatar justforstudy-a avatar lilai23 avatar luanwenfei-venus avatar provenceee avatar robotljw avatar sherlockhan avatar tangledaily avatar xuezechao1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

sermant-examples's Issues

【bug】springcloud注册demo启动失败

What happened?

springcloud注册demo启动失败

How can we reproduce it (as minimally and precisely as possible)?

启动springcloud注册demo

Anything else we need to know?

No response

Sermant version

n/a

OS version

n/a

first-plugin-demo增加动态配置演示

What would you like to be added?

first-plugin-demo增加动态配置中心使用手册的演示

Why is this needed?

用于动态配置中心使用手册的动态配置演示

Fix the issue that the load balancer demo is not included in the project packaging

What happened?

The load balancer demo is not included in the project package

How can we reproduce it (as minimally and precisely as possible)?

Run the maven clean packagem command in the project directory, The load balancer demo is not packaged.

Anything else we need to know?

nothing

Sermant version

1.4.0

OS version

nothing

新增release发布相关文件

What would you like to be added?

新增release发布相关文件

Why is this needed?

1.2.0版本Sermant文档需要相关的release二进制产物

新增流量标签透传demo

What would you like to be added?

新增流量标签透传demo

Why is this needed?

用于官网文档快速入门演示

优雅上下线demo返回信息需要为英文

What happened?

最新验证sermant优雅上下线的demo返回结果中包含中文,不方便国际化,需要实现Demo基线化

最新demo返回中文:

image

How can we reproduce it (as minimally and precisely as possible)?

修改返回结果

Anything else we need to know?

No response

Sermant version

1.0.3

OS version

# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here

数据库禁写插件演示Demo

What would you like to be added?

数据库禁写插件演示Demo

Why is this needed?

1.4.0版本新增数据库禁写插件

官网文档适配1.3.0版本

What would you like to be added?

官网文档更新Sermant和Demo包版本

Why is this needed?

官网文档适配1.3.0版本

项目结构优化

What would you like to be added?

将负载均衡demo模块独立、删除不需要的代码

Why is this needed?

去源码插件开发模块不需要了,此处需要删除处理

【fix】fix hystrix's timeout warning for spring cloud router demo

What happened?

启动路由demo,并调用,日志打印timeout相关的告警日志

How can we reproduce it (as minimally and precisely as possible)?

启动路由demo,并调用下游

Anything else we need to know?

No response

Sermant version

与sermant无关

OS version

与操作系统无关

负载均衡demo打包方式需更改

What would you like to be added?

负载均衡demo打包方式需更改

Why is this needed?

原本打包方式会导致1.2.x以上版本sermant挂载时无法找到类

【demo】新增流控demo

What would you like to be added?

增加流控测试应用,目前为spring应用,可测试feign与resttemplate协议

Why is this needed?

测试

Sermant插件开发和使用指南文章demo

What would you like to be added?

Sermant插件开发和使用指南文章demo

Why is this needed?

《Sermant框架下的服务治理插件快速开发及使用指南》文章的演示代码,指导用户使用Sermant1.2.0版本

新增visibility-demo

What would you like to be added?

新增visibility-demo

Why is this needed?

当前visibility-demo位于sermant集成测试包目录下,现需将其复制至example项目下,适配后需二进制产物

【demo】新增spring cloud路由demo

What would you like to be added?

给router-plugin新增spring-cloud框架的demo

Why is this needed?

router-plugin缺少spring-cloud框架相关的demo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.