Skip to content

Commit

Permalink
Small tweak in docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
ctring committed Jul 7, 2023
1 parent 518b84d commit 3a15b24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docker-compose/prepare-multi-region.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ elif [ "$mode" = "swarm" ]; then
for node in $(jq -r "keys[]" topology.json); do
echo "$node"
for label in $(jq -r ".[\"$node\"][]" topology.json); do
echo -n "\t$label..."
docker node update --label-add $label $node 1> /dev/null && echo "\033[0;32mOK\033[0m"
echo -ne "\t$label..."
docker node update --label-add $label $node 1> /dev/null && echo -e "\033[0;32mOK\033[0m"
done
done
fi
Expand Down
3 changes: 1 addition & 2 deletions docker-compose/topology.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"has_pageserver=true",
"has_safekeeper1=true",
"has_compute=true",
"has_xactserver=true",
"has_benchbase=true"
"has_xactserver=true"
],
"ip-172-31-40-83": [
"region=1",
Expand Down

0 comments on commit 3a15b24

Please sign in to comment.