atlassian/crucible!Fisheye
跨CVS、SVN、Git、Mercurial和Perforce仓库进行搜索、监控和跟踪。
!Crucible
通过同行代码审查发现缺陷并提高代码质量。
本Docker容器可轻松启动和运行Fisheye或Crucible实例。
注:示例中将以Fisheye为例进行说明。
运行以下命令启动Fisheye容器:
bashdocker run -d -p 8080:8080 atlassian/fisheye
应用将在 http://localhost:8080 上可用,配置向导将引导您完成初始设置。
以下是一个基本的docker-compose配置文件示例:
yamlversion: '2' services: fecru: image: atlassian/fisheye:4.8.3 ports: - "8080:8080" environment: - 'FISHEYE_OPTS=-Dfecru.configure.from.env.variables=true' # 许可证配置 - 'FECRU_CONFIGURE_LICENSE_FISHEYE=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' - 'FECRU_CONFIGURE_LICENSE_CRUCIBLE=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' # 管理员密码 - 'FECRU_CONFIGURE_ADMIN_PASSWORD=password' # 数据库配置 - 'FECRU_CONFIGURE_DB_TYPE=postgresql' - 'FECRU_CONFIGURE_DB_HOST=db' - 'FECRU_CONFIGURE_DB_PORT=5432' - 'FECRU_CONFIGURE_DB_USER=postgres' - 'FECRU_CONFIGURE_DB_PASSWORD=password' db: image: postgres:11 ports: - "5432:5432" environment: - "POSTGRES_USER=postgres" - "POSTGRES_PASSWORD=password"
要使用环境变量配置Fisheye,需设置:FISHEYE_OPTS=-Dfecru.configure.from.env.variables=true,然后使用以下环境变量:
| 环境变量 | 描述 |
|---|---|
FECRU_CONFIGURE_LICENSE_FISHEYE | Fisheye许可证密钥 |
FECRU_CONFIGURE_LICENSE_CRUCIBLE | Crucible许可证密钥 |
FECRU_CONFIGURE_ADMIN_PASSWORD | 管理员账户密码 |
FECRU_CONFIGURE_DB_TYPE | 数据库类型 |
FECRU_CONFIGURE_DB_HOST | 数据库主机地址 |
FECRU_CONFIGURE_DB_PORT | 数据库端口 |
FECRU_CONFIGURE_DB_NAME | 数据库名称 |
FECRU_CONFIGURE_DB_USER | 数据库用户名 |
FECRU_CONFIGURE_DB_PASSWORD | 数据库密码 |
FECRU_CONFIGURE_DB_MIN_POOL_SIZE | 数据库连接池最小连接数 |
FECRU_CONFIGURE_DB_MAX_POOL_SIZE | 数据库连接池最大连接数 |
您可以使用以下命令挂载Fisheye实例目录:
bash-v /my_instance_folder:/atlassian/data/fisheye
如果使用Crucible镜像,则挂载路径为:
bash-v /my_instance_folder:/atlassian/data/crucible
由于许可限制,Fisheye不随附MySQL或Oracle JDBC驱动程序。如需使用这些数据库,需将合适的驱动程序复制到容器中并重启。例如,要将MySQL驱动复制到名为"fisheye"的容器中:
bashdocker cp mysql-connector-java.x.y.z.jar fisheye:/atlassian/data/fisheye/lib/ docker restart fisheye
对于Crucible,驱动程序路径为:/atlassian/data/crucible/lib/
latest标签对应Atlassian Fisheye或Crucible的最新版本,因此atlassian/fisheye:latest将使用最新版本的Fisheye。
您也可以使用特定版本的标签:
atlassian/fisheye:4、atlassian/fisheye:4.8、atlassian/fisheye:4.8.3atlassian/crucible:4、atlassian/crucible:4.8、atlassian/crucible:4.8.3所有4.8.3及更高版本均可用。
产品支持请访问:
manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务