使用docker 搭建sonarqube平台
·
前提条件:已经安装了docker的环境
step1:执行如下命令:
docker pull postgres

docker pull sonarqube

step2:执行如下命令:
打tag,再push到仓库中:
[root@test03]# docker tag sonarqube:latest harbor.ctrl.qq.com/library/sonarqube:latest
[root@test03]# docker push harbor.ctrl.qq.com/library/sonarqube:latest

对于postgres也是一样的操作。
step3:部署deployment:
step4:部署service 类型为:nodeip
step5:部署ingress,端口是80。
在本地配置host和step5中的service的域名,这里的host是管控集群的ingress地址。
更多推荐
所有评论(0)