1分钟快速使用Docker上手新版Sentry-CLI-创建一个版本

1分钟快速使用docker上手新版Sentry-CLI - 创建一个版本

作者: 为少 2021-08-31 05:01:46

云计算 我们可以使用官方 sentry-cli 工具操作 Sentry API,从而来为你的项目管理一些数据。它主要用于管理 iOS、Android 的调试信息文件,以及其他平台的版本(release)和源代码映射(source maps)管理。

10多年的商城网站建设经验,针对设计、前端、开发、售后、文案、推广等六对一服务,响应快,48小时及时工作处理。全网整合营销推广的优势是能够根据用户设备显示端的尺寸不同,自动调整商城建站的显示方式,使网站能够适用不同显示终端,在浏览器中调整网站的宽度,无论在任何一种浏览器上浏览网站,都能展现优雅布局与设计,从而大程度地提升浏览体验。成都创新互联从事“商城网站设计”,“商城网站推广”以来,每个客户项目都认真落实执行。

本文转载自微信公众号「黑客下午茶」,作者为少。转载本文请联系黑客下午茶公众号。

我们可以使用官方 sentry-cli 工具操作 Sentry API,从而来为你的项目管理一些数据。它主要用于管理 iOS、Android 的调试信息文件,以及其他平台的版本(release)和源代码映射(source maps)管理。

安装

Docker 镜像

默认情况下,该命令在 /work 目录中运行。挂载相关的你的项目文件夹并在那里构建输出以允许 sentry-cli 扫描资源:

  
 
 
 
  1. # 拉取镜像
  2. docker pull getsentry/sentry-cli
  3. # 执行命令
  4. docker run --rm -v $(pwd):/work getsentry/sentry-cli --help
  5. # sentry-cli 1.68.0
  6. # Command line utility for Sentry.
  7. # This tool helps you manage remote resources on a Sentry server like
  8. # sourcemaps, debug symbols or releases.  Use `--help` on the subcommands
  9. # to learn more about them.
  10. # USAGE:
  11. #     sentry-cli 
  12. # OPTIONS:
  13. #         --api-key 
  14. #             The given Sentry API key.
  15. #         --auth-token 
  16. #             Use the given Sentry auth token.
  17. #     -h, --help
  18. #             Print this help message.
  19. #         --log-level 
  20. #             Set the log output verbosity. [possible values: trace, debug, info, warn, error]
  21. #         --url 
  22. #             Fully qualified URL to the Sentry server.
  23. #             [defaults to https://sentry.io/]
  24. #     -V, --version
  25. #             Print version information.
  26. # SUBCOMMANDS:
  27. #     bash-hook          Prints out a bash script that does error handling.
  28. #     difutil            Locate or analyze debug information files.
  29. #     help               Prints this message or the help of the given subcommand(s)
  30. #     info               Print information about the Sentry server.
  31. #     issues             Manage issues in Sentry.
  32. #     login              Authenticate with the Sentry server.
  33. #     projects           Manage projects on Sentry.
  34. #     react-native       Upload build artifacts for react-native projects.
  35. #     releases           Manage releases on Sentry.
  36. #     repos              Manage repositories on Sentry.
  37. #     send-event         Send a manual event to Sentry.
  38. #     upload-dif         Upload debugging information files.
  39. #     upload-proguard    Upload ProGuard mapping files to a project.

配置和认证

配置文件

sentry-cli 工具可以使用名为 .sentryclirc 的配置文件以及环境变量和 .env 文件进行配置。从当前路径向上查找配置文件,并且始终加载 ~/.sentryclirc 中的默认值。您还可以从命令行参数覆盖这些设置。

.sentryclirc

  
 
 
 
  1. [auth]
  2. token=your-auth-token
  3. [defaults]
  4. org=sentry
  5. project=react-sentry-demo
  6. url=https://x.xxx.com

进入容器内

创建一个新版本:

  
 
 
 
  1. docker run --rm -it -v $(pwd):/work getsentry/sentry-cli /bin/sh
  2. sentry-cli releases new 1.0.0

Refs

https://docs.sentry.io/product/cli/

名称栏目:1分钟快速使用Docker上手新版Sentry-CLI-创建一个版本
网页网址:http://www.mswzjz.cn/qtweb/news47/47747.html

攀枝花网站建设、攀枝花网站运维推广公司-贝锐智能,是专注品牌与效果的网络营销公司;服务项目有等

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 贝锐智能