Fix for docker build (bzr package not available on alpine)
MAke sure HOSTNAME is different for each running pod, for proper advisory of stream metadata
@@ -4,9 +4,9 @@ CLUSTER_NAME=${CLUSTER_NAME:=cluster}
if [[ "$HOSTNAME" =~ -0$ ]] && [[ "$SKIP_SEED" != "true" ]];
then
- echo "Running in liftbridge-0 as a bootstrap seed..."
- liftbridge --data-dir=/data --config /etc/liftbridge.yaml --raft-bootstrap-seed --id="${CLUSTER_NAME}-$HOSTNAME"
+ echo "Running in $HOSTNAME as a bootstrap seed..."
+ LIFTBRIDGE_HOST=$(hostname -i) liftbridge --data-dir=/data --config /etc/liftbridge.yaml --raft-bootstrap-seed --id="${CLUSTER_NAME}-$HOSTNAME"
else
echo "Running in $HOSTNAME..."
- liftbridge --data-dir=/data --config /etc/liftbridge.yaml --id="${CLUSTER_NAME}-$HOSTNAME"
+ LIFTBRIDGE_HOST=$(hostname -i) liftbridge --data-dir=/data --config /etc/liftbridge.yaml --id="${CLUSTER_NAME}-$HOSTNAME"
fi
