|
12 | 12 | <java.min.version>1.7</java.min.version>
|
13 | 13 | <maven.min.version>3.0.0</maven.min.version>
|
14 | 14 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
15 |
| - <org.jboss.arquillian.version>1.1.1.Final</org.jboss.arquillian.version> |
| 15 | + <org.jboss.arquillian.version>1.1.7.Final</org.jboss.arquillian.version> |
16 | 16 | <org.jboss.arquillian.drone.version>1.3.0.Final</org.jboss.arquillian.drone.version>
|
17 | 17 | <org.jboss.arquillian.selenium.bom.version>2.40.0</org.jboss.arquillian.selenium.bom.version>
|
18 | 18 | <org.jboss.arquillian.graphene.version>2.0.2.Final</org.jboss.arquillian.graphene.version>
|
|
729 | 729 | <arq.container.wildfly-docker.configuration.password>Admin#70365</arq.container.wildfly-docker.configuration.password>
|
730 | 730 | <arq.extension.docker.serverVersion>1.15</arq.extension.docker.serverVersion>
|
731 | 731 | <!--<arq.extension.docker.serverUri>http://192.168.59.103:2376</arq.extension.docker.serverUri>-->
|
732 |
| - <arq.extension.docker.serverUri>http://127.0.0.1:2375</arq.extension.docker.serverUri> |
| 732 | + <arq.extension.docker.serverUri>http://boot2docker:2376</arq.extension.docker.serverUri> |
733 | 733 | <arq.extension.docker.dockerContainers>
|
734 | 734 | wildfly-docker:
|
735 | 735 | image: arungupta/javaee7-samples-wildfly
|
|
747 | 747 | </build>
|
748 | 748 | </profile>
|
749 | 749 | <profile>
|
750 |
| - <id>wildfly-docker-arquillian-maven</id> |
| 750 | + <id>wildfly-docker-maven</id> |
751 | 751 | <properties>
|
752 |
| - <browser>chromium-browser</browser> |
753 |
| - <serverProfile>standalone-full.xml</serverProfile> |
754 |
| - <serverRoot>${project.build.directory}/wildfly-${org.wildfly}</serverRoot> |
| 752 | + <docker.api.host>localhost</docker.api.host> |
755 | 753 | </properties>
|
756 |
| - <dependencies> |
757 |
| - <dependency> |
758 |
| - <groupId>org.arquillian.cube</groupId> |
759 |
| - <artifactId>arquillian-cube-docker</artifactId> |
760 |
| - <version>${org.jboss.arquillian.cube.version}</version> |
761 |
| - <scope>test</scope> |
762 |
| - </dependency> |
763 |
| - <dependency> |
764 |
| - <groupId>io.undertow</groupId> |
765 |
| - <artifactId>undertow-websockets-jsr</artifactId> |
766 |
| - <version>1.0.0.Beta25</version> |
767 |
| - <scope>test</scope> |
768 |
| - </dependency> |
769 |
| - <!-- <dependency> |
770 |
| - <groupId>org.jboss.resteasy</groupId> |
771 |
| - <artifactId>resteasy-client</artifactId> |
772 |
| - <version>3.0.5.Final</version> |
773 |
| - <scope>test</scope> |
774 |
| - </dependency> |
775 |
| - <dependency> |
776 |
| - <groupId>org.jboss.resteasy</groupId> |
777 |
| - <artifactId>resteasy-jaxb-provider</artifactId> |
778 |
| - <version>3.0.5.Final</version> |
779 |
| - <scope>test</scope> |
780 |
| - </dependency> |
781 |
| - <dependency> |
782 |
| - <groupId>org.jboss.resteasy</groupId> |
783 |
| - <artifactId>resteasy-json-p-provider</artifactId> |
784 |
| - <version>3.0.5.Final</version> |
785 |
| - <scope>test</scope> |
786 |
| - </dependency>--> |
787 |
| - <dependency> |
788 |
| - <groupId>org.wildfly</groupId> |
789 |
| - <artifactId>wildfly-arquillian-container-remote</artifactId> |
790 |
| - <version>${org.wildfly}</version> |
791 |
| - <scope>test</scope> |
792 |
| - </dependency> |
793 |
| - </dependencies> |
794 | 754 | <build>
|
795 |
| - <testResources> |
796 |
| - <testResource> |
797 |
| - <directory>src/test/resources</directory> |
798 |
| - <filtering>true</filtering> |
799 |
| - </testResource> |
800 |
| - </testResources> |
801 | 755 | <plugins>
|
802 | 756 | <plugin>
|
803 | 757 | <groupId>org.jolokia</groupId>
|
804 | 758 | <artifactId>docker-maven-plugin</artifactId>
|
805 |
| - <version>0.10.4</version> |
| 759 | + <version>0.11.3-SNAPSHOT</version> |
806 | 760 | <configuration>
|
807 | 761 | <images>
|
808 | 762 | <image>
|
809 |
| - <name>arungupta/wildfly-centos</name> |
| 763 | + <name>${project.groupId}/${project.artifactId}</name> |
| 764 | + <alias>wildfly</alias> |
| 765 | + <!-- How to build image with servlet included --> |
| 766 | + <build> |
| 767 | + <!-- Base image (aka "USE") --> |
| 768 | + <from>arungupta/javaee7-samples-wildfly</from> |
| 769 | + <!-- Exposed ports --> |
| 770 | + <ports> |
| 771 | + <port>8080</port> |
| 772 | + <port>9990</port> |
| 773 | + </ports> |
| 774 | + <!-- Describe what to put into the image with an assembly --> |
| 775 | + <assembly> |
| 776 | + <!-- The artefact will be copied there into the image --> |
| 777 | + <basedir>/opt/wildfly/standalone/deployments</basedir> |
| 778 | + <!-- Use the artifact (predefined descriptor) --> |
| 779 | + <descriptorRef>artifact</descriptorRef> |
| 780 | + </assembly> |
| 781 | + </build> |
| 782 | + <!-- How to run it for integration tests or "docker:start" and "docker:stop" --> |
| 783 | + <run> |
| 784 | + <ports> |
| 785 | + <!-- Dynamically let Docker choose ports, store them in ${wildfly.http.port} |
| 786 | + and ${wildfly.admin.port} --> |
| 787 | + <port>wildfly.http.port:8080</port> |
| 788 | + <port>wildfly.admin.port:9990</port> |
| 789 | + </ports> |
| 790 | + <wait> |
| 791 | + <!-- The plugin waits until this URL is reachable via HTTP ... --> |
| 792 | + <url>http://${docker.api.host}:${wildfly.http.port}</url> |
| 793 | + <!-- ... but at most 10 seconds --> |
| 794 | + <time>10000</time> |
| 795 | + </wait> |
| 796 | + </run> |
810 | 797 | </image>
|
811 | 798 | </images>
|
812 | 799 | </configuration>
|
| 800 | + <executions> |
| 801 | + <!-- Hook this plugin into pre- and post-integration tests --> |
| 802 | + <execution> |
| 803 | + <id>start</id> |
| 804 | + <phase>pre-integration-test</phase> |
| 805 | + <goals> |
| 806 | + <goal>build</goal> |
| 807 | + <goal>start</goal> |
| 808 | + </goals> |
| 809 | + </execution> |
| 810 | + <execution> |
| 811 | + <id>stop</id> |
| 812 | + <phase>post-integration-test</phase> |
| 813 | + <goals> |
| 814 | + <goal>stop</goal> |
| 815 | + </goals> |
| 816 | + </execution> |
| 817 | + </executions> |
| 818 | + </plugin> |
| 819 | + |
| 820 | + <!-- Skip Arquillian Tests --> |
| 821 | + <plugin> |
| 822 | + <artifactId>maven-surefire-plugin</artifactId> |
| 823 | + <configuration> |
| 824 | + <skip>true</skip> |
| 825 | + </configuration> |
813 | 826 | </plugin>
|
| 827 | + |
| 828 | + <plugin> |
| 829 | + <artifactId>maven-failsafe-plugin</artifactId> |
| 830 | + <version>2.18.1</version> |
| 831 | + <configuration> |
| 832 | + <systemPropertyVariables> |
| 833 | + <!-- In our example, since we use the "artifact" assembly descriptor ref, the WAR is |
| 834 | + called like the artifacto ("simple-servlet.war") and hence the webapp context is |
| 835 | + also the same --> |
| 836 | + <test.url>http://${docker.api.host}:${wildfly.http.port}/${project.artifactId}</test.url> |
| 837 | + </systemPropertyVariables> |
| 838 | + </configuration> |
| 839 | + <!-- Boilerplate for enablign the failsafe tests (test classes need to end with "IT") --> |
| 840 | + <executions> |
| 841 | + <execution> |
| 842 | + <id>integration-test</id> |
| 843 | + <goals> |
| 844 | + <goal>integration-test</goal> |
| 845 | + </goals> |
| 846 | + </execution> |
| 847 | + <execution> |
| 848 | + <id>verify</id> |
| 849 | + <goals> |
| 850 | + <goal>verify</goal> |
| 851 | + </goals> |
| 852 | + </execution> |
| 853 | + </executions> |
| 854 | + </plugin> |
814 | 855 | </plugins>
|
815 | 856 | </build>
|
816 | 857 | </profile>
|
|
0 commit comments