blob: fae9c6ffe2941c5f5fddc47ee9ce04a410050ad9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
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
|