Add commands to debug
[clamp.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index 4beb6d6..3d4444a 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                                </resources>
 
                                <plugins>
+                                               <plugin>
+                                                       <groupId>org.codehaus.mojo</groupId>
+                                                       <artifactId>exec-maven-plugin</artifactId>
+                                                       <version>1.6.0</version>
+                                                       <executions>
+                                                               <execution>
+                                                                               <id>docker_info0</id>
+                                                                               <phase>validate</phase>
+                                                                               <goals>
+                                                                                               <goal>exec</goal>
+                                                                               </goals>
+                                                                               <configuration>
+                                                                                               <executable>docker</executable>
+                                                                                               <arguments>
+                                                                                                               <argument>ps</argument>
+                                                                                                               <argument>--all</argument>
+                                                                                               </arguments>
+                                                                               </configuration>
+                                                               </execution>
+                                                               <execution>
+                                                                               <id>docker_info1</id>
+                                                                               <phase>validate</phase>
+                                                                               <goals>
+                                                                                               <goal>exec</goal>
+                                                                               </goals>
+                                                                               <configuration>
+                                                                                               <executable>docker</executable>
+                                                                                               <arguments>
+                                                                                                               <argument>images</argument>
+                                                                                               </arguments>
+                                                                               </configuration>
+                                                               </execution>
+                                                                       <execution>
+                                                                               <id>docker_info2</id>
+                                                                               <phase>validate</phase>
+                                                                               <goals>
+                                                                                               <goal>exec</goal>
+                                                                               </goals>
+                                                                               <configuration>
+                                                                                               <executable>ls</executable>
+                                                                                               <arguments>
+                                                                                                               <argument>-latr</argument>
+                                                                                                               <argument>/var/run/docker.sock</argument>
+                                                                                               </arguments>
+                                                                               </configuration>
+                                                               </execution>
+
+                                                               <execution>
+                                                                               <id>docker_info3</id>
+                                                                               <phase>validate</phase>
+                                                                               <goals>
+                                                                                               <goal>exec</goal>
+                                                                               </goals>
+                                                                               <configuration>
+                                                                                               <executable>cat</executable>
+                                                                                               <arguments>
+                                                                                                               <argument>/etc/hosts</argument>
+                                                                                               </arguments>
+                                                                               </configuration>
+                                                               </execution>
+                                                               <execution>
+                                                                               <id>docker_info4</id>
+                                                                               <phase>validate</phase>
+                                                                               <goals>
+                                                                                               <goal>exec</goal>
+                                                                               </goals>
+                                                                               <configuration>
+                                                                                               <executable>curl</executable>
+                                                                                               <arguments>
+                                                                                                               <argument>-v</argument> 
+                                                                                                               <argument>http://127.0.0.1:2375/info</argument>
+                                                                                               </arguments>
+                                                                               </configuration>
+                                                               </execution>
+                                                               <execution>
+                                                                               <id>docker_info5</id>
+                                                                               <phase>validate</phase>
+                                                                               <goals>
+                                                                                               <goal>exec</goal>
+                                                                               </goals>
+                                                                               <configuration>
+                                                                                               <executable>netstat</executable>
+                                                                                               <arguments>
+                                                                                                               <argument>-tulnp</argument> 
+                                                                                               </arguments>
+                                                                               </configuration>
+                                                               </execution>
+                                                       </executions>
+                                                       
+                                       </plugin>
                                        <!-- Scan Clamp code and generate the swagger.json file with all the APIs -->
                                        <plugin>
                                                <groupId>com.sebastian-daschner</groupId>
                                                <plugin>
                                                                <groupId>com.spotify</groupId>
                                                                <artifactId>docker-maven-plugin</artifactId>
-                                                               <version>1.0.0</version>
+                                                               <version>1.1.0</version>
                                                                <configuration>
+
+                                                               <dockerHost>http://127.0.0.1:2375</dockerHost>
                                                                                <imageName>onap/clamp</imageName>
                                                                                <dockerDirectory>src/main/docker</dockerDirectory>
                                                                                <serverId>docker-hub</serverId>