Files
spring-cloud-contract/docker/spring-cloud-contract-stub-runner-docker/run.sh
Bastian Doetsch 9b147dd991 fixes #1639: run with unprivileged user and bump java version to 8.0.292.hs (#1694)
* run with unprivileged user and bump java version to 8.0.292.hs

* revert to gradle 6.4
2021-08-10 11:11:35 +02:00

19 lines
556 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 /home/scc/stub-runner-boot.jar ${ADDITIONAL_OPTS}