Repository: stratos
Updated Branches:
  refs/heads/master beffcb3a8 -> 2edabaa66


use maven to push docker images to registry


Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/2edabaa6
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/2edabaa6
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/2edabaa6

Branch: refs/heads/master
Commit: 2edabaa667c9a8aeb9f4e01f597c2e35a0a1e138
Parents: beffcb3
Author: Chris Snow <[email protected]>
Authored: Sat Aug 30 06:54:05 2014 +0000
Committer: Chris Snow <[email protected]>
Committed: Sat Aug 30 06:54:05 2014 +0000

----------------------------------------------------------------------
 tools/stratos-docker-images/pom.xml     | 29 ++++++++++++++++++++++++++++
 tools/stratos-docker-images/push-all.sh | 17 ++++++++--------
 2 files changed, 37 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/2edabaa6/tools/stratos-docker-images/pom.xml
----------------------------------------------------------------------
diff --git a/tools/stratos-docker-images/pom.xml 
b/tools/stratos-docker-images/pom.xml
index 3e4f187..2310a18 100644
--- a/tools/stratos-docker-images/pom.xml
+++ b/tools/stratos-docker-images/pom.xml
@@ -70,5 +70,34 @@
                                </plugins>
                        </build>
                </profile>
+               <!-- Push docker images -->
+               <profile>
+                       <id>docker-push</id>
+                       <build>
+                               <plugins>
+                                       <plugin>
+                                               
<groupId>org.codehaus.mojo</groupId>
+                                               
<artifactId>exec-maven-plugin</artifactId>
+                                               <version>1.3</version>
+                                               <executions>
+                                                       <execution>
+                                                               <configuration>
+                                                                       
<executable>bash</executable>
+                                                                       
<workingDirectory>.</workingDirectory>
+                                                                       
<arguments>
+                                                                               
<argument>push-all.sh</argument>
+                                                                       
</arguments>
+                                                               </configuration>
+                                                               
<id>docker-push</id>
+                                                               
<phase>install</phase>
+                                                               <goals>
+                                                                       
<goal>exec</goal>
+                                                               </goals>
+                                                       </execution>
+                                               </executions>
+                                       </plugin>
+                               </plugins>
+                       </build>
+               </profile>
        </profiles>
 </project>

http://git-wip-us.apache.org/repos/asf/stratos/blob/2edabaa6/tools/stratos-docker-images/push-all.sh
----------------------------------------------------------------------
diff --git a/tools/stratos-docker-images/push-all.sh 
b/tools/stratos-docker-images/push-all.sh
index f0be3fd..bbb16da 100755
--- a/tools/stratos-docker-images/push-all.sh
+++ b/tools/stratos-docker-images/push-all.sh
@@ -20,30 +20,29 @@
 #
 # ----------------------------------------------------------------------------
 
-set -e
-
-version=
+set -e # fail on error
+set -x # debug output
 
 cd bind
-docker push apachestratos/bind:$version
+docker -D push apachestratos/bind:$VERSION
 cd ..
 
 cd puppetmaster
-docker push apachestratos/puppetmaster:$version
+docker push apachestratos/puppetmaster:$VERSION
 cd ..
 
 cd puppettestnode
-docker push apachestratos/puppettestnode:$version
+docker push apachestratos/puppettestnode:$VERSION
 cd ..
 
 cd mysql
-docker push apachestratos/mysql:$version
+docker push apachestratos/mysql:$VERSION
 cd ..
 
 cd activemq
-docker push apachestratos/activemq:$version
+docker push apachestratos/activemq:$VERSION
 cd ..
 
 cd stratos
-docker push apachestratos/stratos:$version
+docker push apachestratos/stratos:$VERSION
 cd ..

Reply via email to