9.实战交付一套dubbo微服务到k8s集群(2)之Jenkins部署

1.下载Jenkins镜像打包上传harbor上

[ ~]#  docker pull jenkins/jenkins:2.190.3[ ~]# docker images |grep jenkins[ ~]# docker tag 22b8b9a84dbe harbor.fx.com/public/jenkins:v2.190.3[ ~]# docker push harbor.fx.com/public/jenkins:v2.190.3

2.自定义Dockerfile文件

[200 ~]# mkdir -p /data/dockerfile/jenkins && cd /data/dockerfile/jenkins/

3.生成ssh密钥对

[200 ~]# ssh-keygen -t rsa -b 2048 -C "" -N "" -f /root/.ssh/id_rsa

相关推荐