| <?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-es</artifactId> |
| |
| <properties> |
| <e2e.dist.directory>dist-for-ttl-es</e2e.dist.directory> |
| <e2e.container.version>1.2</e2e.container.version> |
| <e2e.container.name.prefix>skywalking-e2e-container-${build.id}-ttl-es</e2e.container.name.prefix> |
| <grpc.version>1.14.0</grpc.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>io.grpc</groupId> |
| <artifactId>grpc-protobuf</artifactId> |
| <version>${grpc.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>io.grpc</groupId> |
| <artifactId>grpc-stub</artifactId> |
| <version>${grpc.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>io.grpc</groupId> |
| <artifactId>grpc-netty</artifactId> |
| <version>${grpc.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>io.fabric8</groupId> |
| <artifactId>docker-maven-plugin</artifactId> |
| <configuration> |
| <containerNamePattern>%a-%t-%i</containerNamePattern> |
| <imagePullPolicy>Always</imagePullPolicy> |
| <images> |
| <image> |
| <name>elastic/elasticsearch:${elasticsearch.version}</name> |
| <alias>${e2e.container.name.prefix}-elasticsearch</alias> |
| <run> |
| <ports> |
| <port>es.port:9200</port> |
| </ports> |
| <wait> |
| <http> |
| <url>http://localhost:${es.port}</url> |
| <method>GET</method> |
| <status>200</status> |
| </http> |
| <time>120000</time> |
| </wait> |
| <env> |
| <discovery.type>single-node</discovery.type> |
| <thread_pool.index.queue_size>500</thread_pool.index.queue_size> |
| <thread_pool.write.queue_size>500</thread_pool.write.queue_size> |
| </env> |
| </run> |
| </image> |
| <image> |
| <name>skyapm/e2e-container:${e2e.container.version}</name> |
| <alias>${e2e.container.name.prefix}</alias> |
| <run> |
| <env> |
| <MODE>standalone</MODE> |
| <SW_STORAGE_ES_CLUSTER_NODES> |
| ${e2e.container.name.prefix}-elasticsearch:9200 |
| </SW_STORAGE_ES_CLUSTER_NODES> |
| </env> |
| <dependsOn> |
| <container>${e2e.container.name.prefix}-elasticsearch</container> |
| </dependsOn> |
| <ports> |
| <port>+webapp.host:webapp.port:8081</port> |
| <port>+oap.host:oap.port:11800</port> |
| </ports> |
| <links> |
| <link>${e2e.container.name.prefix}-elasticsearch</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/es_storage.awk:/es_storage.awk</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> |
| <plugin> |
| <groupId>org.xolstice.maven.plugins</groupId> |
| <artifactId>protobuf-maven-plugin</artifactId> |
| <version>${protobuf-maven-plugin.version}</version> |
| <configuration> |
| <!-- |
| The version of protoc must match protobuf-java. If you don't depend on |
| protobuf-java directly, you will be transitively depending on the |
| protobuf-java version that grpc depends on. |
| --> |
| <protocArtifact>com.google.protobuf:protoc:3.3.0:exe:${os.detected.classifier} |
| </protocArtifact> |
| <pluginId>grpc-java</pluginId> |
| <pluginArtifact>io.grpc:protoc-gen-grpc-java:1.8.0:exe:${os.detected.classifier} |
| </pluginArtifact> |
| </configuration> |
| <executions> |
| <execution> |
| <goals> |
| <goal>compile</goal> |
| <goal>compile-custom</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| <extensions> |
| <extension> |
| <groupId>kr.motd.maven</groupId> |
| <artifactId>os-maven-plugin</artifactId> |
| <version>${os-maven-plugin.version}</version> |
| </extension> |
| </extensions> |
| </build> |
| |
| </project> |