aboutsummaryrefslogtreecommitdiffstats
path: root/docker_files/download-kafka.sh
diff options
context:
space:
mode:
Diffstat (limited to 'docker_files/download-kafka.sh')
-rw-r--r--docker_files/download-kafka.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/docker_files/download-kafka.sh b/docker_files/download-kafka.sh
new file mode 100644
index 0000000..2ddc911
--- /dev/null
+++ b/docker_files/download-kafka.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+mirror=$(curl --stderr /dev/null https://www.apache.org/dyn/closer.cgi\?as_json\=1 | jq -r '.preferred')
+url="${mirror}kafka/${KAFKA_VERSION}/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz"
+wget -q "${url}" -O "/tmp/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz"