Skip to content

Commit b1bddf6

Browse files
Forcing zipkin download
1 parent bcb9066 commit b1bddf6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/start_with_zipkin_server.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ JAVA_PATH_TO_BIN="${JAVA_HOME}/bin/"
1818
if [[ -z "${JAVA_HOME}" ]] ; then
1919
JAVA_PATH_TO_BIN=""
2020
fi
21+
DOWNLOAD_ZIPKIN="${DOWNLOAD_ZIPKIN:-true}"
2122

2223
[[ -z "${MEM_ARGS}" ]] && MEM_ARGS="-Xmx128m -Xss1024k"
2324

@@ -73,7 +74,12 @@ echo -e "\nDownloading Zipkin Server"
7374
pushd zipkin-server
7475
mkdir -p build
7576
cd build
76-
[ -f "zipkin.jar" ] && echo "Zipkin server already downloaded" || curl -sSL https://zipkin.io/quickstart.sh | bash -s
77+
if [[ "${DOWNLOAD_ZIPKIN}" == "true" ]]
78+
rm -rf zipkin.jar || echo "No zipkin.jar to remove"
79+
curl -sSL https://zipkin.io/quickstart.sh | bash -s
80+
else
81+
echo "Won't download zipkin - the [DOWNLOAD_ZIPKIN] switch is set to false"
82+
fi
7783
popd
7884

7985
echo -e "\nStarting Zipkin Server..."

0 commit comments

Comments
 (0)