java-tutorials/spring-cloud/spring-cloud-config/docker/config-client-entrypoint.sh

9 lines
163 B
Bash

#!/bin/sh
while ! nc -z config-server 8888 ; do
echo "Waiting for upcoming Config Server"
sleep 2
done
java -jar /opt/spring-cloud/lib/config-client.jar