Sentry 监控 Docker 方式部署

一、简介

二、部署

  • 1、Windows 环境下,还需要配置 WSL 环境(非 Windows 跳过)

    • 开启 Windows 虚拟化Linux 子系统(WSL2)

      image.png

      image.png

    • Ubuntu(乌班图) 是个基于 Debian 以桌面应用为主的 Linux 操作系统,可在应用上线搜索下载,也可通过命令进行安装。

    • 命令安装(默认安装 ubuntu linux)必须运行 Windows 10 版本 2004 及更高版本(内部版本 19041 及更高版本)或 Windows 11 才能使用以下:

      # 安装好 ubuntu 后,并启动,会要求输入账号密码
      $ wsl --install 
      
      # 上面等于下面,默认安装就是 Ubuntu
      $ wsl --install -d Ubuntu
      
      # 输出
      正在安装: Ubuntu  
      已安装 Ubuntu。  
      正在启动 Ubuntu...  
      Installing, this may take a few minutes...
      Please create a default UNIX user account. The username does not need to match your Windows username.  
      For more information visit: <https://aka.ms/wslusers>  
      Enter new UNIX username: xxxx  
      New password:  
      Retype new password:  
      passwd: password updated successfully  
      Installation successful!  
      To run a command as administrator (user "root"), use "sudo <command>".
      ...
      

      安装好后,如何进入 ubuntu?

      1、可在 cmd/PowerShell 中执行 $ ubuntu 命令进入 ubuntu

      2、在系统搜索中,搜索 ubuntu 应用,打开即可。

      [外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-7p3ilgDl-1689156412262)(https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/d111dd5ab9fd4e4c9c1410f973524359~tplv-k3u1fbpfcp-watermark.image?)]

    • wsl1 升级到 wsl2(注意要用管理员权限打开 PowerShell

      # 查看版本
      $ wsl -l -v
      
      # 全部子系统使用版本 2
      $ wsl --set-default-version 2
      
      # 指定某个子系统使用版本 2
      $ wsl --set-version Ubuntu 2
      

      image.png

    • 切换默认子系统

      $ wslconfig /setdefault Ubuntu
      

      image.png

      image.png

  • 2、Docker 安装与基本使用

    • 注意:如果是 windows 安装,原计划是本机需要安装好 Docker Desktop,打开 Ubuntu,在 linux 子系统中安装好 Docker,然后连接到 windowsDocker Desktop

      但是博主这边发现,在本机安装好 Docker Desktop 有了 Docker 环境后,进入 Ubuntu Linux 中输入 $ docker -v 也行,那就这么用吧。

  • 3、下载 Sentry 自动部署仓库 onpremise

猜你喜欢

转载自blog.csdn.net/zz00008888/article/details/131687669