List images on docker 59/48959/1
authorDeterme, Sebastien (sd378r) <sd378r@intl.att.com>
Thu, 24 May 2018 13:56:29 +0000 (15:56 +0200)
committerDeterme, Sebastien (sd378r) <sd378r@intl.att.com>
Thu, 24 May 2018 13:56:29 +0000 (15:56 +0200)
List images on docker in order to know details about docker instance

Issue-ID: CLAMP-150
Change-Id: Ibbc02b06980880480e676c7ca26d97a5e3deb6d0
Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
pom.xml

diff --git a/pom.xml b/pom.xml
index cea95eb..24c148a 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_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>