1,docker 打包,v2 版本其实也没做啥,就是打包安装了一个字体,原版是openjdk8,现在我把这个
[root@log-242-31 product-service-biz]# ls skywalking/
activations bootstrap-plugins config logs optional-plugins optional-reporter-plugins plugins skywalking-agent.jar
[root@log-242-31 product-service-biz]# cat Dockerfile
FROM 10.1.1.247/datacenter/openjava8:v2
RUN apk add --no-cache tzdata
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
COPY skywalking /skywalking
docker build -t 10.1.1.247/datacenter/openjava8:v3 .
docker push 10.1.1.247/datacenter/openjava8:v3
不加agent,原项目启动脚本
#!/bin/sh
java -server -Xmx1g -Xms1g -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=256m -Xss256k -Djava.ext.dirs=/usr/lib/jvm/java-1.8-openjdk/jre/lib/ext -classpath "/scm-warehouseservice/lib/*" com.ruipeng.scm.warehouse.ServiceAppli