kezhenxu94 commented on a change in pull request #4268: merge e2e profile test project URL: https://github.com/apache/skywalking/pull/4268#discussion_r368265731
########## File path: test/e2e/e2e-profile/e2e-profile-test-runner/pom.xml ########## @@ -46,5 +46,254 @@ </dependencies> + <properties> + <provider.name>e2e-profile-service</provider.name> + <e2e.container.version>1.1</e2e.container.version> + <e2e.container.name.prefix>skywalking-e2e-container-${build.id}-profile</e2e.container.name.prefix> + </properties> + + <profiles> + <!--mysql environment --> + <profile> + <id>mysql</id> + <build> + <plugins> + <plugin> + <groupId>io.fabric8</groupId> + <artifactId>docker-maven-plugin</artifactId> + <configuration> + <containerNamePattern>%a-%t-%i</containerNamePattern> + <images> + <image> + <name>mysql/mysql-server:${mysql.version}</name> + <alias>${e2e.container.name.prefix}-datasource</alias> + <run> + <wait> + <log>Socket: '/var/run/mysqld/mysqlx.sock' bind-address: '::' port: 3306</log> + <time>120000</time> + </wait> + <env> + <MYSQL_ROOT_PASSWORD>root@1234</MYSQL_ROOT_PASSWORD> + <MYSQL_DATABASE>swtest</MYSQL_DATABASE> + <MYSQL_ROOT_HOST>%</MYSQL_ROOT_HOST> + </env> + <ports> + <port>mysql.port:3306</port> + </ports> + </run> + </image> + <image> + <name>skyapm/e2e-container:${e2e.container.version}</name> + <alias>${e2e.container.name.prefix}-runner</alias> + <run> + <env> + <STORAGE>mysql</STORAGE> + <SW_JDBC_URL>jdbc:mysql://${e2e.container.name.prefix}-datasource:3306/swtest</SW_JDBC_URL> + <INSTRUMENTED_SERVICE_1> + ${provider.name}-${project.version}.jar + </INSTRUMENTED_SERVICE_1> + <INSTRUMENTED_SERVICE_1_OPTS> + -DSW_AGENT_COLLECTOR_BACKEND_SERVICES=127.0.0.1:11800 + -DSW_AGENT_PROFILE_ACTIVE=true + -DSW_AGENT_NAME=${provider.name} + -Dserver.port=9090 + </INSTRUMENTED_SERVICE_1_OPTS> + </env> + <dependsOn> + <container>${e2e.container.name.prefix}-datasource</container> + </dependsOn> + <links> + <link>${e2e.container.name.prefix}-datasource</link> + </links> + <ports> + <port>+webapp.host:webapp.port:8081</port> + <port>+service.host:service.port:9090</port> + </ports> + <volumes> + <bind> + <volume>${sw.home}:/sw</volume> + <volume>${project.build.directory}:/home</volume> + <volume>../${provider.name}/target/${provider.name}-${project.version}.jar:/home/${provider.name}-${project.version}.jar</volume> + <volume>${project.basedir}/src/docker/rc.d:/rc.d:ro</volume> + <volume>${project.basedir}/src/docker/clusterize.awk:/clusterize.awk</volume> + </bind> + </volumes> + <wait> + <log>SkyWalking e2e container is ready for tests</log> + <time>3000000</time> + </wait> + </run> + </image> + </images> + </configuration> + </plugin> + </plugins> + </build> + </profile> + + <!--h2 environment --> + <profile> + <id>h2</id> + <build> + <plugins> + <plugin> + <groupId>io.fabric8</groupId> + <artifactId>docker-maven-plugin</artifactId> + <configuration> + <containerNamePattern>%a-%t-%i</containerNamePattern> + <imagePullPolicy>Always</imagePullPolicy> + <images> + <image> + <name>skyapm/e2e-container:${e2e.container.version}</name> + <alias>${e2e.container.name.prefix}</alias> + <run> + <env> + <STORAGE>h2</STORAGE> + <INSTRUMENTED_SERVICE_1> + ${provider.name}-${project.version}.jar + </INSTRUMENTED_SERVICE_1> + <INSTRUMENTED_SERVICE_1_OPTS> + -DSW_AGENT_COLLECTOR_BACKEND_SERVICES=127.0.0.1:11800 + -DSW_AGENT_PROFILE_ACTIVE=true + -DSW_AGENT_NAME=${provider.name} + -Dserver.port=9090 + </INSTRUMENTED_SERVICE_1_OPTS> + </env> + <ports> + <port>+webapp.host:webapp.port:8081</port> + <port>+service.host:service.port:9090</port> + </ports> + <volumes> + <bind> + <volume>${sw.home}:/sw</volume> + <volume>../${provider.name}/target/${provider.name}-${project.version}.jar:/home/${provider.name}-${project.version}.jar</volume> + <volume>${project.basedir}/src/docker/rc.d:/rc.d:ro</volume> + <volume>${project.basedir}/src/docker/clusterize.awk:/clusterize.awk</volume> + </bind> + </volumes> + <wait> + <log>SkyWalking e2e container is ready for tests</log> + <time>3000000</time> + </wait> + </run> + </image> + </images> + </configuration> + </plugin> + </plugins> + </build> + </profile> + + <!--elasticsearch environment --> Review comment: ```suggestion <!--elasticsearch storage --> ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services