docker部署pinpoint

时间:2023-12-21 19:26:20

pinpoint-collector部署

  Dockerfile

FROM    tomcat8:jdk8
MAINTAINER limugen<limugen@uce.cn>
ENV APP_HOME=/uc/apps
ENV PROJECT=pinpoint-collector
RUN mkdir -p ${APP_HOME}/${PROJECT}
ADD pinpoint-collector ${APP_HOME}/${PROJECT}/
RUN ln -s ${APP_HOME}/${PROJECT} ${TOMCAT_HOME}/webapps/${PROJECT}
ADD conf/pinpoint-collector/hbase.properties ${APP_HOME}/${PROJECT}/WEB-INF/classes/
ADD conf/pinpoint-collector/pinpoint-collector.properties ${APP_HOME}/${PROJECT}/WEB-INF/classes/
ADD conf/pinpoint-collector/log4j.xml ${APP_HOME}/${PROJECT}/WEB-INF/classes/

  docker build -t pinpoint-collector:test_9021 .

  docker run -d -p 9021:8080 pinpoint-collector:test_9021

pinpoint-web部署

  Dockerfile

FROM    tomcat8:jdk8
MAINTAINER limugen<limugen@uce.cn>
ENV APP_HOME=/uc/apps
ENV PROJECT=pinpoint-web
RUN mkdir -p ${APP_HOME}/${PROJECT}
ADD ${PROJECT} ${APP_HOME}/${PROJECT}/
RUN ln -s ${APP_HOME}/${PROJECT} ${TOMCAT_HOME}/webapps/${PROJECT}
ADD conf/pinpoint-web/hbase.properties ${APP_HOME}/${PROJECT}/WEB-INF/classes/
ADD conf/pinpoint-web/batch.properties ${APP_HOME}/${PROJECT}/WEB-INF/classes/
ADD conf/pinpoint-web/jdbc.properties ${APP_HOME}/${PROJECT}/WEB-INF/classes/
ADD conf/pinpoint-web/log4j.xml ${APP_HOME}/${PROJECT}/WEB-INF/classes/
ADD conf/pinpoint-web/pinpoint-web.properties ${APP_HOME}/${PROJECT}/WEB-INF/classes/
ADD conf/pinpoint-web/project.properties ${APP_HOME}/${PROJECT}/WEB-INF/classes/

  docker build -t pinpoint-web:test_9022 .

  docker run -d -p 9022:8080  pinpoint-web:test_9022