39

docker k8s 集群部署tomcat,使用一个镜像,增加镜像的复用性。-技术成就梦想

 4 years ago
source link: https://blog.51cto.com/xinsir/2415723
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
写在前面,k8s集群均已经搭建好,具体步骤可以查看前面文章。编写Dockerfile文件,目的创建一个可以公用的image,每次部署tomcat直接使用该镜像不用每次都进行build镜像。# 开始本来想使用tomcat的官方镜像,但是无奈官方镜像的系统用的都是diban 8的系统,因为我要做日志切割,需要安装cronolog软件,# 翻篇google、百度并没有找到如何使用apt-get 安装,

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK