2c315db84b
* Finally fix the binary builds for a couple os/arch combinations * Make the file executable before adding it to the zip * This cache hack wasn't suppose to make it into the PR * Guard against calling the binary target by itself * Order matters on OS X * Vendored my image * No 386 builds until storage is fixed.
13 lines
362 B
Bash
Executable File
13 lines
362 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
|
|
ids="$(
|
|
for cid in $(docker ps -a | awk '/storagenode/{print $1}'); do
|
|
ip="$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $cid)"
|
|
id="$(docker logs $cid 2>&1 | awk '/started/{print $5; exit}')"
|
|
echo $id:$ip:7777
|
|
done | tr '\n' ','
|
|
)"
|
|
sed -i'' -e "s/nodes .*$/nodes ${ids%,}/" docker-compose.yaml
|