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