Skip to content

Instantly share code, notes, and snippets.

@squizzi
Last active December 16, 2022 19:40
Show Gist options
  • Save squizzi/aa9e362cd310ec4d7bd72b12d3f6c797 to your computer and use it in GitHub Desktop.
Save squizzi/aa9e362cd310ec4d7bd72b12d3f6c797 to your computer and use it in GitHub Desktop.
Pull MSR 3 images and package as tarball
#!/bin/sh
MSR_TAG=3.0.5
ENZI_TAG=1.0.5
OUTPUT_FILE="/tmp/msr-${MSR_TAG}.tar"
echo "Pulling all MSR images for version: ${MSR_TAG}, enzi version: ${ENZI_TAG}"
declare -a IMAGES=(
registry.mirantis.com/msr/msr-api:$MSR_TAG
registry.mirantis.com/msr/msr-garant:$MSR_TAG
registry.mirantis.com/msr/msr-jobrunner:$MSR_TAG
registry.mirantis.com/msr/msr-nginx:$MSR_TAG
registry.mirantis.com/msr/msr-notary-server:$MSR_TAG
registry.mirantis.com/msr/msr-notary-signer:$MSR_TAG
registry.mirantis.com/msr/msr-registry:$MSR_TAG
registry.mirantis.com/msr/enzi:$ENZI_TAG
)
for image in "${IMAGES[@]}"
do
docker pull $image
done
echo "Saving MSR images to tar: ${OUTPUT_FILE}"
docker save "${IMAGES[@]}" -o $OUTPUT_FILE
echo "Done. Use 'docker load < ${OUTPUT_FILE}' to load these images elsewhere."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment