设为首页 加入收藏
  • 首页
  • 舌尖之旅
  • 职场创业类
  • 急救常识
  • 航天探索
  • 楼市观察
  • 职业教育
  • 当前位置:首页 > 晨间快报 > 云原生初体验:在K8s上部署Springboot应用

    云原生初体验:在K8s上部署Springboot应用

    发布时间:2026-07-09 来源: 作者:民俗风情

     

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

    安装 Docker 镜像

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

    # 拉取镜像 docker pull getsentry/sentry-cli # 执行命令 docker run --rm -v $(pwd):/work getsentry/sentry-cli --help # sentry-cli 1.68.0  # Command line utility for Sentry.  # This tool helps you manage remote resources on a Sentry server like # sourcemaps, debug symbols or releases.  Use `--help` on the subcommands # to learn more about them.  # USAGE: #     sentry-cli   # OPTIONS: #         --api-key <API_KEY> #             The given Sentry API key.  #         --auth-token <AUTH_TOKEN> #             Use the given Sentry auth token.  #     -h, --help #             Print this help message.  #         --log-level <LOG_LEVEL> #             Set the log output verbosity. [possible values: trace, debug, info, warn, error]  #         --url  #             Fully qualified URL to the Sentry server. #             [defaults to https://sentry.io/] #     -V, --version #             Print version information.   # SUBCOMMANDS: #     bash-hook          Prints out a bash script that does error handling. #     difutil            Locate or analyze debug information files. #     help               Prints this message or the help of the given subcommand(s) #     info               Print information about the Sentry server. #     issues             Manage issues in Sentry. #     login              Authenticate with the Sentry server. #     projects           Manage projects on Sentry. #     react-native       Upload build artifacts for react-native projects. #     releases           Manage releases on Sentry. #     repos              Manage repositories on Sentry. #     send-event         Send a manual event to Sentry. #     upload-dif         Upload debugging information files. #     upload-proguard    Upload ProGuard mapping files to a project.  配置和认证 配置文件

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

    .sentryclirc

    [auth] token=your-auth-token  [defaults] org=sentry project=react-sentry-demo url=https://x.xxx.com 

    进入容器内

    创建一个新版本:

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

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

     

    • 上一篇:IDC报告:2026年二季度中国智能手机市场连跌五季,华为苹果逆势大涨
    • 下一篇:Claude Code 插件功能上线,助力开发者提升编程效率

      相关文章

      • 美国司法部取消100亿美元JEDI合同:宣布新的云服务合同
      • 标签: 亚信科技 ABB 阿里云 英伟达
      • 标签: 虎牙 鹅鸭杀 和平精英 英雄联盟
      • 标签: 华为
      • 标签: 开思时代 汽车后市场 港股IPO 数智化平台
      • Anthropic 为 Claude Pro/Max 用户推出“记忆”功能,实现个性化与安全升级
      • 华为发下一代数据中心理念及全新供电解决方案电力模块3.0
      • OpenAI CEO阿尔特曼:对上市后继续担任CEO持保留态度
      • 英国监管机构:将对亚马逊、谷歌等大型科技公司加强反垄断调查
      • 无影云电脑启动大规模商用 已服务众多行业客户

        随便看看

      • 苹果2020Q4重回智能手机销量全球第一,但全年销售龙头仍是三星
      • 效仿苹果,谷歌将推自研手机和电脑芯片
      • 9.9万元起!宇树科技发布 G1机器人新视频,抗打击能力爆表
      • 标签: 51Talk 黄佳佳 在线教育 美股财报
      • 亚马逊AWS新任CEO面临挑战:内部官僚主义、形式主义泛滥
      • 苹果、微软等美国科技巨头要求政府提供芯片制造补贴
      • 标签: 比格比萨
      • 苹果发布iPhone 17系列新品,AI功能缺失引发行业关注
      • 简单有效,新型对抗性攻击方法成功攻破热门安卓APP中DL模型
      • 云计算核心技术Docker教程:docker-compose在生产环境中使用事项
      • Copyright © 2026 Powered by 云原生初体验:在K8s上部署Springboot应用,   sitemap