#!/bin/bash

set -eu

if [ $# -ne 2 ]; then
    echo "usage: $0 from-tag to-tag" >&2
    exit 64
fi
from="${1}"
to="${2}"

bindir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

. $bindir/_docker.sh

for img in cli-bin controller grafana proxy proxy-init web  ; do
    docker_retag "$img" "$from" "$to"
done
