jenkins部署

参考 :https://iblog.csdn.net/qq_37143673/article/details/97613633

docker run --name jenkinsci-blueocean -u root --rm  -d -p 7005:8080 -p 50000:50000 -v /data/jenkins:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock jenkinsci/blueocean

-u root:以 root 权限启动,防止出现权限问题
-p 7005:8080:端口映射,服务器的 7005 端口映射容器的 8080 端口
-p 50000:50000:Jenkins代理默认通过TCP端口50000与Jenkins主机通信
-v /data/jenkins:/var/jenkins_home:把容器内的 Jenkins 目录挂载到服务器的 /data/jenkins 目录以防容器没了,数据也没了
-v /var/run/docker.sock:/var/run/docker.sock:保证容器内的 docker 与 服务器上 docker 的通讯
————————————————
版权声明:本文为CSDN博主「乐之终曲」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_37143673/article/details/97613633

 

FROM hub.windinfo.cn/gridstack/jenkinsci/blueocean:latest
MAINTAINER zhangchunyang
USER 0
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
RUN apk update && apk add gcc && apk add g++ && apk add python3-dev
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python3 get-pip.py
RUN pip3 install Cython -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
RUN pip3 install numpy -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
RUN pip3 install pandas pytest pytest-html python-dateutil -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com

RUN pip3 install SQLAlchemy -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
RUN pip3 install pymongo -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
RUN apk add postgresql-dev
RUN pip3 install psycopg2 pylint pytest-cov -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com

 

jenkins集成svn+maven+tomcat+sonarQube+sonarScanner   https://blog.csdn.net/china1987427/article/details/86730155  https://www.jianshu.com/p/19af03f48c9a

1 装插件

 

 2 Jenkins->系统管理->系统设置,配置 SonarQube Server 信息

 

 

posted on 2020-01-07 10:22  我和你并没有不同  阅读(170)  评论(0编辑  收藏  举报