参考资料:
https://segmentfault.com/q/1010000012232299?sort=created
https://usthe.com/2017/12/docker_learn/
https://www.jianshu.com/p/e66d2c405c3f
特点:该jenkins里可调用docker命令进行打包
制作镜像
创建Dockerfile文件,内容如下:
vi Dockerfile
FROM jenkins/jenkins:2.263.1
MAINTAINER Allen
USER root
#清除了基础镜像设置的源,切换成阿里云的jessie加快构建镜像速度
RUN echo '' > /etc/apt/sources.list.d/jessie-backports.list