151 lines
6.8 KiB
XML
151 lines
6.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
~ 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.
|
|
-->
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<parent>
|
|
<artifactId>e2e-ttl</artifactId>
|
|
<groupId>org.apache.skywalking</groupId>
|
|
<version>1.0.0</version>
|
|
</parent>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>e2e-ttl-influxdb</artifactId>
|
|
|
|
<properties>
|
|
<e2e.dist.directory>dist-for-ttl-influxdb</e2e.dist.directory>
|
|
<e2e.container.version>1.2</e2e.container.version>
|
|
<e2e.container.name.prefix>skywalking-e2e-container-${build.id}-ttl-influxdb</e2e.container.name.prefix>
|
|
<grpc.version>1.14.0</grpc.version>
|
|
<influxdb.version>1.7.9</influxdb.version>
|
|
<os-maven-plugin.version>1.5.0.Final</os-maven-plugin.version>
|
|
<protobuf-maven-plugin.version>0.5.0</protobuf-maven-plugin.version>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.apache.skywalking</groupId>
|
|
<artifactId>e2e-base</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.skywalking</groupId>
|
|
<artifactId>e2e-protocol</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>kr.motd.maven</groupId>
|
|
<artifactId>os-maven-plugin</artifactId>
|
|
<version>${os-maven-plugin.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>initialize</phase>
|
|
<goals>
|
|
<goal>detect</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>io.fabric8</groupId>
|
|
<artifactId>docker-maven-plugin</artifactId>
|
|
<configuration>
|
|
<containerNamePattern>%a-%t-%i</containerNamePattern>
|
|
<images>
|
|
<image>
|
|
<name>influxdb:${influxdb.version}</name>
|
|
<alias>${e2e.container.name.prefix}-influxdb</alias>
|
|
<run>
|
|
<ports>
|
|
<port>influxdb.port:8086</port>
|
|
</ports>
|
|
<wait>
|
|
<http>
|
|
<url>http://${docker.host.address}:${influxdb.port}/ping</url>
|
|
<method>GET</method>
|
|
</http>
|
|
<time>50000</time>
|
|
</wait>
|
|
</run>
|
|
</image>
|
|
<image>
|
|
<name>skyapm/e2e-container:${e2e.container.version}</name>
|
|
<alias>${e2e.container.name.prefix}</alias>
|
|
<run>
|
|
<env>
|
|
<MODE>standalone</MODE>
|
|
<SW_STORAGE>${SW_STORAGE}</SW_STORAGE>
|
|
<SW_STORAGE_INFLUXDB_URL>http://${e2e.container.name.prefix}-influxdb:8086</SW_STORAGE_INFLUXDB_URL>
|
|
</env>
|
|
<dependsOn>
|
|
<container>${e2e.container.name.prefix}-influxdb</container>
|
|
</dependsOn>
|
|
<ports>
|
|
<port>+webapp.host:webapp.port:8081</port>
|
|
<port>+oap.host:oap.port:11800</port>
|
|
</ports>
|
|
<links>
|
|
<link>${e2e.container.name.prefix}-influxdb</link>
|
|
</links>
|
|
<volumes>
|
|
<bind>
|
|
<volume>${sw.home}:/sw</volume>
|
|
<volume>${project.basedir}/src/docker/rc.d:/rc.d:ro</volume>
|
|
<volume>${project.basedir}/src/docker/influx_storage.awk:/influx_storage.awk:ro</volume>
|
|
<volume>${project.basedir}/src/docker/ttl_official_analysis.oal:/ttl_official_analysis.oal</volume>
|
|
</bind>
|
|
</volumes>
|
|
<wait>
|
|
<log>SkyWalking e2e container is ready for tests</log>
|
|
<time>3000000</time>
|
|
</wait>
|
|
</run>
|
|
</image>
|
|
</images>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!-- set the system properties that can be used in test codes -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-failsafe-plugin</artifactId>
|
|
<configuration>
|
|
<systemPropertyVariables>
|
|
<sw.webapp.host>${webapp.host}</sw.webapp.host>
|
|
<sw.webapp.port>${webapp.port}</sw.webapp.port>
|
|
<oap.host>${oap.host}</oap.host>
|
|
<oap.port>${oap.port}</oap.port>
|
|
</systemPropertyVariables>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>verify</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
</project> |