
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
https://travis-ci.com/Hygieia/UI.svg?branch=master](https://travis-ci.com/Hygieia/UI?branch=master) https://img.shields.io/maven-central/v/com.capitalone.dashboard/UI.svg?label=Maven%20Central](https://search.maven.org/search?q=g:%22com.capitalone.dashboard%22%20AND%20a:%22UI%22) https://img.shields.io/lgtm/alerts/github/Hygieia/UI.svg?logo=lgtm&logoWidth=18]([***]
作为Hygieia模块化改造的一部分,本仓库托管Hygieia UI代码,用于构建DevOps仪表板的用户界面。该项目需要Angular CLI 8.0.3版本和OpenJDK 1.8.0_265版本。
新的Hygieia UI需要构建UI和API层,无需依赖Hygieia核心组件:
npm install安装依赖包npm install -g @angular/cli@8.0.3ng version验证版本(确保为v8系列)启动UI前需先运行API层:
api目录,执行mvn clean install生成target/api.jarapi.properties文件(连接MongoDB、认证等参数),示例如下:properties# api.properties dbname=dashboarddb dbusername=dashboarduser[MongoDB用户名,默认空] dbpassword=dbpassword[MongoDB密码,默认空] dbhost=[MongoDB主机,默认localhost] dbport=[MongoDB端口,默认27017] dbreplicaset=[非副本集则为false] dbhostport=[主机端口列表,如host1:port1] server.contextPath=[Web上下文路径,可选] server.port=[Web端口,默认8080] logRequest=false logSplunkRequest=false corsEnabled=false corsWhitelist=http://domain1.com:port,http://domain2.com:port version.number=@application.version.number@ auth.expirationTime=[JWT过期时间(毫秒)] auth.secret=[JWT验证密钥] auth.authenticationProviders=[认证类型,默认STANDARD,如STANDARD,LDAP] auth.ldapServerUrl=[LDAP服务器地址,含端口] auth.ldapUserDnPattern=[LDAP用户DN模板,{0}替换为用户名] # LDAP服务器地址 auth.ldapServerUrl=[ldap://company.com:389] # 标准LDAP用户DN模板 auth.ldapUserDnPattern=[uid={0},OU=Users,dc=your,dc=company,dc=com] # ActiveDirectory配置 auth.adDomain=[company.com] auth.adRootDn=[dc=your,dc=company,dc=com] auth.adUrl=[示例:ldap://ad.company.com:389] monitor.proxy.host=[代理服务器主机名] monitor.proxy.type=[http|socks|direct] monitor.proxy.port=[代理端口] monitor.proxy.username=[代理用户名] monitor.proxy.password=[代理密码] # 分页大小(默认10) pageSize=[整数] # API基础认证令牌 key=[api token] # SSO头部参数 auth.userEid=[EID头部名称] auth.userEmail=[邮箱头部名称] auth.userFirstName=[名头部名称] auth.userLastName=[姓头部名称] auth.userMiddelInitials=[中间名头部名称] auth.userDisplayName=[显示名头部名称] # Github同步配置 githubSyncSettings.notBuiltCommits; githubSyncSettings.firstRunHistoryDays;[同步历史天数,默认60] githubSyncSettings.offsetMinutes;[偏移时间(分钟),默认10] githubSyncSettings.fetchCount;[拉取数量,默认100] githubSyncSettings.commitPullSyncTime;[同步间隔(毫秒),默认86400000]
api/target目录,执行:java -jar api.jar --spring.config.location=/path/to/api.properties -Djasypt.encryptor.password=hygieiasecretAPI运行后,在UI目录执行ng build(生产环境加--prod),产物存于dist/目录。
Ubuntu 20.04额外步骤:
npm install -g gulpnpm install gulp --save-devgulp buildgulp serveUI目录执行ng serve启动开发服务器,访问http://localhost:4200/(建议无痕模式),代码变更自动重载。
ng test通过Karma运行单元测试npm run test-headless执行无头测试并生成覆盖率报告Edit Configurations,添加JavaScript Debughttp://localhost:4200执行ng generate component component-name生成组件,支持指令、管道、服务等类型。
执行ng e2e通过Protractor运行端到端测试。
执行ng help获取Angular CLI帮助,或参考https://github.com/angular/angular-cli/blob/master/README.md%E3%80%82
bashdocker run -d \ -p 4200:4200 \ --name hygieia-ui \ --link hygieia-api:api \ -e API_URL=http://api:8080 \ paruff/hygieia-ui
yamlversion: '3' services: hygieia-api: image: hygieia-api:latest ports: - "8080:8080" volumes: - ./api.properties:/config/api.properties command: java -jar api.jar --spring.config.location=/config/api.properties hygieia-ui: image: paruff/hygieia-ui ports: - "4200:4200" depends_on: - hygieia-api environment: - API_URL=[***]
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务