2024-01-24 13:29:51 +08:00
|
|
|
FROM apache/skywalking-java-agent:9.1.0-java8
|
2023-09-21 10:51:55 +08:00
|
|
|
LABEL authors="yovinchen"
|
2024-01-23 23:44:59 +08:00
|
|
|
LABEL name="service-gateway"
|
|
|
|
|
|
|
|
ARG APP_NAME="service-gateway"
|
|
|
|
ARG JAR_FILE="${APP_NAME}.jar"
|
|
|
|
ARG WORK_PATH="/skywalking"
|
|
|
|
|
|
|
|
ENV JAR_FILE=${JAR_FILE}
|
|
|
|
ENV SW_AGENT_NAME=${APP_NAME}
|
2024-02-19 00:07:17 +08:00
|
|
|
ENV SW_AGENT_COLLECTOR_BACKEND_SERVICES="192.168.31.50:11800"
|
2024-01-23 23:44:59 +08:00
|
|
|
|
|
|
|
RUN rm /skywalking/agent/plugins/apm-armeria-* \
|
|
|
|
/skywalking/agent/plugins/apm-cxf-* \
|
|
|
|
/skywalking/agent/plugins/apm-dubbo-* \
|
|
|
|
/skywalking/agent/plugins/apm-elasticsearch-* \
|
|
|
|
/skywalking/agent/plugins/apm-feign-* \
|
|
|
|
/skywalking/agent/plugins/apm-grizzly-* \
|
|
|
|
/skywalking/agent/plugins/apm-grpc-* \
|
|
|
|
/skywalking/agent/plugins/apm-h2-* \
|
|
|
|
/skywalking/agent/plugins/apm-hbase-* \
|
|
|
|
/skywalking/agent/plugins/apm-httpclient-* \
|
|
|
|
/skywalking/agent/plugins/apm-httpClient-* \
|
|
|
|
/skywalking/agent/plugins/apm-mongodb-* \
|
|
|
|
/skywalking/agent/plugins/apm-mysql-* \
|
|
|
|
/skywalking/agent/plugins/apm-netty-socketio-* \
|
|
|
|
/skywalking/agent/plugins/apm-nutz-http-* \
|
|
|
|
/skywalking/agent/plugins/apm-nutz-mvc-annotation-* \
|
|
|
|
/skywalking/agent/plugins/apm-okhttp-* \
|
|
|
|
/skywalking/agent/plugins/apm-play-* \
|
|
|
|
/skywalking/agent/plugins/apm-rocketmq-* \
|
|
|
|
/skywalking/agent/plugins/apm-spring-cloud-feign-* \
|
|
|
|
/skywalking/agent/plugins/apm-spring-core-patch-* \
|
|
|
|
/skywalking/agent/plugins/apm-springmvc-annotation-* \
|
|
|
|
/skywalking/agent/plugins/apm-tomcat-* \
|
|
|
|
/skywalking/agent/plugins/apm-xxl-job-* \
|
|
|
|
/skywalking/agent/plugins/micronaut-http-client-* \
|
|
|
|
/skywalking/agent/plugins/micronaut-http-server-* \
|
|
|
|
/skywalking/agent/plugins/spring-webflux-5.x-webclient-* \
|
|
|
|
/skywalking/agent/plugins/websphere-liberty-* \
|
|
|
|
/skywalking/agent/plugins/graphql-* \
|
|
|
|
/skywalking/agent/plugins/jedis-* \
|
|
|
|
/skywalking/agent/plugins/jsonrpc4j-* \
|
|
|
|
/skywalking/agent/plugins/motan-* \
|
|
|
|
/skywalking/agent/plugins/nats-* \
|
|
|
|
/skywalking/agent/plugins/okhttp-* \
|
|
|
|
/skywalking/agent/plugins/sofa-rpc-* \
|
|
|
|
/skywalking/agent/plugins/thrift-*
|
|
|
|
|
|
|
|
RUN cp /skywalking/agent/optional-plugins/apm-spring-cloud-gateway-*.jar /skywalking/agent/plugins/
|
|
|
|
|
|
|
|
COPY ./target/$JAR_FILE $JAR_FILE
|
|
|
|
|
|
|
|
WORKDIR $WORK_PATH
|
|
|
|
ENTRYPOINT exec java -jar $JAR_FILE
|
|
|
|
|
2023-11-28 11:49:11 +08:00
|
|
|
|