List images on docker
[clamp.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index 0f3fddc..24c148a 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                                </resources>
 
                                <plugins>
-                                       <plugin>
+                                               <plugin>
                                                        <groupId>org.codehaus.mojo</groupId>
                                                        <artifactId>exec-maven-plugin</artifactId>
                                                        <version>1.6.0</version>
                                                        <executions>
-                                                                       <execution>
-                                                                                       <id>docker_info</id>
-                                                                                       <phase>validate</phase>
-                                                                                       <goals>
-                                                                                                       <goal>exec</goal>
-                                                                                       </goals>
-                                                                       </execution>
-                                                       </executions>
-                                                       <configuration>
-                                                                       <executable>docker</executable>
-                                                                       <arguments>
-                                                                               <argument>info</argument>
-                                                                       </arguments>
-                                                       </configuration>
-                                       </plugin>
-                               
-                                       <plugin>
-                                                       <groupId>org.apache.maven.plugins</groupId>
-                                                       <artifactId>maven-antrun-plugin</artifactId>
-                                                       <version>1.1</version>
-                                                       <executions>
-                                                                       <execution>
-                                                                                       <phase>validate</phase>
-                                                                                       <goals>
-                                                                                                       <goal>run</goal>
-                                                                                       </goals>
-                                                                                       <configuration>
-                                                                                                       <tasks>
-                                                                                                                       <echo>******** Displaying value of property ********</echo>
-                                                                                                                       <echo>Docker host set:${env.DOCKER_HOST}</echo>
-                                                                                                       </tasks>
-                                                                                       </configuration>
-                                                                       </execution>
+                                                               <execution>
+                                                                               <id>docker_info</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_info2</id>
+                                                                               <phase>validate</phase>
+                                                                               <goals>
+                                                                                               <goal>exec</goal>
+                                                                               </goals>
+                                                                               <configuration>
+                                                                                               <executable>docker</executable>
+                                                                                               <arguments>
+                                                                                                               <argument>images</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>
                                                                <artifactId>docker-maven-plugin</artifactId>
                                                                <version>1.1.0</version>
                                                                <configuration>
+                                                               <dockerHost>http://localhost:2375</dockerHost>
                                                                                <imageName>onap/clamp</imageName>
                                                                                <dockerDirectory>src/main/docker</dockerDirectory>
                                                                                <serverId>docker-hub</serverId>