Skip to content

Commit 5d0e65b

Browse files
mefellowsCopilot
andauthored
wip: ensure env vars have guards in entrypoint
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 4654de0 commit 5d0e65b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

pact_broker/entrypoint.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
# Send a lightweight, anonymous analytics ping (version + platform) to help us
44
# understand adoption of this image. Opt out with PACT_DO_NOT_TRACK or
55
# SCARF_NO_ANALYTICS. See https://docs.pact.io/telemetry for details.
6-
if [ -z "${PACT_DO_NOT_TRACK}" ] && [ -z "${SCARF_NO_ANALYTICS}" ]; then
7-
wget -q -T 2 -O /dev/null "https://d.pactflow.io/pact-broker-docker/${PACT_BROKER_DOCKER_VERSION}/${PACT_BROKER_DOCKER_PLATFORM}" >/dev/null 2>&1 &
6+
if [ -z "${PACT_DO_NOT_TRACK:-}" ] && [ -z "${SCARF_NO_ANALYTICS:-}" ] \
7+
&& [ -n "${PACT_BROKER_DOCKER_VERSION:-}" ] && [ -n "${PACT_BROKER_DOCKER_PLATFORM:-}" ]; then
8+
wget -q -T 2 -t 1 -O /dev/null "https://d.pactflow.io/pact-broker-docker/${PACT_BROKER_DOCKER_VERSION}/${PACT_BROKER_DOCKER_PLATFORM}" >/dev/null 2>&1 &
89
fi
910

1011
if [ "${PACT_BROKER_DATABASE_CLEAN_ENABLED}" = "true" ]; then

0 commit comments

Comments
 (0)