83 lines
3.1 KiB
YAML
83 lines
3.1 KiB
YAML
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
# this work for additional information regarding copyright ownership.
|
|
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
# (the "License"); you may not use this file except in compliance with
|
|
# the License. You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
version: '2.1'
|
|
|
|
services:
|
|
ui:
|
|
extends:
|
|
file: ../base-compose.yml
|
|
service: ui
|
|
environment:
|
|
- SW_OAP_ADDRESS=oap1:12800,oap2:12800
|
|
depends_on:
|
|
oap1:
|
|
condition: service_healthy
|
|
oap2:
|
|
condition: service_healthy
|
|
|
|
provider1:
|
|
extends:
|
|
file: ../base-compose.yml
|
|
service: provider
|
|
environment:
|
|
SW_AGENT_COLLECTOR_BACKEND_SERVICES: oap1:11800
|
|
SW_AGENT_NAME: e2e-service-provider
|
|
JAVA_OPTS: >-
|
|
-javaagent:/jacoco/jacocoagent.jar=classdumpdir=/jacoco/classes/provider1,destfile=/jacoco/provider1.exec,includes=org.apache.skywalking.*,excludes=org.apache.skywalking.apm.dependencies.*
|
|
-javaagent:/skywalking/agent/skywalking-agent.jar=logging.output=CONSOLE,agent.instance_name=provider1
|
|
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
|
|
depends_on:
|
|
oap1:
|
|
condition: service_healthy
|
|
|
|
provider2:
|
|
extends:
|
|
file: ../base-compose.yml
|
|
service: provider
|
|
environment:
|
|
SW_AGENT_COLLECTOR_BACKEND_SERVICES: oap2:11800
|
|
SW_AGENT_NAME: e2e-service-provider
|
|
JAVA_OPTS: >-
|
|
-javaagent:/jacoco/jacocoagent.jar=classdumpdir=/jacoco/classes/provider2,destfile=/jacoco/provider2.exec,includes=org.apache.skywalking.*,excludes=org.apache.skywalking.apm.dependencies.*
|
|
-javaagent:/skywalking/agent/skywalking-agent.jar=logging.output=CONSOLE,agent.instance_name=provider2
|
|
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
|
|
depends_on:
|
|
oap2:
|
|
condition: service_healthy
|
|
|
|
consumer:
|
|
extends:
|
|
file: ../base-compose.yml
|
|
service: consumer
|
|
environment:
|
|
SW_AGENT_COLLECTOR_BACKEND_SERVICES: oap1:11800
|
|
SW_AGENT_NAME: e2e-service-consumer
|
|
PROVIDER_URL: http://provider1:9090,http://provider2:9090
|
|
JAVA_OPTS: >-
|
|
-javaagent:/jacoco/jacocoagent.jar=classdumpdir=/jacoco/classes/consumer,destfile=/jacoco/consumer.exec,includes=org.apache.skywalking.*,excludes=org.apache.skywalking.apm.dependencies.*
|
|
-javaagent:/skywalking/agent/skywalking-agent.jar=logging.output=CONSOLE,agent.instance_name=consumer
|
|
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
|
|
depends_on:
|
|
oap1:
|
|
condition: service_healthy
|
|
provider1:
|
|
condition: service_healthy
|
|
provider2:
|
|
condition: service_healthy
|
|
|
|
networks:
|
|
e2e:
|