Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vis command not working due to move of manomarks/visualizer repository (issue #4) #5

Merged
merged 1 commit into from
Dec 21, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
vis command not working due to move of manomarks/visualizer repository
* updated code to use dockersamples/visualizer
* updated code to use port 8080 as by dockersamples/visualizer
  • Loading branch information
chicco785 committed Nov 28, 2017
commit a519cca7ceeb31d8c9f5abd84acb896006c2d3ea
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