From db67b87575707fc7b4dae414eeea3bea22a76987 Mon Sep 17 00:00:00 2001 From: Gao Hongtao Date: Thu, 12 Sep 2019 10:15:18 +0800 Subject: [PATCH] Update docker-entrypoint.sh (#3465) --- docker/oap/docker-entrypoint.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/docker/oap/docker-entrypoint.sh b/docker/oap/docker-entrypoint.sh index b2f4c83af..070e7a536 100755 --- a/docker/oap/docker-entrypoint.sh +++ b/docker/oap/docker-entrypoint.sh @@ -82,9 +82,23 @@ EOT } generateStorageElastisearch() { +if [[ "$SW_RECEIVER_ZIPKIN_ENABLED" = "true" ]]; then + cat <> ${var_application_file} +storage: + zipkin-elasticsearch: +EOT +elif [[ "$SW_RECEIVER_JAEGER_ENABLED" = "true" ]]; then + cat <> ${var_application_file} +storage: + jaeger-elasticsearch: +EOT +else cat <> ${var_application_file} storage: elasticsearch: +EOT +fi +cat <> ${var_application_file} nameSpace: \${SW_NAMESPACE:""} clusterNodes: \${SW_STORAGE_ES_CLUSTER_NODES:localhost:9200} protocol: \${SW_STORAGE_ES_HTTP_PROTOCOL:"http"} @@ -280,6 +294,15 @@ EOT cat <> ${var_application_file} receiver-sharing-server: default: + restHost: \${SW_RECEIVER_SHARING_REST_HOST:0.0.0.O} + restPort: \${SW_RECEIVER_SHARING_REST_PORT:0} + restContextPath: \${SW_RECEIVER_SHARING_REST_CONTEXT_PATH:/} + gRPCHost: \${SW_RECEIVER_SHARING_GRPC_HOST:0.0.0.O} + gRPCPort: \${SW_RECEIVER_SHARING_GRPC_PORT:0} + maxConcurrentCallsPerConnection: \${SW_RECEIVER_SHARING_MAX_CONCURRENT_CALL:0} + maxMessageSize: \${SW_RECEIVER_SHARING_MAX_MESSAGE_SIZE:0} + gRPCThreadPoolSize: \${SW_RECEIVER_SHARING_GRPC_THREAD_POOL_SIZE:0} + gRPCThreadPoolQueueSize: \${SW_RECEIVER_SHARING_GRPC_THREAD_POOL_QUEUE_SIZE:0} receiver-register: default: receiver-trace: