Created
June 24, 2015 08:41
-
-
Save rawlingsj/239830f17b35f9128c5d 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 | |
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