Repository: stratos Updated Branches: refs/heads/master 4043308d8 -> 5c43c107c
fix dns for stratos docker image Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/5c43c107 Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/5c43c107 Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/5c43c107 Branch: refs/heads/master Commit: 5c43c107cfd8f5e555a516685e5e3c2b59eddb6a Parents: 4043308 Author: Chris Snow <[email protected]> Authored: Sun Aug 31 09:48:58 2014 +0000 Committer: Chris Snow <[email protected]> Committed: Sun Aug 31 09:48:58 2014 +0000 ---------------------------------------------------------------------- tools/stratos-docker-images/run-example.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/5c43c107/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 fdc63d2..3d32db9 100755 --- a/tools/stratos-docker-images/run-example.sh +++ b/tools/stratos-docker-images/run-example.sh @@ -99,7 +99,7 @@ docker_env+=(-e "USERSTORE_DB_PASS=password") # Puppet Setings docker_env+=(-e "PUPPET_IP=${IP_ADDR}") -docker_env+=(-e "PUPPET_HOSTNAME=${DOMAIN}") +docker_env+=(-e "PUPPET_HOSTNAME=${MASTERHOSTNAME}") docker_env+=(-e "PUPPET_ENVIRONMENT=none") # MB Settings @@ -129,5 +129,8 @@ docker_env+=(-e "VCLOUD_ENDPOINT=none") docker_env+=(-e "STRATOS_PROFILE=default") # Start Stratos container as daemon -STRATOS_ID=$(docker run -d "${docker_env[@]}" -p 9443:9443 apachestratos/stratos:$STRATOS_VERSION) +STRATOS_ID=$(docker run -d "${docker_env[@]}" -p 9443:9443 --dns=${BIND_IP_ADDR} apachestratos/stratos:$STRATOS_VERSION) sudo docker logs -f $STRATOS_ID + +# To run stratos interactively - e.g. for debugging +# docker run -i -t "${docker_env[@]}" -p 9443:9443 --dns=${BIND_IP_ADDR} apachestratos/stratos:$STRATOS_VERSION /bin/bash
