官方最新镜像不是最新版本,这里构建最新版本镜像,并添加jprofiler,便于服务异常监控.
下载最新版本kettlepack后获取其部署文件并替换当前镜像中的文件.
Dockerfile:
FROM registry.cn-hangzhou.aliyuncs.com/congjing/kettlepack:latest
LABEL made in liulei,hahaha
RUN rm -rf /usr/local/tomcat/webapps/ROOT/*
COPY ./webapps /usr/local/tomcat/webapps
COPY ./jprofiler13.0.2 /opt/jprofiler13.0.2
ENV JAVA_OPTS="-agentpath:/opt/jprofiler13.0.2/bin/linux-x64/libjprofilerti.so=port=8849,nowait"
EXPOSE 9089 8849
可以直接使用镜像: dockerliu3/kettle-pack:0.7.4
参考资料
https://www.congjing.net/h-col-139.html
https://www.cnblogs.com/rongfengliang/p/16574403.html