Skip to content

Instantly share code, notes, and snippets.

@rawlingsj
Created June 24, 2015 08:41
Show Gist options
  • Save rawlingsj/239830f17b35f9128c5d to your computer and use it in GitHub Desktop.
Save rawlingsj/239830f17b35f9128c5d to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "This script will perform a docker pull for all images in a fabric8 app. For a list of apps visit http://repo1.maven.org/maven2/io/fabric8/apps"
echo "Enter the fabric8 app name:"
read APP
echo "Enter release version:"
read VERSION
curl http://repo1.maven.org/maven2/io/fabric8/apps/$APP/$VERSION/$APP-$VERSION-kubernetes.json | grep -Po '"image" :.*?[^\\]",' | grep -Po '(?<=image" : ").*(?=",)' | xargs -n1 -ITOKEN echo "docker pull TOKEN"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment