INNER CODE UNIT · Java

APP_MODULES

spring-petclinic/spring-petclinic-microservices · scripts/run_all.sh:28

APP_MODULES=(config-server discovery-server customers-service visits-service vets-service genai-service api-gateway admin-server)

# Resolves the executable jar of a module (ignores sources/javadoc/original jars).
find_jar() {
  ls "$1"/target/*.jar 2>/dev/null | grep -v -- '-sources\|-javadoc\|\.original' | head -n 1 || true
}

# Starts a Spring Boot jar in the background and records its PID in target/<name>.pid.
start_app() {
  local module="$1" port="$2" name="$3" jar
  jar=$(find_jar "${module}")
  nohup java -jar "${jar}" --server.port="${port}" ${PROFILE_ARG} > "target/${name}.log" 2>&1 &
  echo $! > "target/${name}.pid"
}

# Polls a service actuator health endpoint until it answers.
# Fails fast if the process died, and only warns after a timeout.
wait_for_service() {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…