Skip to content

Commit

Permalink
test-cluster: fix env name in compose-all.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsenasm committed Oct 20, 2023
1 parent a187da6 commit 4fb9747
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,9 @@ const addMetricsToData = ({ data, runningNodeExportes }, okCallback, errorCallba
})
.catch(e => {
console.error('Could not fetch metrics', e)
if (errorCallback)
errorCallback()
okCallback({ data, runningNodeExportes })
// if (errorCallback)
// errorCallback()
});
} else {
okCallback({ data, runningNodeExportes })
Expand Down
6 changes: 3 additions & 3 deletions test-cluster/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@

# Run swarm-dashboard
vagrant ssh manager1 # password: docker
docker stack deploy -c /vagrant/compose.yml sd
docker stack deploy -c /vagrant/compose-all.yml sd

<!-- # Run swarm-dashboard (build locally)
vagrant ssh manager1 # password: docker
docker stack deploy -c /vagrant_parent/test-cluster/test-swarm-compose.yml sd
docker-compose -f /vagrant_parent/test-cluster/test-local-compose.yml up --build -->
docker stack deploy -c /vagrant_parent/test-cluster/compose-metrics.yml sd
docker-compose -f /vagrant_parent/test-cluster/compose-dashboard.yml up --build -->

# Shutdown
vagrant halt
Expand Down
2 changes: 1 addition & 1 deletion test-cluster/compose-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ services:
PORT: 8080
ENABLE_AUTHENTICATION: "false"
ENABLE_HTTPS: "false"
NODE_EXPORTER_FULL_SERVICE_NAME: "sd_node-exporter"
NODE_EXPORTER_SERVICE_NAME_REGEX: "node-exporter"
deploy:
placement:
constraints:
Expand Down

0 comments on commit 4fb9747

Please sign in to comment.