Skip to content

Instantly share code, notes, and snippets.

@Pothulapati
Created December 23, 2019 12:51
Show Gist options
  • Save Pothulapati/490a85383853e8e5787c263daaa940e1 to your computer and use it in GitHub Desktop.
Save Pothulapati/490a85383853e8e5787c263daaa940e1 to your computer and use it in GitHub Desktop.
#!/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