mirror of
https://github.com/stefanprodan/podinfo.git
synced 2026-05-17 15:06:34 +00:00
16 lines
348 B
Bash
16 lines
348 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
# This is a simulation of a rollup process.
|
|
|
|
STEPS=${ROLLUP_STEPS:-6}
|
|
echo "Starting rollup with $STEPS steps (estimated run time: $((STEPS * 10))s)"
|
|
podcli check http database-replica:3306/readyz
|
|
i=1
|
|
while [ $i -le $STEPS ]; do
|
|
echo "Running rollup iteration $i of $STEPS"
|
|
sleep 10
|
|
i=$((i + 1))
|
|
done
|
|
echo "Rollup finished"
|