Skip to content

Commit

Permalink
vis command not working due to move of manomarks/visualizer repository (
Browse files Browse the repository at this point in the history
#5)

* updated code to use dockersamples/visualizer
* updated code to use port 8080 as by dockersamples/visualizer
  • Loading branch information
chicco785 authored and aelsabbahy committed Dec 21, 2017
1 parent 65023ba commit e7f3083
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions miniswarm
Original file line number Diff line number Diff line change
Expand Up @@ -321,10 +321,10 @@ deploy_swarm_visualizer() {
if [[ $(docker ps -qa -f 'Status=exited' -f Name='swarm_visualizer') ]]; then
docker rm -vf swarm_visualizer > /dev/null
fi
docker run -it -d --name swarm_visualizer -p 5000:5000 -e HOST="$manager_ip" -e PORT=5000 -v /var/run/docker.sock:/var/run/docker.sock manomarks/visualizer
docker run -it -d --name swarm_visualizer -p 8080:8080 -e HOST="$manager_ip" -e PORT=8080 -v /var/run/docker.sock:/var/run/docker.sock dockersamples/visualizer
)
# Wait for it to come up
wait_for_command "curl -s http://${manager_ip}:5000 -o /dev/null"
wait_for_command "curl -s http://${manager_ip}:8080 -o /dev/null"
}

# Remove all services
Expand Down Expand Up @@ -386,7 +386,7 @@ cmd_start() {
# Run the visualizer
cmd_vis() {
deploy_swarm_visualizer
url="http://${manager_ip}:5000"
url="http://${manager_ip}:8080"
if [[ ${1:-""} == "--url" ]]; then
echo "$url"
else
Expand Down

0 comments on commit e7f3083

Please sign in to comment.