aboutsummaryrefslogtreecommitdiff
path: root/update-kafka-image.sh
diff options
context:
space:
mode:
Diffstat (limited to 'update-kafka-image.sh')
-rwxr-xr-xupdate-kafka-image.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/update-kafka-image.sh b/update-kafka-image.sh
new file mode 100755
index 0000000..fae9c6f
--- /dev/null
+++ b/update-kafka-image.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+IMAGE=$1
+[ -z "$IMAGE" ] && echo "First argument should be the image to set" && exit 1
+
+[[ $IMAGE != solsson/kafka:* ]] && echo "Should be the full image identifier" && exit 1
+
+for F in ./ test/ zookeeper/; do
+ sed -i "s|image: solsson/kafka:.*|image: $IMAGE|" $F*.yml
+done