Files
spring-cloud-contract/docker/spring-cloud-contract-stub-runner-docker/run.sh
Marcin Grzejszczak a915cf102b Messaging polyglot support (#1472)
added support for AMQP, KAFKA and standalone options
2020-08-21 18:05:32 +02:00

19 lines
547 B
Bash
Executable File

#!/bin/bash
set -o errexit
set -o errtrace
set -o nounset
set -o pipefail
echo "Running Spring Cloud Contract Stub Runner"
ADDITIONAL_OPTS="${ADDITIONAL_OPTS:-}"
MESSAGING_TYPE="${MESSAGING_TYPE:-}"
if [[ "${MESSAGING_TYPE}" != "" ]]; then
echo "Messaging type passed, will active thin profile [${MESSAGING_TYPE}]"
ADDITIONAL_OPTS="${ADDITIONAL_OPTS} --thin.profile=${MESSAGING_TYPE}"
fi
echo "Please wait for the dependencies to be downloaded..."
java -Djava.security.egd=file:/dev/./urandom -jar /stub-runner-boot.jar ${ADDITIONAL_OPTS}