Debian Codegraph @

tools/appveyor/docker-load-httpbin

raw symbols SCIP
1 #!/bin/sh
2
3 set -e -u
4
5 imgfile=~/cache/httpbin.dockerimg
6
7 if [ -f "$imgfile" ]; then
8 # we have the image cached
9 docker load < $imgfile
10 else
11 # pull from dockerhub
12 docker pull kennethreitz/httpbin
13 # and export for caching
14 mkdir -p $(dirname $imgfile)
15 docker save kennethreitz/httpbin > "$imgfile"
16 fi