需要的前置環境
-
- docker
-
- python
-
- docker-compose
目前不建議安裝20的版本,因爲我沒找到合適20版本的釘釘插件 :)
開始安裝
git clone https://github.com/getsentry/onpremise.git
cd onpremise/
git branch -a
git checkout releases/10.0.x // 切換到10版本
開始安裝
執行sh install.sh
開始安裝, 安裝過程中會讓你輸入管理員郵箱和密碼用作登錄
Would you like to create a user account now? [Y/n]: Y
Email: your_email
Password:
先別急着輸入docker-compose up -d
瀏覽器訪問 ip:9000 登錄你剛纔設置的賬號密碼,設置發送郵箱。
我這邊使用網易163的企業郵箱 994端口 如何查詢 https://qiye.163.com/help/client-profile.html
修改 vim sentry/config.yml
修改
mail.backend: 'django_smtp_ssl.SSLEmailBackend'
mail.host: 'smtphz.qiye.163.com'
執行命令
echo "sentry_dingtalk_xz" >> sentry/requirements.txt // 釘釘插件
echo "django-smtp-ssl~=1.0" >> sentry/requirements.txt // SSL
執行 docker-compose build
完成後輸入docker-compose up -d
配置釘釘
新建個項目,自行配置代碼,進入項目 點上面的settings
,在左邊菜單靠下面的位置找到Legacy Integrations
下拉找到dingtalk
點擊Configure plugin
配置 釘釘創建的webhook
連接 點擊測試
設置
中文
在 settings
的 Account Details
裏的 Language
可以設置成 Simplified Chinese
時區
在 settings
的 Account Details
裏的 Timezone
可以設置成 (UTC+0800) Asia/Shanghai