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-4.4.1 snippets/file_docker_import.erb
dockly-4.4.0 snippets/file_docker_import.erb
dockly-4.3.0 snippets/file_docker_import.erb
dockly-4.2.0 snippets/file_docker_import.erb
dockly-4.1.0 snippets/file_docker_import.erb
dockly-4.0.0 snippets/file_docker_import.erb
dockly-3.4.1 snippets/file_docker_import.erb
dockly-3.4.0 snippets/file_docker_import.erb
dockly-3.3.0 snippets/file_docker_import.erb
dockly-3.2.0.pre.1 snippets/file_docker_import.erb
dockly-3.1.1 snippets/file_docker_import.erb
dockly-3.1.0 snippets/file_docker_import.erb
dockly-3.0.5 snippets/file_docker_import.erb
dockly-3.0.4 snippets/file_docker_import.erb
dockly-3.0.3 snippets/file_docker_import.erb
dockly-3.0.2 snippets/file_docker_import.erb
dockly-3.0.1 snippets/file_docker_import.erb
dockly-3.0.0 snippets/file_docker_import.erb
dockly-2.7.2 snippets/file_docker_import.erb
dockly-2.7.1 snippets/file_docker_import.erb