1,打包
2,创建dockerFile文件
FROM anapsix/alpine-java:8_server-jre_unlimited MAINTAINER Lion Li RUN mkdir -p /hnapg/basedata/logs \ /hnapg/basedata/temp \ /hnapg/skywalking/agent WORKDIR /hnapg/basedata ENV SERVER_PORT=9205 EXPOSE ${SERVER_PORT} ADD ./target/hnapg-basedata.jar ./app.jar ENTRYPOINT ["java", \ "-Djava.security.egd=file:/dev/./urandom", \ "-Dserver.port=${SERVER_PORT}", \ # "-Dskywalking.agent.service_name=hnapg-system", \ # "-javaagent:/hnapg/skywalking/agent/skywalking-agent.jar", \ "-jar", "app.jar"]
3,修改docker配置
4,配置基础设置
5,配置连接
6,build构建
标签:hnapg,jar,agent,SERVER,tcp,docker,推送,PORT,basedata From: https://www.cnblogs.com/yeg0zj/p/17824221.html