You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by ch...@apache.org on 2014/07/30 17:37:42 UTC

git commit: Use the docker host's gateway as the exposed IP address

Repository: stratos
Updated Branches:
  refs/heads/master 0b982f740 -> b60c67b57


Use the docker host's gateway as the exposed IP address


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

Branch: refs/heads/master
Commit: b60c67b57d6647ba248d51a4007db40be424e630
Parents: 0b982f7
Author: Chris Snow <ch...@apache.org>
Authored: Wed Jul 30 15:34:56 2014 +0000
Committer: Chris Snow <ch...@apache.org>
Committed: Wed Jul 30 15:36:22 2014 +0000

----------------------------------------------------------------------
 tools/stratos-docker-images/README.md      | 4 +---
 tools/stratos-docker-images/run-example.sh | 8 ++++----
 2 files changed, 5 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/b60c67b5/tools/stratos-docker-images/README.md
----------------------------------------------------------------------
diff --git a/tools/stratos-docker-images/README.md b/tools/stratos-docker-images/README.md
index 4678f0f..17b0b49 100644
--- a/tools/stratos-docker-images/README.md
+++ b/tools/stratos-docker-images/README.md
@@ -3,8 +3,6 @@ stratos-docker
 
 docker images for installing stratos
 
-This project is under active development - it is not stable.
-
 ### Building
 
 To build mysql, activemq and stratos images:
@@ -19,7 +17,7 @@ To upload images:
 
 ### Running
 
-See the example:
+Have a look at the example, in particular configuring the IaaS with your settings:
 
 `./run-example.sh`
 

http://git-wip-us.apache.org/repos/asf/stratos/blob/b60c67b5/tools/stratos-docker-images/run-example.sh
----------------------------------------------------------------------
diff --git a/tools/stratos-docker-images/run-example.sh b/tools/stratos-docker-images/run-example.sh
index 4ebde97..714fa8b 100755
--- a/tools/stratos-docker-images/run-example.sh
+++ b/tools/stratos-docker-images/run-example.sh
@@ -29,8 +29,8 @@
 #
 
 MB_ID=$(sudo docker run -p 61616 -d apachestratos/activemq); sleep 2s;
-MB_IP_ADDR=$(sudo docker inspect $MB_ID | grep IPAddress | cut -d '"' -f 4)
-MB_PORT=$(sudo docker port 61616 $MB_ID)
+MB_IP_ADDR=$(sudo docker inspect --format '{{ .NetworkSettings.Gateway }}' $MB_ID)
+MB_PORT=$(sudo docker port $MB_ID 61616 | awk -F':' '{ print $2 }')
 
 #
 # Start mysql docker container 
@@ -40,8 +40,8 @@ MB_PORT=$(sudo docker port 61616 $MB_ID)
 #
 
 USERSTORE_ID=$(sudo docker run -d -p 3306 -e MYSQL_ROOT_PASSWORD=password apachestratos/mysql); sleep 2s;
-USERSTORE_IP_ADDR=$(sudo docker inspect $USERSTORE_ID | grep IPAddress | cut -d '"' -f 4)
-USERSTORE_PORT=$(sudo docker port 3306 $USERSTORE_ID)
+USERSTORE_IP_ADDR=$(sudo docker inspect --format '{{ .NetworkSettings.Gateway }}' $USERSTORE_ID)
+USERSTORE_PORT=$(sudo docker port $USERSTORE_ID 3306 | awk -F':' '{ print $2 }')
 
 #
 # Start Stratos