Created
December 23, 2019 12:51
-
-
Save Pothulapati/490a85383853e8e5787c263daaa940e1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eu | |
if [ $# -ne 0 ]; then | |
echo "no arguments allowed for ${0##*/}, given: $*" >&2 | |
exit 64 | |
fi | |
bindir=$( cd "${BASH_SOURCE[0]%/*}" && pwd ) | |
. "$bindir"/_tag.sh | |
tag=$(head_root_tag) | |
echo "$tag" >&2 | |
docker save gcr.io/linkerd-io/grafana:$tag > temp.tar | |
microk8s.ctr image import temp.tar | |
docker save gcr.io/linkerd-io/cli-bin:$tag > temp.tar | |
microk8s.ctr image import temp.tar | |
docker save gcr.io/linkerd-io/debug:$tag > temp.tar | |
microk8s.ctr image import temp.tar | |
docker save gcr.io/linkerd-io/cni-plugin:$tag > temp.tar | |
microk8s.ctr image import temp.tar | |
docker save gcr.io/linkerd-io/web:$tag > temp.tar | |
microk8s.ctr image import temp.tar | |
docker save gcr.io/linkerd-io/controller:$tag > temp.tar | |
microk8s.ctr image import temp.tar | |
docker save gcr.io/linkerd-io/proxy:$tag > temp.tar | |
microk8s.ctr image import temp.tar | |
rm temp.tar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment