【发布时间】:2015-03-02 01:49:31
【问题描述】:
我在 dockerhub 中找到了official sentry image。但是文档不完整,无法一步步搭建环境。
我们必须先设置数据库容器,但他们都没有告诉如何设置它。具体来说,我不知道哨兵会使用什么用户名和密码。
当我运行哨兵容器时,我也收到以下错误:
sudo docker run --name some-sentry --link some-mysql:mysql -d sentry
e888fcf2976a9ce90f80b28bb4c822c07f7e0235e3980e2a33ea7ddeb0ff18ce
sudo docker logs some-sentry
Traceback (most recent call last):
File "/usr/local/bin/sentry", line 9, in <module>
load_entry_point('sentry==6.4.4', 'console_scripts', 'sentry')()
File "/usr/local/lib/python2.7/site-packages/sentry/utils/runner.py", line 310, in main
initializer=initialize_app,
File "/usr/local/lib/python2.7/site-packages/logan/runner.py", line 167, in run_app
configure_app(config_path=config_path, **kwargs)
File "/usr/local/lib/python2.7/site-packages/logan/runner.py", line 89, in configure_app
raise ValueError("Configuration file does not exist at %r" % (config_path,))
ValueError: Configuration file does not exist at '/.sentry/sentry.conf.py'
【问题讨论】:
-
尝试步骤并在遇到困难时提出问题
-
我试过官方镜像后卡住了。这是related issue。我的问题是在运行哨兵之前不知道如何设置数据库容器。
-
hub.docker.com/_/sentry 有弃用通知。