1、搭建k8s,
2、搭建harbor
3、搭建jenkins gitlab
4、按需制作自己的基础镜像
from docker.io/centos:latest MAINTAINER zhangpan #设置字体 RUN yum install -y fontconfig COPY alger.ttf /usr/share/fonts/lyx RUN fc-cache -f COPY jdk1.8.0_92 /usr/local/jdk1.8.0_92 COPY tomcat /usr/local/tomcat ENV HISTTIMEFORMAT "%Y-%m-%d:%H-%M-%S `whoami`: " ENV JAVA_HOME /usr/local/jdk1.8.0_92 ENV CLASSPATH $JAVA_HOME/lib/
5、创建通用dockerfile以便制作镜像,特殊应用就单独封装
from 172.16.119.225:443/library/tomcat-8:wuyun MAINTAINER zhangpan COPY ROOT.war /usr/local/tomcat/webapps/ROOT.war