Files
spring-messaging-demo/debezium-cdc/scripts/run-all.sh
T

18 lines
905 B
Bash
Executable File

#!/usr/bin/env bash
# Rebuilds the whole environment from nothing and regenerates every file in output/. Takes about 12 minutes.
# Needs: JDK 25, Maven, Docker (with the compose plugin), curl, jq, python3.
set -eu
cd "$(dirname "$0")/.."
mkdir -p output
# JDK 25 is required (java.version=25). Set JDK25_HOME to one; the default below is this sandbox's.
export JAVA_HOME="${JDK25_HOME:-/tmp/tools/jdk-25.0.5.1+2}"
export PATH="$JAVA_HOME/bin:$PATH"
[ "${SKIP_UP:-}" = 1 ] || ./scripts/up.sh # SKIP_UP=1 reuses a stack that was just created by up.sh
mvn -B -q package # compiles, runs ChangeEventTest, builds the jar the embedded scenario starts
for s in 01-logical-replication 02-event-format 03-replica-identity 04-ordering 05-outbox 06-wal-retention 07-embedded; do
echo "== $s"
./scripts/$s.sh > /dev/null
done
# Machine-specific values do not belong in committed output.
ls -1 output