Sha256: ab1605fb8e507917279f2c39f11c3eb3ac6bd15a2fefbb61ee8d80ee7b1220c9
Contents?: true
Size: 451 Bytes
Versions: 44
Compression:
Stored size: 451 Bytes
Contents
docker_import() { path=<%= data[:path] %> repo=<%= data[:repo] %> tag=<%= data[:tag] %> cat $path | gunzip -c | docker import - $repo:$tag } # Hopefully this isn't ever needed worked=1 for attempt in {1..200}; do [[ $worked != 0 ]] || break docker_import && worked=0 || (log "fetch: attempt $attempt failed, sleeping 30"; sleep 30) done [[ $worked != 0 ]] && fatal "fetch: failed to import image" log "fetch: successfully imported image"
Version data entries
44 entries across 44 versions & 1 rubygems
Version | Path |
---|---|
dockly-2.0.1 | snippets/file_docker_import.erb |
dockly-2.0.0 | snippets/file_docker_import.erb |
dockly-1.7.1 | snippets/file_docker_import.erb |
dockly-1.7.0 | snippets/file_docker_import.erb |